Peter Marklund

Peter Marklund's Home

Tue March 31, 2009
Programming

Rails Tip: Using Rakismet to Stop Spam

I am trying out Rakismet now for this blog to prevent comment spam - an issue that has been bugging me for a long time and that has been getting worse lately. Setting up the Rakismet plugin was a breeze. Very nice! Now, let's hope it actually stops the spammers. We use Rakismet at Newsdesk and I think it's worked out really well there.

Comments

Peter Marklund said over 5 years ago:

I also hope Rakismet won't be too restrictive and stop comments such as this one... :-)

--------------------------------------------------------------------------------

Peter Marklund said over 5 years ago:

Here is another comment, still not spam...

--------------------------------------------------------------------------------

Jarkko Laine said over 5 years ago:

Did you get spam even despite of your 1 + 1 question? Meaning, you got spam sent by actual human beings?

--------------------------------------------------------------------------------

Peter Marklund said over 5 years ago:

Jarkko,
yes I did get spam despite the 1+1 question, and quite a lot of it. Even today with Rakismet, some spam was able to slip through. It seems Rakismet filters out most of the spam though, and that's a real relief.

Cheers

Peter

--------------------------------------------------------------------------------

Adam Meehan said over 5 years ago:

Perhaps the bot spammers have caught up to the basic math filter. I wonder how it would go with the math question as an image instead of straight text. Or are they as Jarko suggests human spammers?

I have used a hidden form field done with javascript to hide on load to filter spam. Its based on the knowledge that spam bots usually fill in all form fields with something, then you just filter comments if the hidden field has content. This was just a small low traffic site though.

I like the idea of a simple tricks, like the math, to fool spamming. Though I just use akismet on my wordpress blog.

--------------------------------------------------------------------------------