
Dam Spam is a spam protection plugin that blocks spam registrations, login attempts, comments, and contact form submissions. It provides multiple layers of protection including IP blocking, email validation, CAPTCHA challenges, and integration with third-party spam detection services.
How it Works
Dam Spam runs a series of configurable checks on registrations, logins, comments, and form submissions. When a submission is flagged as potentially suspicious, you can choose to block it outright or present a CAPTCHA challenge. Legitimate users are cached to speed up future submissions, while known spam sources are permanently blocked.
Features
Configuration
After installation, go to the Dam Spam settings in your WordPress admin to:
Differences from Stop Spammers
Dam Spam is a fork of Stop Spammers. While the core spam protection functionality remains similar, Dam Spam’s file and code structure has been significantly cleaned up and modernized.
Addon Support
Dam Spam supports custom spam checks via addons. Create a separate plugin with this structure:
<?php
/*
Plugin Name: Dam Spam Addon Example
Description: Custom spam check addon for Dam Spam
Version: 1.0
*/
add_filter( 'dam_spam_addons_block', function( $addons ) {
$addons[] = array( __FILE__, 'My_Spam_Check' );
return $addons;
} );
class My_Spam_Check {
public function process( $ip, &$stats, &$options, &$post ) {
if ( $ip === '123.45.67.89' ) {
return 'Blocked by custom check';
}
return false;
}
}
dam_spam_addons_block or dam_spam_addons_allowprocess() methoddam_spam_addons_block: return false to continue checking, or a string to blockdam_spam_addons_allow: return false to continue checking, or a string to approve