1. Does it call 3rd party external website to check the IP?
No, it uses local IP database provided by maxmind (free).
I have included it on the resource ZIP file.
However to update it by yourself (usually it is updated monthly), you can download it here:
Code:
https://dev.maxmind.com/geoip/legacy/geolite/
Download the "
GeoLite Country" > "
binary / gzip" to temporary directory, unzip it, and rename the ".dat" file to "
geoip.dat" and place it on:
Code:
/upload/library/Semprot/DenyCountry/
2. How to do a test using some IP?
Add "deny_country_ip=[THE_IP]" to the query string of the URL.
For example you want to check country denial on creating thread.
Your board URL when creating thread is:
http://www.example.com/forums/something.1/create-thread
You can use this :
http://www.example.com/forums/something.1/create-thread?deny_country_ip=1.1.1.1