I want to block India and China from my network of sites. Does anyone know an easy way of doing this without having to type into my htaccess file every Indian ip address?
You can try doing it by ip address classes within a htaccess file or at the firewall. A decent proxy will get around the block though: http://www.ipaddresslocation.org/ip_ranges/get_ranges.php
Actually I got it, the whole ip range and the htaccess code to block India. Anyone else had enough of spammers and scammers? I am not a racist towards India, but had enough of the crap that comes out of that country on my site. Porn posted on famill friendly sites, the same advert posted over 100 times a day in different countries and categories, sex ads, puppy scams, parrot scams, affiliate crap etc etc. After 5 years, I have found that nearly all the crap comes from India, so goodbye India, you are banned from my network. Download the India ip range and code to add to your htaccess file here http://www.postfreeads.net/BlockIndia.txt Enjoy.
You had better use the white list rather than the black list. Try Maxmind's GeoLite Country. http://www.maxmind.com/app/geoip_country Set your allowed countries such as us, ca and uk...
Why? Wouldn't be just easier to drop in a few rules within the server's route table or add in an htaccess block? Why install something extra when there are easier ways to deal with the concern?