httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guenter Knauf <fua...@apache.org>
Subject Re: Making mod_authz_host less opaque
Date Thu, 14 Oct 2010 00:34:28 GMT
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.



Mime
View raw message