Stop spam in comments module

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
brady

Stop spam in comments module

Post by brady »

I use the Comments module throughout the site to add a little user interaction. However, lately I have been having problems with people spamming. The comments module includes an option to make all new comments inactive, but I don't really like that. I wanted a way to only make comments that appear to be spam inactive, until I get around to checking them out. Instead of writing my own spam detector I decided to rely on Akismet(Spam detection web service)

I have attached a version of the Comments module that integrates with my Akismet module(get it in the forge). It is still pretty rough around the edges. When I have more time I will put some more work into this, and base it off of the SVN version of Comments so I can submit a proper patch. Until then, this seems to be working fairly well.

Edit: Can't attach, get them here
http://www.webtech101.com/uploads/cmsms ... ts-MOD.zip
http://www.webtech101.com/uploads/cmsms ... .0-MOD.xml
cyberman

Re: Stop spam in comments module

Post by cyberman »

Not sure, but does comments module not captcha for preventing spam?

PS: Many thanks for your CMS akismet.
brady

Re: Stop spam in comments module

Post by brady »

Yes, it does. But this method stops spam posted by users too, and is less annoying for users. Besides Captcha wouldn't work on my server....
cyberman

Re: Stop spam in comments module

Post by cyberman »

You were right - have problems with captcha on some accounts too.

Thanks once again - your patch should be a part of Comments :).
brady

Re: Stop spam in comments module

Post by brady »

I have submitted a patch to Comments tracker. http://dev.cmsmadesimple.org/tracker/in ... 3&atid=171
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

Re: Stop spam in comments module

Post by Elijah Lofgren »

brady wrote: I have submitted a patch to Comments tracker. http://dev.cmsmadesimple.org/tracker/in ... 3&atid=171
Applied in SVN.
Thanks!

- Elijah
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
Post Reply

Return to “Tips and Tricks”