My hobbies are my passion. Whether or not I receive donations, I will continue to do what I love. If you would like to focus my efforts towards a specific project, donating will help (Use the optional instructions/comments field).
Sat
Dec
01

2007

Textpattern Akismet Plugin

I’ve had a few requests for better spam protection for my moderation plugins. Akismet seems to be a popular/effective one for blog comments and there were plenty of existing libraries to save me the grunt work. I found a single reference to an existing Akismet plugin, but the info and download links were broken.

I wrapped the PHP 4 classes by Bret Kuhns in to a plugin. When enabled, this plugin will protect comments on your site. I hooked it in to the comment administration page so that it reports false positives and negatives back to the Akismet servers.

file: mem_akismet.txt [18.11KB]
Category: Textpattern
download: 518

Comment

Hello Michael. I am somewhat new to TXP but would like to use this plugin. However, I can not find where I am supposed to set the Alismet api key.

Any help would be much appreciated.

Will Wilkins · 12/01/07 05:17 PM · #

I found the setting in the site comment preferences. Thanks for your time.

Will Wilkins · 12/01/07 05:23 PM · #

Thats a great plug-in and something I was in the middle of writing myself!

I’ve tested it with the default “viagra-test-123” name test and it works like a charm. I’ll see how a few days of live testing turns out (my blog is currently being targeted by the “Nice site” spam bot at a rate of 20+ messages a day).

Thanks,
Brian

Brian McAllister · 12/03/07 08:22 AM · #

…and I’m a plonker as my last comment would have been regarded as spam by the askimet service as it includes common spam keywords… I feel terribly embarrassed to say the least!

Brian McAllister · 12/03/07 08:25 AM · #

It did flag it as spam, but I’m not sure which one of the various spam filters I have installed should take credit for the block. ;-)

Manfre · 12/03/07 11:03 AM · #

I am running TP 4.0.4. I put this plugin in, activated it, but like the first poster, I cannot find where to place my key. I looked in the “comment” section of the Admin | Prefs | Advanced list, but under comments, I just have the usual “require address, Require name” fields.

Suggestions are welcome.

Michael Wexler · 02/06/08 12:42 PM · #

Same problem here with txp 4.0.4! Would be great if you could fix that.

Aaron · 02/12/08 03:58 AM · #

I have no intentions of making fixes for old version of Txp. This plugin works great in 4.0.5 and 4.0.6.

Manfre · 02/12/08 06:16 PM · #

I didn’t even know this existed Michael. Did you not put it up on the forum?

Stuart · 02/26/08 06:30 PM · #

Thanks for the plugin Michael. Works a treat!

Noel Hurtley · 04/02/08 03:59 PM · #

just a hint if you encounter slow akismet response times when posting a comment:
insert a “Connection: close\r\n” . line into the getResponse function.

problem description can be found here

ghz · 05/05/08 06:10 PM · #

You can add your API key under “Preferences > Basic > Comments” — I also couldn’t find the prefs at first, almost too obvious :)

Maybe add that to the docs?

milkshake · 05/07/08 09:54 AM · #

Textile Help