• Welcome to XF2 Addons

    You can purchase a Premium membership for only $35 per year, and this gives you access to download any or ALL of the over 400 add-ons developed for Xenforo 2.x. In addition, Premium members will get technical support. Once the Premium membership has expired you can continue to use the installed addons on your forum as long as you like.
Country access check

Country access check 1.3

No permission to download
Note
Compatible XF 2.x versions: 2.0, 2.1, 2.2
Description:

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

(Example of options page)

pic001.jpg


(Example of error message)

pic002.jpg


(Example of Country access check link)

pic003.jpg


(Example of Country access check page)

pic004.jpg


Features:
  • Uses ipapi.co for accurate country locations.
  • All phrases start with countryaccesscheck_ for your convenience.
Setup:

Enter country codes into options page.

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.
  • Like
Reactions: otto and dachi
Author
Andy
Downloads
41
Views
579
First release
Last update
Rating
5.00 star(s) 1 ratings

Latest updates

  1. See description

    Country access check v1.3 changes: Added countryaccesscheck_error phrase.
  2. See description

    Country access check v1.2 changes: Added Country access check link to account menu.
  3. See description

    Country access check v1.1 changes: Fixed typo in results page.

Latest reviews

Another great tool from Andy!
This tool acts as a "firewall" of sorts, to block certain country codes from registering, using the contact us form, or logging in. This is useful when protecting from data breaches, to block countries that are known sources of trouble. It gives a nice log of actionable activity, for the administrator to review, and breaks it down by type. The log goes back a full 7 days.

Similar resources

Country flag Andy
Shows a country flag in the message user info block.
5.00 star(s) 1 ratings
Downloads
166
Updated
Country flag select Andy
Allows members to select their country flag.
4.00 star(s) 1 ratings
Downloads
91
Updated
Country restricted page Andy
Allows page access only to countries specified in options page.
5.00 star(s) 1 ratings
Downloads
33
Updated
Access log Andy
Shows a list of bots, guests and members accessing your forum.
0.00 star(s) 0 ratings
Downloads
59
Updated
Forum access by gender Andy
Allows access to forums based on gender.
0.00 star(s) 0 ratings
Downloads
48
Updated
Back
Top