I have seen the guides on how to stop traffic from china and iran but i would perfer to redirect it to another one of my sites. Can someone please give me a dumbed down version of how to do this?
Printable View
I have seen the guides on how to stop traffic from china and iran but i would perfer to redirect it to another one of my sites. Can someone please give me a dumbed down version of how to do this?
Which proxy script are you running?
phproxy. :)
Put this into your .htaccess file
EditCode:GeoIPEnable On
GeoIPDBFile /pathtofile/GeoIP/GeoIP.dat
# Redirect countries
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|IQ|NG|IR|SA|TR|BR)$
RewriteRule ^(.*)$ http://www.centurian.org [L]
To the path you put your GeoIP fileCode:GeoIPDBFile /pathtofile/GeoIP/GeoIP.dat
can edit out centurian and forward to any site you like though it would be nice if you sent to a location they could find another proxy
Thanks Mr. Bill, I tried it too.. and only did these countries: CN|IR|SA
But I see this page now: http://abjo.info which isn't good at all... even with a proxy from the USA I see the misconfiguration page...
How can I make sure this doesn't happen? Do I have to change something?
Greetz
I have a proxy on anouther host with a lot more bandwidth, so thats where i'm gonna send them
where do i find my htaccess file? I don't think i have one
thanks dtkguy. I found it but then i get the same problem as Aquarezz
I do believe this error is caused because mod_setenvif & mod_geoip have to be loaded in httpd.conf though I could be wrong might need a person with more experience to resolve this issue. I know its working on my server so the code is good.