3

I´ve searched for all Drupal 7 modules that try to give some SPAM protection, but haven´t found what I need, maybe I´ve overlooked something?

I need to prevent anonymous comment posting when comment has specific -configurable- spammy words. How may I do that?

1

You can try Spam module.

It runs filters on posted content, for example using regexps.

Another way is to write a Rule that examines posted comments and deny them if certain words are found, but unfortunately this module is only available for Drupal 6.

And also you can write a validate function to the comment form, examine the content on submission and use form_set_error if you detect those words. To do this just implemente the hook_form_alter (or the hook form alter with form id), add your valditation function:

$form['#validate'][] = 'you_custom_validate_function';
  • Thanks for your reply! I haven´t thought on using Rules! Sadly, Spam module is D6 only. – Rosamunda Oct 12 '13 at 18:36
  • Oops, I didn't check the Spam module availability. Editing. – sanzante Oct 12 '13 at 18:46
1

I think you're looking for Mollom built by the same gentleman who created Drupal.

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.

  • Mollom does not have a configurable list of spammy words. – rooby Oct 13 '13 at 11:19
1

You can try word filter module

For example, you can set the filter to find the word "work" and when found, change it to "play". You may toggle whether the filter applies to node titles as well as the body

It also has filtering for comments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.