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 day 3 hours ago
1 day 5 hours ago
1 day 17 hours ago
1 day 20 hours ago
2 days 16 min ago
2 days 6 hours ago
2 days 15 hours ago
2 days 17 hours ago
3 days 1 hour ago
3 days 3 hours ago