Generates a hosts.deny file to block spam and/or countries
Run denyGen.py --help
for help.
Suggested use with root cron (after moving denyGen.py to /usr/local/bin/):
0 6 * * * /usr/local/bin/denyGen.py --spam 30 --country cn --output /etc/hosts.deny
The above example will generate a new hosts.deny at 6am everyday blocking spammers from the last 30 days and blocking China.
Visit http://www.stopforumspam.com/ for information about the spam block list.
Visit http://www.ipdeny.com/ipblocks/ for information about the country block lists.
denyGen is distributed under the GNU General Public License Version 3, see LICENSE for details.