Glype Plugins: How To Ban Certain Countries
This is the second post on how to optimize your proxy bandwidth. A few weeks ago I posted A Blacklist file to block advertisement and I did mention that I will discuss the other 2 points. So this is the second post discussing the second point which is how to block certain countries which is known as bad traffic countries by blocking their IP addresses.
Based on my experience and many other have shared in multiple forums, certain countries such as China, Iran, Saudi Arabia, Nigeria, Ghana, Turkey, Romania, Lebanon, Russia, Pakistan and Vietnam are considered to be bad traffic countries. A few of many reasons are that they use a gigantic amount of bandwidth to access porn and warez sites and secondly advertising companies such as adsense pay really small to zero commission perclick from those countries. So there’s no points for us proxy webmasters to let them accessing and wasting our bandwidth.
The question is, how can we block them? Actually there are many solutions to this matter, paid and free services are available in the net. The easiest solution is to put a range of IPs used by those countries in your glype proxy’s ban setting. This is the built-in feature in glype proxy script which can be accessed easily through its admin control panel. Here’s what you need to do:
# Download the IP BAN list at the end of this post
# Open it using your favourite text editor
# Select all and paste it in IP Ban column at Glype proxy admin panel (See Screen Shot)

# Save changes
# And you are good to go.
Here’s the download link: IP Ban File
Need more traffic to your proxy websites? Check out Our Services section.

March 18th, 2009 at 4:53 pm
[...] admin wrote an interesting post today onHere’s a quick excerpt [...]
March 30th, 2009 at 2:42 am
Hello and thanks for the IP list.. you can easily add this into the .htaccess file correct? Also is there a way to have this “junk” traffic redirected to another web site? Thanks
March 30th, 2009 at 8:27 am
Yes you can put it in .htaccess file however you need to put additional syntac in front of every IP ranges, I prefer to use the built-in features…
Regarding redirecting traffic… I think I’ll write another post for this matter… thanks for the idea…
October 13th, 2009 at 8:00 pm
really2 great stuff…thx ..
January 3rd, 2010 at 7:24 pm
Does this IP’s are from “China, Iran, Saudi Arabia, Nigeria, Ghana, Turkey, Romania, Lebanon, Russia, Pakistan and Vietnam?”
January 5th, 2010 at 9:51 pm
yes as it stated in the article.