This video shows how you can also protect content creation forms. This means that you can allow users to create content on your site, and have that content analyzed for spam before it gets published.

First, we need to allow authenticated users to create articles.

  • Go to “People => Permissions”
  • Check the box next to “Article: Create new content” for the “Authenticated User” role

Now, let’s setup Mollom.

  • Go to “Configuration => Content authoring => Mollom content moderation” (admin/config/content/mollom)
  • Click “Add form”
  • Form: “Node: Article form” (I’m going to allow all authenticated users to create articles, but have them analyzed for spam before they are published.)
  • Protection mode: Text analysis
  • Text analysis checks:
    • [x] Spam
    • [x] Profanity
  • Text fields to analyze
    • [x] Title
    • [x] Body
  • Text analysis accuracy: Normal
  • When text analysis is unsure: Show a CAPTCHA
  • When text analysis identifies spam: Discard the post
  • (Save)

Test the form

Now, when I go back to Safari, and refresh the page, I can click “Add content”, and create a new article. You’ll notice the line at the bottom of the page that says “By submitting this form, you accept the Mollom privacy policy.” This is how we know that the form is being protected.

When I fill out the form, and enter "spam" in either the "Title" or “Body” field and click “Preview”, I get the notification: "Your submission has triggered the spam filter and will not be accepted.” When I enter "unsure" Mollom asks me to complete a captcha to verify that I am a human. When I successfully complete the form, the submission is accepted. And when I enter "ham", the form goes through on the first try because Mollom has determined that the submission is legitimate.

Now that we’re done testing the module, let’s disable “Testing mode”.

  • Go to “Configuration => Content authoring => Mollom content moderation => Settings” (admin/config/content/mollom/settings)
  • [ ] Enable testing mode
  • (Save configuration)