Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (18 sloc) 861 Bytes


Block China and other South Asian countries at the firewall level.


Because nearly all forum and blog spam originates from China and the big Chinese ISPs do precious little to combat it.


iptables and, if you want to build the rules files yourself, perl.

Usage 1

As root run one or more of the scripts in the scripts/ directory. Example:

sh scripts/

The scripts do not flush the filter table. If you somehow mess up, run iptables -F and try again.

Usage 2

Paste one or more of the file in the rules/ directory into your iptables.rules file and apply it with iptables-restore. Easy, right?


The rulesets are based on this blacklist.