The Spanner logo
    • Home
    • Blog
      • Blog home
      • RSS
    • Login
    • Home
    • Blog
      • Blog home
      • RSS
    • Login
    The Spanner logo

    The Spanner
    Web security blog

    Made by Gareth Heyes
    Follow me on Twitter: @garethheyes

    Javascript for hackers!

    Hackvertor logo
    Shazzer logo
    My Github account
    Recent posts
    Introducing Feedworm: A Privacy-First RSS Reader That Lives in DevToolsSpeedy RSVP extensionAutoVaderHackvertor history and tag finderShadow Repeater v1.2.3 releaseBurp Hackvertor v2.1.24 releaseHacking roomsXSSing TypeErrors in SafarivalueOf: Another way to get thisMaking the Unexploitable Exploitable with X-Mixed-Replace on FirefoxThe curious case of the evt parameterCSS-Only Tic Tac Toe ChallengeRewriting relative urls with the base tag in SafariBypassing DOMPurify with mXSSNew IE mutation vectorHow I smashed MentalJSMentalJS DOM bypassAnother XSS auditor bypassXSS Auditor bypassBypassing the IE XSS filterUnbreakable filterMentalJS bypassesmXSSJava SerializationBypassing the XSS filter using function reassignmentRPOSandboxed jQueryX-Domain scroll detection on IE using focusEpic fail IEnew operatorDecoding complex non-alphanumeric JavaScriptHacking FirefoxDOM ClobberingBypassing XSS AuditorThe evolution of codeNon-Alpha PHP in 6-7 charsetTweetable PHP-Non AlphaMentalJS for PHPOpera x domain with video tutorialSandboxing and parsing jQuery in 100ms

    SpamBam!

    By Gareth Heyes (@hackvertor)

    Published 19 years 3 months ago • Last updated March 22, 2025 • ⏱️ 2 min read

    ← Back to articles

    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