- Discussions
- 4 845
- Messages
- 12 577
- Solutions
- 85
- J'aime
- 7 880
- Points
- 198
Description :
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) :
(Example of error message) :
(Example of Block country link) :
(Example of Block country page) :
Features :
This add-on requires 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. 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.
Block country v1.1 changes : Fixed null condition error.
Télécharger V1.1 :
Block country v1.2 changes : Updated options page descriptions.
Télécharger V1.2 :
Block country v1.3 changes : Fixed null condition error.
Télécharger V1.3 :
Block country v1.4 changes : Now blocks countries where GeoIp2 comes up empty.
Télécharger V1.4 :
Block country v1.5 changes : Updated Options page descriptions.
Télécharger V1.5 :
Block country v1.6 changes : Now using Composer method. GeoIp2 library is now included in the add-on.
Block country v1.7 changes : Updated phrases.
Block country v1.8 changes : Fixed error message.
Block country v1.9 changes : Added Days to options page.
Télécharger V1.9 :
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) :
(Example of error message) :
(Example of Block country link) :
(Example of Block country 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.
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. 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.
Block country v1.1 changes : Fixed null condition error.
Télécharger V1.1 :
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Block country v1.2 changes : Updated options page descriptions.
Télécharger V1.2 :
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Block country v1.3 changes : Fixed null condition error.
Télécharger V1.3 :
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Block country v1.4 changes : Now blocks countries where GeoIp2 comes up empty.
Télécharger V1.4 :
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Block country v1.5 changes : Updated Options page descriptions.
Télécharger V1.5 :
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.
Block country v1.6 changes : Now using Composer method. GeoIp2 library is now included in the add-on.
Block country v1.7 changes : Updated phrases.
Block country v1.8 changes : Fixed error message.
Block country v1.9 changes : Added Days to options page.
Télécharger V1.9 :
Pour consulter le contenu, vous devez : Se connecter ou S'inscrire.

