SpamBam!

Back to articles

hackvertor

Author:

Gareth Heyes

@hackvertor

Published: Mon, 12 Feb 2007 15:28:14 GMT

Updated: Sat, 22 Mar 2025 15:37:59 GMT

Comment spam plugin

I've wrote a wordpress plugin that hopefully eliminates comment spam on our site as well as slows down the stupid comment spammers. The plugin is called SpamBam and it is released as freeware under the GPL license. The only drawback is that javascript is required to post a comment.

Update

The new version of SpamBam is out 1.2, it now allows Wordpress comment spam protection to work alongside SpamBam.

Installation

To install the plugin simply create a folder called "spambam" in the "wp-content/plugins/" directory and place the spambam.php file in that folder. So your full path to the plugin should be "wp-content/plugins/spambam/spambam.php". Once you have copied spambam to the folder, you need to enable it in the plugins section of the wordpress admin.

<ol> <li>[Download the current release](http://wordpress.org/extend/plugins/spambam/)</li> <li>Unzip and copy *the whole spambam folder* to your `plugins` directory.</li> <li>Enable SpamBam in the **WP Admin >> Plugins** section.</li> <li>Done!</li> </ol>

Optional configuration

SpamBam requires no configuration but if you wish to alter the delay option, by default SpamBam has a 30 second delay if it detects a comment spammer, you can change this in the spambam.php file to any value desired. The constant variable SPAMBAM_SPAMMER_DELAY is used to define the seconds delay. Change the following line (if required).


define('SPAMBAM_SPAMMER_DELAY', 30);

<script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script>

Back to articles