QUOTE(Kurt @ Aug 30 2006, 09:34 PM)
I have tried over the past few years, sometmes successfully and sometimes not, to block the entire range of IP addresses from China AND Hongkong using an htaccess file on my website server as I want to prevent those in that region from stealing ideas from my site.
You might want to check out the two packages I have available for free downloading on my site at http://fixingtheweb.com/
One package is for dedicated servers and allows you to block any number of countries from the entire dedicated server while the other package is for a website that runs on a shared server. You can pick and choose the countries you want to block. The one for the shared servers only works for blocking countries from your website, it can't block incoming emails, however it can prevent potential spammers from scouring your website looking for email addresses.
The one for dedicated servers uses iptables to do the blocking. The incoming packet is completely dropped, the user thinks you do not exist at all. No access to anything running on that server will be allowed for a blocked country.
The one for websites running on shared servers uses .htaccess but you don't fill up the .htaccess file with a bunch of IP addresses. For China alone, it would take almost 500 IP address ranges in your .htaccess file. Instead, all file requests are redirected to a .php file that does the work of checking to see if the incoming request is from a blocked country. If it is, the user will get a blank page. Almost no bandwidth is eaten up at your end and no data whatsoever taken from your website. If the incoming country is allowed, then everything works as normal and it works quite efficiently doing this.
Give it a try, anything we can do to thwart these stupid spammers is a good thing.