I want to keep the comments open on this blog, but I keep getting hit with tons of comment spam, particularly from China. Okean.com has an excellent list of Chinese IP blocks at http://www.okean.com/antispam/china.html. The following script reads the data file and formats the CIDR's into .htaccess "deny from" format. The output can be pasted into your .htacces file. You do need to have an "order allow, deny" at the start and "allow from all" at the end!
Continue reading Creating a .htaccess deny list from okean.com data.