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>