Skip to content Skip to navigation

Handling Spam in Drupal

"Spam spam spam spam, spam spam spam spam, lovely spam, wonderful spam".  ~ Monty Python

Named after a lunch meat made of spiced ham, "spam" is used to describe unsolicited and unwanted bulk messages which are usually some sort of advertising. Sure you might be able to find a great deal on sneakers, but left unchecked, these messages clog up our email and fill up the comment sections on websites.

We use spam filters to eliminate these messages from our email, but what do we do about our websites?

There's a module for that!

The Drupal community has created several modules to help eliminate spam from websites including Akismet, CAPTCHA, Troll, Bad Behavior, and Spam. Here at Stanford Web Services, our favorite spam module, Mollom, was created by the founder and project lead of Drupal, Dries Buytart.

What is Mollom?

Mollom is an "intelligent" content moderation web service. By monitoring content activity on all sites in the Mollom network, Mollom is in a unique position to determine if a post is potentially spam; not only based on the posted content, but also on the past activity and reputation of the poster. In short, Mollom handles incoming posts intelligently, in much the same way a human moderator decides what posts are acceptable. Therefore, Mollom enables you to allow anonymous users to post comments and other content on your site.”

~ From Drupal.org:

How do I use Mollom?

Since the Mollom module on Drupal.org works with the Mollom service at mollom.com, you’ll need to have a Mollom account.  This is free for the basic service.  

Once you have a Mollom account, you’ll register your website on Mollom.com. Then, using the Mollom module on your website (you’ll need to enable it first), you’ll identify which forms on your website need spam protection.  

To learn more about Mollom, and for some great directions in configuring Mollom, visit Drupal.org here: 
http://drupal.org/documentation/modules/mollom.

Categories: 

Comments

On top of Mollom's built-in filtering capabilities, you can define custom blacklists for spam, profanity, etc., at admin/config/content/mollom/blacklist