Hi,
I have been trying to find out how to use GeoIP with glype to no success. Please could someone show me where I can find a guide etc ... as alot of proxy owners are using it at the moment I think ;)
Printable View
Hi,
I have been trying to find out how to use GeoIP with glype to no success. Please could someone show me where I can find a guide etc ... as alot of proxy owners are using it at the moment I think ;)
Have you tried Xrvel's Country IP Blocking tutorial?
throw that little code at the top of browse.phpQuote:
$country = $_SERVER["GEOIP_COUNTRY_CODE"];
if (($country == "CN") or ($country == "RU") or ($country == "IR")) {
header ('Location: http://google.com');
}
mind you, thats with geoip installed already.
Thanks Will for that link..i use downloaded .htacess from blockacountry but i couldn't see any fruitful results..a lot of BW drainage by Iran and Saudi. I hope this one is good.
Thanks for the replies.
Do you know if there is any other way in which I can redirect traffic ?
Thats what i am trying to figure out now how i can redirect traffic ??
any ideas?
Here's what I do on all my sites:
GeoIPEnable On
GeoIPDBFile /usr/share/GeoIP/GeoIP.dat
# Redirect one country
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|IQ|NG|IR|SA|AG|MY|ID|CL|KW|AE|TR|RU|BR)$
RewriteRule ^(.*)$ ilron proxy [L]
Put that in the apache config, or .htaccess
That will send all your traffic from CN|IQ|NG|IR|SA|AG|MY|ID|CL|KW|AE|TR|RU|BR to my proxy site ilron.com (change this)
Also, modify the GeoIPDBFile location to where it actually is