waikay.net

rambles of an avid procrastinator
"Why do today what you can do tomorrow?"

Archive for May 16th, 2006

Shoutbox Spam

Tuesday, 16 May 2006, 11:15 pm, me

Had a bad bout of comment spam some time ago which even fooled WP Hashcash which I have been using then. Unwilling to make everyone fill in some unreadable Captcha image, I installed Spam Karma 2.

And all was well… until now.

My shoutbox just got spammed with 300+ entries! And that’s after passing it through the normal WP filters, which admittedly isn’t very stong.

So what’s a programmer to do?

Simple. Just recode the shoutbox to tap into Spam Karma’s rather efficient anti-spam system. But that is not without first looking (for my first time) at how Spam Karma actually works. It is a really neat design but doesn’t really have the API to just ‘tap’ into it, so I did the next best thing: Enter each shout entry as a new comment, let Spam Karma do its job, then take out the comment and put it into the shoutbox. With that it should work for most anti-spam plugin that works off the WP comment posting process.

As much as I know, this is the only shoutbox which integrates with your WP anti-spam plugin. =)

So no more spam! The same spammer tried again when I was testing the new version and it works perfectly. But if you’re somehow unable to tag, just drop a comment and I’ll look to it.

Oh and thanks Kerwee for notifying me so soon.

Filed under: jargon, rants

Creative Commons License
Except stated otherwise, content of this site is
licensed under a Creative Commons License.