Using country codes in the .htaccess - that's an interesting method that I was not aware of.
I've always used IP addresses, but that gets messy sometimes.
Printable View
Would someone be willing to install Geo IP on tracehide for like $2 because thats all i have on my paypal and i really need to ban these countries..
I generally didn't block those countries except in some experiments. Didn't think it necessary and almost always had some spare bandwidth. Better lots of low paying clicks from Iran than none at all.
On some level, I guess it makes me a supporter of internet access freedom for people in all countries rather than a ruthless penny pinching profiteer. :angel:
But if bandwidth or server stability is an issue, you might want to ban them and other low paying countries.
Better to read these threads for info and do it yourself. Rather easy, but until you do it successfully once, it may seem intimidating.
http://programmerdot.com/17/maxmind-geoip-php.htm
Block Countries with Geoip Lite (Easiest Way)
How to install GeoIP and block foreign traffic
While that may be true, some advertisers require that you ban countries (like Adversal), and I'd rather block some people from browsing my proxy than have my AdSense account smartpriced for all of my websites.
In addition, it's recommended to block countries like Nigeria simply because that's where most fraud occurs and to help you stay out of legal trouble.
Thanks guys,. Zash helped me out with this and i got it all resolved!
This look right?
Code:GeoIPEnable On
# Redirect multiple countries to a single page
RewriteEngine on
RewriteCond %{ENV:GEOIP_COUNTRY_CODE} ^(CN|TW|HK|SA|IR|NG)$
RewriteRule ^(.*)$ http://sendhere.com$1 [L]
any tips to test that it works?
Yeah I got here information for country block but is there any process for city block?