Extendable (by plugins, ...) Static Analysis tools like FindBugs can enhance the security of your Java applications (web as well as standalone or client-servers applications) in several significant ways.
For regular spammers and sploggers, banning their IP address is a simple and effective way to get rid of them.
Any PHP based software like WordPress, Mambo, Joomla, Drupal, MODx etc.