View Single Post
Old 03-15-2007, 11:35 PM  
borked
Totally Borked
 
borked's Avatar
 
Industry Role:
Join Date: Feb 2005
Posts: 6,284
get maxmind's GeoIP dbase and install the apache module (mod_geoip API), then in htaccess:

GeoIPEnable On
GeoIPDBFile /path/to/GeoIP.dat

RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^RU$ ###RUSSIA
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^UA$ ###UKRAINE
RewriteRule ^.*$ http://www.gofuckyourself.com/ [L]
__________________

For coding work - hit me up on andy // borkedcoder // com
(consider figuring out the email as test #1)



All models are wrong, but some are useful. George E.P. Box. p202

Last edited by borked; 03-15-2007 at 11:36 PM..
borked is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote