I set mod_geoIP for cpanel based on these instructions (not very detailed, therefore this question)
At this point, I installed the module in accordance with the instructions. I also uploaded the csv file for the GeoLite country. AM I did not miss anything?
I assume that the next step is to create an entry in my .htaccess file for allowed countries:
GeoIPEnable On
GeoIPDBFile /path/to/GeoIPCountryWhois.csv
SetEnvIf GEOIP_COUNTRY_CODE US AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE CA AllowCountry
SetEnvIf GEOIP_COUNTRY_CODE MX AllowCountry
Deny from all
Allow from env=AllowCountry
Looks like I missed something? Is there also a way to test this?
source
share