- Language
- English
- Compatible XF 2.x versions
- 2.2
- 2.3
Blocks access to specified countries.
When a visitor from a blocked country clicks the Contact us, Log in, Register or thread link, they are shown an error message.
(Example of Options page)
Features:
This add-on requires using the GeoIp2 library. Here is a link which explains how to install the GeoIp2 library.
www.xf2addons.com
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. Add your GeoIp2 paths.
Viewing which countries were blocked:
Click the Block country link in the visitor menu. Must be an admin to see this link.
Database changes:
A table called andy_block_country is created in your database.
When a visitor from a blocked country clicks the Contact us, Log in, Register or thread link, they are shown an error message.
(Example of Options page)
Features:
- All phrases start with blockcountry_ for your convenience.
This add-on requires using the GeoIp2 library. Here is a link which explains how to install the GeoIp2 library.
How to install the MaxMind GeoIp2 library
The GeoIp2 library allows reading the GeoLite2 database located on your server and you can lookup as many IP addresses as you like. The GeoIp2 library is free and is easy to install. Installation instructions Create a directory called maxmind in your /home/username directory. Log into your...
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. Add your GeoIp2 paths.
Viewing which countries were blocked:
Click the Block country link in the visitor menu. Must be an admin to see this link.
Database changes:
A table called andy_block_country is created in your database.