Hi everyone, Well, as the title says, this issue has been taken up here at DP many times; mainly by proxy website owners to block traffic from non-converting countries. Mostly, people manually ban IP address ranges through .htaccess which is really cumbersome and wastes valuable time. So, if you have your own VPS, dedicated server or your host can adjust PHP settings for you, feel free to follow my tutorial and block traffic from any country or region with a single line of PHP code that is nearly as fast and efficient as the .htaccess method, perhaps more accurate too! Here's the link to my tutorial : Block Non-converting, Spam Traffic by Country : GeoIP PECL PHP Geo-Targeting Feel free to Social Bookmark if you find it useful. Cheers!
Thanks for this. But seems this section has not enough interest about it. I am tired post that GeoIP blocks a specific country. WIll lnik to this topic next time
Yes, as at least every proxy has users from specific country which consumes GBs of bandwidth which is mostly Iran and China sine they have very strict rules in these..
US people has more strict rules against proxies rather then Iran and China. But it is true that there are loads of kids in Iran and China who cant see porn, most probably these sites are blocked there. So GBs of bandwidth goes for only Iran and China while porn pictures are heavy to load
Alternatively I am inviting you to look at blockacountry.com and use this service if denying access is what you are looking for. Enjoy, Wildcard
Well, this can be done more easily and with less resource consumption using apache mod_geoip from maxmind. I'll post another tutorial using mod_geoip soon.