cancel
Showing results for 
Search instead for 
Did you mean: 

Block access by countries

abirhasan
Master User

Hi,

I used my hosting utility to block countries from accessing my website but it doesn't seems to work and my tech support is not much help. When I use the utility it creates a .htaccess file with the below content. can someone please help?

 

GeoIPEnable on
RewriteEngine on
   RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AD$   [OR]
   RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AF$   [OR]
   RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AG$   [OR]
   RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^BB$   [OR]
   RewriteRule ^.*$ - [F]

 

0 REPLIES 0