Comment spam is the bane of many an interactive web site, and I long ago adopted Bad Behavior to limit spam attacks against my WordPress blogs. When setting up a Drupal site, I wanted to carry on using this wonderful utility, but was frustrated trying to get it to work – settling in the end for a nasty bodge.
It soon transpired that the author of Bad Behavior had been waiting for Drupal users that had claimed to use Bad Behavior to forward details, but to no avail.
When I did a recent review of my initial experiences with Drupal, several people said that I should contribute if I wanted to see things change, so here is my first “toe in the water” with the Drupal community – an implementation of Bad Behavior for Drupal.
I started by making the utility work as a Drupal module, then worked out how to use the database abstraction layer to implement logging, and finally (getting carried away) implemented some admin pages to show the logs and log detail. So, this is a fairly complete implementation, ready to roll. Download here.
To install, unpack Bad Behavior from here into a sub-directory of the modules directory and then copy badbehaviour.module into that folder. Turn on the module in admin/modules and tune the settings in admin/settings/badbehavior.
Enjoy the reduction in spam comments.