I am having problem with blocking countries with geoip. When I use my hosting account utility to block countries, it creates the below script in a .htaccess. The problem is it does not seem to be working (added US but was not blocked).
GeoIPEnable on
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AU$ [OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CA$ [OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
RewriteRule ^.*$ - [F]
So, I added [OR] to the last country in the list but now it blocks everything including countries not in the list. Here I tried deleting US but still received 403 message.
GeoIPEnable on
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^AU$ [OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CA$ [OR]
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$ [OR]
RewriteRule ^.*$ - [F]