If you prefer a Perl script instead of Python you could try out a Perl hack of mine called LogSentry. Monitors ssh and ftp logs. Pretty much the same funcionality as BlockHosts I guess but I was unaware of BlockHosts when I needed it.
It supports OpenSSH and vsftpd.
Recent comments
1 hour 46 min ago
11 hours 14 min ago
12 hours 3 min ago
15 hours 37 min ago
20 hours 1 min ago
20 hours 22 min ago
22 hours 32 min ago
1 day 8 hours ago
1 day 13 hours ago
1 day 14 hours ago