Reducing Comment Spam in Drupal

posted by Ishmael Sanchez on Apr 27, 2009

Today I received my first comment spam. Honestly, I thought it would take longer, but I'm not interested in dealing with it more than I have to. So I have modified some Drupal settings to prevent spam. First I made sure on /admin/user/permissions that the proper permissions were set. I want anonymous users to view and post comments but I do not want them to be able to automatically post comments without my approval first.

Set Permissions
Comment Permissions

Next, I installed the CAPTCHA module and enabled it. The CAPTCHA module is great at preventing automated spam. On the CAPTCHA administration page, /admin/user/ captcha, I selected the Math CAPTCHA challenge type. I choose the math CAPTCHA because I personally prefer it to text CAPTCHA's which can sometimes be difficult to read. You do not want to annoy legitimate users with a difficult CAPTCHA. You can also use the reCAPTCHA another CAPTCHA module to extend the functionality of the CAPTCHA module.

This should deter spam, but if spam becomes an issue on this site I might have to use the Mollom module.

UPDATE: After checking the log files and banning a couple IP's the limited spam that was getting through was stopped. Also, restricting the Drupal input filter to disallow links helps to stop SEO spammers (If a legitimate comment is posted I can adjust the input format).

Very interesting information

posted by Anonymous on Oct 29, 2009

Thank you! You often write very interesting articles. You improved my mood.

reCAPTCHA

posted by Anonymous on May 01, 2009

I use the reCAPTCHA Module and no problems yet. I like it. Have not use Mollom module looks good though.

Interesting!

posted by Anonymous on Apr 28, 2009

Definately very interesting. Not really my cup of tea, but I can see how others might benefit from your advise. :D

Ishmael Sanchez