This project is read-only.

Spam Protection Feature Team (1.5)

Topics: Announcements, Core
Mar 15, 2012 at 12:36 AM

This is the thread for the spam protection feature team, where one can volunteer to do work and discuss design.

Strawman design proposal:

  • Core anti-spam hooks
    This is event bus hooks that enable the development of arbitrary anti-spam strategies, and their combination. 
  • Captcha
    Having re-Captcha as a default, but replaceable option in addition to the current Akismet. Sébastien already has working code for this.
  • See
    There are many possible strategies to fight spam. We need to make sure Orchard can accommodate any of those. And of course, if people want to implement some of those, as modules or as core feature proposals, they are more than welcome to do so.
Mar 16, 2012 at 12:19 AM

A few things.

- There is already an AntiSpam module done by Sebastien...

- There is also another implementation of Akismet in the comments module based on

1. Review what the Anti Spam module does.
2. Extend to include rules etc...
3. When installed add the rules to the comments module.
4. remove inbuilt akismet from comments module.


Mar 16, 2012 at 12:39 AM

The code from orchardantispam will be used, because what is does is to provide compatibility with other providers, and also because it is not tight to Comments.

As Bertrand is suggesting, there should be some events to trigger spam check. So if no spam module is installed, it wouldn't interfere with the caller module. Also multiple spam modules can act during the process. If one fails then it's spam. Those modules could also be extended to provide statistics or content retention. It should also handle specific rules like white/blacklisting specific users/domains/

I agree that maybe the comment module should then be migrated to use the new infrastructure.


Mar 16, 2012 at 12:42 AM

Interesting ideas in the next version of the antispam module for drupal:

  • Added service Mollom and in addition to current 3 services.
  • Make it possible to select and use multiple services at the same time.
  • Determine if it's spam or ham depending on the rule in case of multiple services are selected (majority rules, weight rules, all or nothing rules, etc...)

  • Mar 19, 2012 at 8:44 PM

    Slightly off, but it might be a great time to refactor the Comments module to be more Orchard-y, including how the comment display and editor is built (today it's hard-coded, making it hard to attach anything to comments). Most of the concerns in this discussion still stand.

    Apr 27, 2012 at 1:29 AM


    In order to take this feature to the next steps, I need one of you to step up and represent the rest of the team. Who would be willing to take that role? Your responsibility as team leader will be to report progress at the weekly steering committee meetings, either in written form or by showing up at the meeting.

    Please also start using for task management on this feature team.


    Apr 27, 2012 at 6:19 PM

    I stand as a candidate

    Apr 27, 2012 at 6:27 PM


    May 3, 2012 at 2:18 PM

    Piedone and I are willing to rewrite the comments module, see the discussion that Piedone linked before for more info on this.

    May 3, 2012 at 5:47 PM

    Fantastic, thanks for that!

    May 3, 2012 at 6:05 PM


    The module is ready for use on
    The Comments module will be altered to use it instead of the current implementation. 

    RECaptcha part
    SubmissionLimit part
    SPamFilterPart, including Akismet and TypePad services
    Other filters can be added by modules (white list, IP filter, ...)
    Spam management page
    Report false positive to filter services when a content has been wrongly categorized 


    May 9, 2012 at 3:02 AM

    Feature Team Leaders, please join us tomorrow at 1PM Pacific Time for a status report at (Lync client required). If you can't join us, please leave us a note here giving status before the meeting.



    May 17, 2012 at 10:12 AM

    Please see the Comments refactoring discussion.