Block a city with geoip apache module

Example how to block a city with geoip apache module

<IfModule mod_geoip.c>
   Order Deny,Allow
   SetEnvIf GEOIP_CITY Phoenix BlockRegion
   SetEnvIf GEOIP_CITY Farmington BlockRegion
   Deny from env=BlockRegion
   Allow from 24.79.111.111
   Allow from 98.165.111.111
</IfModule>

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.