Country access check

Country access check 1.6

No permission to buy ($35.00)
Compatible XF 2.x versions
  1. 2.0
  2. 2.1
  3. 2.2
  4. 2.3
Premium upgrade:

This XF2 add-on along with the entire collection can be purchased for $35.00 USD. Your Premium upgrade will allow you to download as many XF2 add-ons as you like for one year. Please see the entire collection located in the Resources area at this URL:

https://www.xf2addons.com/

Description:

Blocks access to Contact us, Log in and Register pages from specified countries.

When a user from a blocked country clicks the Contact us, Log in or Register link, they are shown an error message.

(Example of options page)

pic001.webp


(Example of error message)

pic002.jpg


(Example of Country access check link)

pic003.jpg


(Example of Country access check page)

pic004.jpg


Features:
  • All phrases start with countryaccesscheck_ for your convenience.
Setup:

By default this add-on will use the ipapi.com to get the location from the users IP address. However using the API is not as reliable as using the GeoIp2 library. Here is a link which explains how to install the GeoIp2 library.

https://www.xf2addons.com/threads/how-to-install-the-geoip2-library.1132/

Go to options page and enter the country codes you want to block. Or if you prefer you can enter the country codes which you allow.

Viewing which countries were blocked:

Click the Country access check link in the visitor menu. Must be an admin to see this link.

Database changes:

A table called andy_country_access_check is created in your database.
Author
AndyB
Views
1,069
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from AndyB

Latest updates

  1. See description

    Country access check v1.6 changes: Added option to use GeoIp2 library.
  2. See description

    Country access check v1.5 changes: Prevent server error if ipapi.com site is not accessible.
  3. See description

    Country access check v1.4 changes: Now properly extending class.

Latest reviews

I use this addon daily and it's another one of the super addons you get free when you buy Andy's $35 yearly subscription. The best value ever!
Back
Top Bottom