Banhammer is an ASP based program that will allow you to ban IP addresses permanently or for a certain amount of time. It will show the number of attempts that have been made by that IP to access your page.
Banhammer will also ban TOR (Onion router) addresses and includes a trap for spambots that try to flood your guestbook.