View Single Post
Old 06-20-2007, 03:58 PM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
mod_geoip can be a wonderful thing.

Code:
<IfModule mod_geoip.c>
  GeoIPEnable On
  GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
  <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^RU$
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^TW$
    RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^CN$
    RewriteRule ^(.*)$  [F]
  </IfModule>
</IfModule>
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote