[Spam module v2]
[Spam module v3]
[Ad module]
[MailArchive module]
The Drupal Spam Module v2
[Features]
[Downloads]
[Changes]
[Development]
This module is now maintained in Drupal's contrib repository, released under a GPL license.
Features
- Written in PHP specifically for Drupal.
- Highly configurable.
- Automatically detects and unpublishes spam comments and other spam content.
- Automatically learns to detect spam in any language using Bayesian logic.
- Automatically learns and blocks spammer URLs.
- Automatically blacklists IPs of learned spammers, preventing them from posting additional spam and wasting database resources.
- Detects repeated postings of the same identical content.
- Detects content containing too many links, or the same link over and over.
- Supports the creation of custom filters using powerful regular expressions.
- Can notify the user that his or her content was determined to be spam, preventing confusion over why their content doesn't show up.
- Can notify the site administrator in an email when spam is detected.
- Provides 'report as spam' links allowing users to easily help detect spam.
- Provides simple administrative interfaces for reviewing spam content.
- Provides comprehensive logging to offer an understanding as to how and why content is determined to be or not to be spam.
Add-ons
- Spam SURBL, supports six Spam URI Realtime Blocklists
- Trackback Blackhole, to block trackback spammers on sites that don't use the trackback module.
Downloads
Drupal 5.x:
Current release: none
[]
[]
[browse]
(none)
Port in progress, patches welcome!
Drupal 4.7.x:
Current release: 2.1.4
[gz]
[bz2]
[browse]
(October 3, 2006)
Drupal 4.6.x:
Current release: 2.0.13
[gz]
[bz2]
[browse]
(April 9, 2006)
Drupal 4.5.x:
Current release: 2.0.13
[gz]
[bz2]
[browse]
(April 9, 2006)
Changes
2.1.4 (October 2, 2006)
- Bug fix: Allow deletion of custom filters.
- Bug fix: Redirect to correct page when deleting URL filters.
- Bug fix: Remove hack from 4.6, use comment api to detect and filter new comments while they're being previewed.
- Bug fix: Redirect to correct page when manually scanning comments.
- Bug fix: Support filtering of forum content type.
2.1.3 (July 15, 2006)
- Bug fix: Redirect to proper page when marking comments spam/notspam.
- Bug fix: Fix links in emails about new spam content.
- Bug fix: Proper redirect when manually scanning with custom filters.
- Bug fix: (spam.install) Fix spam_custom table data to work with postgresql.
- Bug fix: (trackback_blackhole) Be sure arg() exists, or emulate it.
2.1.2 (June 22, 2006)
- Feature: Add PostgreSQL support to spam.install
- Bug fix: Do not add username to end of comments when displaying
2.1.1 (June 13, 2006)
- Bug fix: Actually filter comments (critical)
2.1.0 (May 26, 2006)
- Initial 4.7 release. Special thanks to Evan Wise and Gordon Heydon!
2.0.13 (April 9, 2006)
- Feature: Add 'report as spam' links to filtered content allowing users
to help track down spam.
- Feature: Added PostgreSQL script for Spam SURBL module
2.0.12 (October 9, 2005)
- Feature: Improved tokenizer logic. This decreases the total number of tokens, and increases the bayesian filter's ability to quickly learn spam words. (You must run the provided spam_update.php script when upgrading from an earlier 2.0 spam module.)
- Feature: Full support for PostgreSQL, including a new spam.pgsql script.
- Feature: New and improved default custom filters to catch common Drupal spam "out-of-the-box".
- Bug fix: Prevent 'spam' and 'notspam' values in 'spam_tokens' table from going negative. (Reported to happen with the trackback module.)
- Bug fix: Properly handle tokens with more than 255 characters.
- Bug fix: Fix a typo in the spam.mysql key preventing automatic creation of the spam module database tables.
- Bug fix: Properly report the number of duplicates marked as spam.
(full changelog)
Development
You can browse the spam module source code online:
The spam module is written in PHP, designed for use with the Drupal CMS. The source code has been released under a BSD license. The source code is managed with the Mercurial Source Control Management system. The Mercurial Wiki includes directions for installing Mercurial on Unix-like systems (including Mac OS X) and Windows.
Use the following Mercurial command to obtain the latest spam module code for Drupal 4.6:
hg clone http://kerneltrap.org/hg/drupal/4.6/spam spam
Use the following Mercurial command to obtain the latest spam module code for Drupal 4.7:
hg clone http://kerneltrap.org/hg/drupal/4.7/spam spam
Use the following Mercurial command to obtain the latest spam module code for Drupal 5.x:
hg clone http://kerneltrap.org/hg/drupal/5.0/spam spam