Beschrijving
Dam Spam
Beschrijving
Dam Spam is a comprehensive 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
- Multiple Protection Layers – Block spam using IP lists, disposable email detection, and behavioral analysis
- CAPTCHA Support – Integrate with Google reCAPTCHA or hCaptcha to challenge suspicious submissions
- Third-Party API Integration – Connect with Akismet, Stop Forum Spam, BotScout, and other spam detection services
- Customizable Challenges – Present challenges only to suspicious users while allowing legitimate users through
- Allow and Block Lists – Maintain custom lists of allowed and blocked IPs, emails, and user IDs
- Smart Caching – Cache known good and bad IPs to improve performance and reduce API calls
- Comprehensive Logging – Track all blocked attempts and approved submissions for review
- Custom Login/Registration Forms – Optional custom forms with built-in spam protection
- User Management – Identify and manage inactive or suspicious user accounts
Configuration
After installation, go to the Dam Spam settings in your WordPress admin to:
- Enable the protection types you need (registration, login, comments, contact forms)
- Choose which spam detection methods to use (IP checks, email validation, third-party APIs)
- Configure CAPTCHA settings if desired
- Set up allow and block lists for your specific needs
- Review logs to fine-tune your protection settings
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; } } - Hook into
dam_spam_addons_blockordam_spam_addons_allow - Return an array with your file path and class name
- Create a class with a
process()method - For
dam_spam_addons_block: returnfalseto continue checking, or a string to block - For
dam_spam_addons_allow: returnfalseto continue checking, or a string to approve - Test using Dam Spam > Testing (spam checks don’t run when logged in)
Installatie
Automatic
- Go to Plugins > Add New from your WordPress admin menu
- Search for “Dam Spam”
- Click “Install Now” and then “Activate”
- Go to Dam Spam > Protections to configure your spam protection settings
Manual
- Download the plugin ZIP file
- Go to Plugins > Add New > Upload Plugin
- Click “Choose File” and select the ZIP file
- Click “Install Now”
- Click “Activate”
- Configure settings under Dam Spam > Protections
FAQ
I’m locked out of my admin!
Don’t panic. Access your site via FTP, navigate to
wp-content/plugins, and rename the “dam-spam” folder to “1dam-spam” to disable it (remove the “1” to enable again). Then you can log in and adjust your settings.How to migrate from Stop Spammers to Dam Spam?
Your settings will automatically be copied over to Dam Spam in the background and be retained if you decide to switch back. This requires no action on your part.
Why are Stop Spammers features missing from Dam Spam?
After careful consideration, certain features have been removed. Please ask for more info on GitHub.
Can I use Dam Spam with Cloudflare (and other CDNs and proxies)?
Yes. But you may need to restore visitor IPs.
Can I use Dam Spam with Wordfence (and other security plugins)?
Yes. They can even complement each other. However, if you have limited hosting resources or don’t allow registration on your site, using both might be overkill.
Can I use Dam Spam with WooCommerce (and other ecommerce plugins)?
Yes. In some configurations, you may need to go to Dam Spam > Protections and toggle on “Only Check Native WordPress Forms” if you experience any issues.
Yes. Dam Spam can check Akismet for an additional layer of protection.
Can I use Dam Spam with Jetpack?
Yes. You can use all Jetpack features except for Jetpack Protect, which conflicts with Dam Spam.
Why is 2FA failing?
Toggle off the “Check Credentials on All Login Attempts” option under Dam Spam > Protections and try again.
Will Dam Spam slow down my site?
Dam Spam uses smart caching to minimize performance impact. Known good IPs are cached and bypass most checks, while API calls are only made for suspicious submissions.
How can I test my spam protection settings?
Go to Dam Spam > Testing to run tests and see how your current settings would handle different types of submissions.
Is Dam Spam GDPR-compliant?
Yes. Dam Spam does not collect any data for marketing or tracking purposes. All IP logging is for legitimate security purposes only. All data can be deleted upon user request.
What third-party services are used and what data is sent to them?
There are several optional services you may use that involve sending data to third parties including: Google reCAPTCHA, hCaptcha, Spamhaus, Stop Forum Spam, Project Honeypot, and BotScout. You may wish to read each services’ privacy policy to see if you’re comfortable using them, but generally speaking, whenever someone for example tries to use a contact form on your website, their IP address, name, and email may be sent to these services to check against spam blocklists.
Beoordelingen
Bijdragers & ontwikkelaars
“Dam Spam” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Dam Spam” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
1.0.5
- Added Cloudflare integration
- Added Cloudflare Turnstile CAPTCHA
- Added ability to sync Ban List to Cloudflare
- Added ability to Block Countries via Cloudflare
- Added support for Light Mode
- Added documentation: https://github.com/webguyio/dam-spam/wiki
1.0.4
- Added new Ban List feature that bans IPs from the entire site
- Added new ability to lock accounts from Users page
- Improved Limit Login Attempts feature
- Improved Import/Export feature
- Improved Reset feature
1.0.3
- Improved add-on handling
- Added missing translations
1.0.2
- Improved handling of emails in allow and block lists
- CSRF fixes
1.0.1
- Added option to skip spam checks on payment forms
- Added safety check for themed login pages
- Fixed themed login
1.0
- Fixed Divi compatibility issues
- Fixed honeypots
- Fixed CSRF issues
0.9
- Fixed CSRF issues
0.8
- Fixed bug caused by incorrectly added IP ranges
- Updated Google Safe Browsing API
- Updated IP lists
- Code cleanup and organization
- Removed dated firewall feature
- Removed dated/defunct checks
0.7
- Minor fixes
0.6
- Moved to WordPress.org
0.5
- Removed country checks
- Removed dated SolveMedia CAPTCHA
- Improved form checking
0.4
- Bug fixes
0.3
- Bug fixes
- Security improvements
0.2
- Bug fixes
0.1
- New fork of Stop Spammers




