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.