On 10/13/10 5:34 PM, Guenter Knauf wrote:
Am 13.10.2010 23:43, schrieb Philip Prindeville:
I recently tried to use mod_setenvif and mod_geoip to block access from
countries rife with hackers.
I wasn't able to get it to work (see my posting on users).
works for me:
# Configuration for mod_geoip
<IfModule mod_geoip.c>
GeoIPEnable On
GeoIPDBFile "/var/lib/GeoIP/GeoIPCity.dat"
<Location />
SetEnvIf GEOIP_COUNTRY_CODE US BlockCountry
SetEnvIf GEOIP_COUNTRY_CODE DE BlockCountry
Deny from env=BlockCountry
</Location>
</IfModule>
# End of mod_geoip.
Gün.
Yeah, Location worked, but I couldn't get <Directory "/var/www/html"> to work.
No idea why. Still begs the question: do we need a better method to debug such
issues?
-Philip