Spam Wordpress

Spam Karma 2 Akismet Plugin BETA

This plugin is no longer BETA! The location of the zip containing the plugin did not change so just redownload it if you’ve downloaded it before January 31st. Have fun!

If you are a wordpress blogger you probably know about Akismet, the new spam stop solution that Matt Mullenweg announced last week. It’s his try to prevent spam from ever appearing on all those wordpress blogs on this planet. WordPress.com already uses it and you can download it on akismet.com as a plugin for WordPress 1.5.2. All you need is a WordPress.com API key and for that you need a WordPress.com account and for that you need to download Flock (brrr, you know Flock sucks, but it gives you an API key … hurray!) and go to wordpress.com/flock with Flock and sign up. The API key is then located in the profile of your WordPress.com account. So this is a fairly complex way to get and use this super simple plugin of theirs.

Akismet works by sending all new comments to their servers and replying with „true“ or „false“ if the service thinks it’s spam or not. You can also manually mark comments as spam and recover spam comments (false positives) that are real comments. Both improves Akismet by reporting back the mistake.

While this is a nice approach I don’t like the idea of having only one service to check a comment against. I recently switched to Spam Karma 2 and am very happy with it. It never failed me and successfully sent nearly 900 comments to hell in the last 18 days. But nobody is perfect and checking against Akismet could make Spam Karma 2 even better.

Enter Spam Karma 2 Akismet Plugin :-) (beta test), an additional filter for my favourite spam prevention system (which also lists detected spam in a more readable way).

You can download the BETA (!!!) here: sk2_akismet_plugin.zip

Advanced Settings
Unzip it to your sk2_plugins directory and enter the above mentioned WordPress.com API key in the „General Settings“ of this plugin plugin (a plugin in a plugin, sic!). You can finetune (set some boundaries) the plugin in the advanced settings, but the default values should work fine. Nevertheless I’d like feedback on that, too. And on everything else.

The plugin automatically submits detected spam and ham that Akismet got wrong back to Akismet.com which should make the service better with time (it already detects a lot of spam … 80% of all comments are spam they say … but more can’t hurt, right?).

– Changed some things in the text of this announcement.
– The plugin no longer submits all comments as spam/ham, only the ones where Akismet was wrong.
– Still BETA

Second Update:
– Uploaded a new version which fixes a bug mentioned by Matt in the comments
– Changed the picture to reflect the current version
– Still BETA though ;-)

67 Antworten auf „Spam Karma 2 Akismet Plugin BETA“

Woa! This sounds great!

Thanks so much for contributing… Don’t forget to add yourself in on the wiki page… and contact me when you start feeling confident about a stable public release: I can post something about it on the update feed…


Akismet Plugin für Spam Karma 2

Nachdem Matt Akismet, seine zentralisierte Lösung zur Prüfung von Kommentarspam, vorgestellt hatte, konnte es nicht lange gehen, bis die ersten Plugins dazu geschrieben werden.
Ein für mich ganz interessantes ist “Spam Karma 2 Akismet Plugin…

Thanks Matt for your feedback. I modified to plugin to always check against Akismet.com and only submit as spam/ham if it is wrong (within boundaries). It also submits if a comment gets recovered or moderated in SK2 (and Akismet was wrong).

I’ll update the posting above in just a second. Still BETA! ;-)


One last small comment: I understand now you always run it by Akismet in order to know whether Akismet knows it’s spam or ham… You probably should give the option (advanced?) to disable that in order to avoid an unnecessary load for people who want to keep their spam protection lean and mean (akismet + regular sk2 modules might become a bit slow)…

Cheers and keep up the good work!

[…] Stattdessen ist nunmehr das exzellente Spam Karma 2 im Einsatz. Das Tool bietet umfangreiche Einstellungen, es löscht keinen Spam ungefragt (wegen false positive) und hat bei mir bisher zu 99.9% aller Spamversuche abgeblockt. Optional würde ich mir das Plugin in Kombination mit Akismet anschauen. Akismet speichert Spamquellen zentral ab, Spam Karma 2 ist aber ein Sololösung. Beide zusammen machen Laune. […]

dr Dave,
wouldn’t such an option be the same as if the user disabled the filter via the „Strength“-option? Without checking Akismet we should not submit anything, Matt said.

Possible slowness shouldn’t be a big problem. It would just be a „fsockopen“ waiting for an answer and nothing cpu intensive, so it shouldn’t slow down the server, only the commenting-process.

btw: it already uses the default skip_under and skip_above values, so Akismet gets only checked if the karma is above -15 and below 10 (I removed the advanced option to set these values, because the default values seemed good enough, aren’t they?)

no you do not need to install the original Akismet plugin.

stick to the language of this article, please ;-) But to answer your question: you are using the default values in almost every SK2-filter. Few of them change the values and none of them allows to manually set them in the general settings. So no, I won’t reintroduce that setting. Just set it in the filters php-file if you desperately need to change these values ;-)

@sebbi: Don´t be so cruel to Capellmeister. We´re only poor german surfer.

BTW: Plugin is working fine. I´ve got the impression, that now SpamKarma gets more spam than ever. Or is the spam wave bigger than normal?

[…] Matthew Mullenweg, Spam Killa — The creator of WordPress has started a new web service called Akismet that blocks comment and trackback spam on the blogs of subscribers. A few days latter, Sebastian Schmieg released an Akismet plugin for Spam Karma 2, my spam-blocker of choice. (via) […]

WP:Spam Karma 2

そのなかでも最近リリースされたAkismet(MMRT daily life » Akismet 日本語版)は、優秀なプラグインとして評価されています。

[…] One that I forgot to blog about earlier was this Spam Karma and Akismet integration. Spam Karma was one of the first plugins for WordPress to take a really comprehensive approach to addressing spam. The only other serious solution is Bad Behaviour, and Akismet complements both perfectly. Finally the first draft of the API documentation is online, so if you’ve been waiting for that to try out your version be sure to check it out and leave comments if anything isn’t clear. […]

Hmm, I keep getting a connection error when I installed this plugin. I am guessing it’s a fsockopen error when the plugin tries to connect to kismet’s servers. I do have an API key, so that’s not the issue (not that I am led to believe =P). When I try to save my settings for SK2 I get the error. Are the kismet servers having downtime? Or is my webhost unable to make fsockopen connections? I don’t think it’s the latter, seeing as I requested the ability for remote RSS feeds to be read by magpie. (I had my webhost disable something in their php setup for magpie to be able to read remote feeds).

Any ideas to my problem are greatly appreciated. For the ability for SK and Akismet to work together with the Bad Behavior plugin would be the ultimate cyber guard dog for any WordPress user…kinda like a personal Cerberus!

Hello Sara,

does the original Akismet Plugin works for you? This plugin for SK2 ist heavily based on that code and shouldn’t behave any different.

If it is a real problem that the code uses the fsockopen() function, I’ll have a look at it and try to „fix this“ ;-)

No, it doesn’t [the original kismet plugin does not work for me]. I didn’t even get to input the API code, it „hanged“ when I clicked the link to get to the kismet setup page in the plugins manager and then was given a connection error, most of the time it was a „connection timed out“ error. That’s why I found this plugin, because I thought it was faulty coding within the kismet plugin that my webhost settings did not agree with. I guess it is with kismet in general or my webhost just doesn’t like me =P

Well, I suppose one (me) could include some error checking code and try different methods (like Curl) of reaching Akismet.

However, you said magpie would work and as far as I know magpie also uses the fsockopen() function. So it might also be a DNS problem or something on your server?

This is quite weird! I remember using magpie to parse my old livejournal feed. I remember submitting a support ticket because I got the „connection failed“ error in the rss_fetch magpie file. They said that they had to change something in the server’s php settings and then it worked. I eventually deleted magpie (because I deleted my LJ).

I went ahead and downloaded magpie for the hell of it; to test and see if it was just this plugin being the culprit. Much to my surprise when the same exact error occured that long time ago when I was using magpie with my livejournal. It seems someone at my hosting provider switched the setting back…

I think there’s some sort of security setting that is preventing any scripts from my account to contact remote servers, such as RSS feeds and of course to contact kismet.

I guess I will need to write a new support ticket. Sorry about this, and thank you for your time. I’ll report back if it gets fixed.

No problem, just let me know if it works for you after your provider changed its settings and I’ll be happy :-)

Time to switch from BETA to FINAL since there seem to be no major errors and we don’t want to be one of these fancy web 2.0 companies with permanent betas (round corners and pastell colours would be nice though) ;-)

Reporting back to sadly say that my webhost doesn’t allow remote connections. They told me that the first incident was a mistake, and that the tech who handled my support ticket wasn’t allowed to set the remote connections as enabled. I am a bit fustrated, but they probably have their reasons. Someone might of exploited that feature so my host was forced to disable it.

However, there is hope. I did notice that the RSS feed feature in the WordPress dashboard DOES work. I recieve the WordPress feeds, even though those feeds are on another server…thus it is some sort of remote connection that works!

If there is a way to figure out how they did that, then there might be a solution for us WPers who unfortunatly have a host who disabled remote connections. I would switch hosts, but I don’t have the money right now, or I would of done it immediately and I wouldn’t have to report back the bad news *smile*

I don’t know if my host has curl. I checked the phpinfo() and I didn’t see it…

[…] If you are using WordPress, go grab a copy of the Spam Karma plug-in. This is by far the best means of controlling blog spam I’ve found. It is extremely accurate in identifying comment spam with very few or no false positives. To increase it’s effectiveness even more, grab the Askimet plug-in for Spam Karma. Lastly, if you have upgraded to WordPress 2.0, you’ll need this compatibility plug-in as well. It may sound complicated, but it’s not. It’s a “set it and forget it” type of spam control. […]

[…] WordPress 2.0 comes with Akismet, a distributed spam capture system. In the past, I have been very successful in using Spam Karma 2 to scrape away the crap that people deposit in comments. Akismet seems nice, but doesn’t give me the control that I like, so I was happy to see that here Sebastian Herp provides a SK2 plugin that allows the two systems to work together. Give it a try. […]

[…] WordPress 2.0 comes with Akismet, a distributed spam capture system. In the past, I have been very successful in using Spam Karma 2 to scrape away the crap that people deposit in comments. Akismet seems nice, but doesn’t give me the control that I like, so I was happy to see that here Sebastian Herp provides a SK2 plugin that allows the two systems to work together. Give it a try. […]

I have a hack built into SK2 which was written by Peter Westwood which directs SK2, before it starts its spam detection on a submitted comment–to first check whether the comment is a first timer. If it IS, then SK2 automatically forces the comment into moderation, as I wish to moderate all first time comments. Without this hack, SK2 would override the normal WP comment moderation settings, one of which forces moderation for first time commenters.

So what I’m asking is, if I install your plugin will it disable Peter Westbrook’s hack?

Hello Richard,

my plugin works like all the other SK2-filters and only modifies the karmalevel of the comment SK2 is currently checking. Peter Westwoods plugin seems to jump in after all filters/other plugins have done their work and limits the karmalevel for certain comments (first timers or whatever is specified in the wordpress admin) to something that would cause them to get thrown into moderation … so no, it will not disable other – especially Peter Westwoods – plugins :-)

[…] I’m using SK2 with the Akismet plugin. While WordPress 2 comes with its own standalone version of a plugin that uses Akismet to check for spam, I like the control that SK2 gives you; it’s nice to know that some checks are handled locally as opposed to my comments going off someplace I don’t control to have its fate determined. To be fair, I had no problems or false positives or anything when trying the standalone Akismet for several days. It seemed to work just fine. […]

Hmmm, I’ve been running this for a couple of weeks now. Spam Karma is working great and no spam is getting through. But it doesn’t seem to be adding negative values for any akismet checks? I see in the comments that get through that it assigns 5 points to comments that akismet blesses as spam free. But I see no such negative values or any feedback on things that are trapped as spam?

Is this normal? Shouldn’t it be assigning a negative value to the posts that are spam?

Hello Chris, to speed up things the plugin only checks the Akismet service if the Karma of the comment is not bad/good enough to be absolutely sure. In most cases of comment spam Akismet is never being contacted because Spam Karma does a wonderful job identifying it on its own :-)

Just re-downloading this after upgrading SK2 and it seems that the contents of the zip file are kinda funky. The extension is „.php.attachment00“ and it doesn’t look like a complete php file when I look at it in a text editor. SK2 doesn’t like it either.

Hello Bren,
can you tell me the name of your unzipper? It works in Winrar and Winzip and also with the linux „unzip“. There should definetly be a file named „sk2_akismet_plugin.php“ inside the archive. Strange thing …

[…] WordPressでは、色々なアンチスパムプラグインがあります。そのなかでも最近リリースされたAkismet(MMRT daily life » Akismet 日本版)は、優なプラグインとして価されています。(私は本日から使用するので、効力が確かか確できていません。)優なのプラグインとえば、Spam Karma 2というプラグインがあります。今回は、日本であまり使用されていないと思う・・・アンチスパムプラグインを紹いたしましょう。このプラグインは、複数のフィルターによって成されており、フィルターをプラグインという形で管理されています。そのフィルターに、コメントを照らし合せるのですが、そのコメントにポイントを付けます。そのポイントは「Karma」値といいます。そしてコメントの最終的な「Karma」値を使って、承、破などを処理してれるプラグインなのです。で、なぜ今回Spam Karma 2に興味を引かれたか・・それSpam Karma 2 Akismet Plugin BETAというフィルターが作られたからです。名前から想出来ますが、Akismet web service を使用してフィルタリングするようです。もともと価のいプラグイSpam Karma 2ですが、このプラグインAkismet web service を使用したフィルターがあれば最強かなと思います。ちなみにこSpam Karma 2ですが、すでにローカライズされております。http://wp-plugins.net/sk2/l10n/ […]

[…] The news itself is pretty insignificant, relatively that is. But it is interesting to see b5media opt for the pay-for Akismet vs. the absolutely free Spam Karma 2, which based on my experience is an entirely valid alternative to Akismet. In fact, I use both combined through the Spam Karma 2 Akismet plugin. Double the plugins, twice less the comment spam, eh? […]

[…] 4dbr / » Spam Karma 2.2″>SpamKarma, welches hervorragend wirkt. Parallel (zum Plugin) oder stattdessen bietet sich für WordPress-Benutzer Akismet an. Das führt dazu, dass wir weder Kommentare noch Trackbacks moderieren. Nur ein sehr geringer Anteil schlüpft bisher durch “die Maschen”. Persönliches Überprüfen bleibt auch somit nicht erspart, der Zeitaufwand hierfür ist jedoch sehr gering. […]

Spamfilter sind natürlich eine Notwendigkeit in der heutigen Zeit, man sollte aber den Blognutzern eine Möglichkeit geben sich aus dem Filter auch entfernen zu lassen. Zeitweise kann ich nämlich nicht posten, sogar in Blogs bei denen ich schon kommentiert habe und auf neue Kommentare antworten möchte. Kann mir jemand sagen was man dagegen machen kann?

Hallo „Preisagentur“,

zunächst einmal sollte ein Kommentar nicht wie Spam wirken. Die URL auf die dein Name verlinkt z.B. ist wahrscheinlich Spam, ich lasse das aber mal so stehen.

Du meinst wahrscheinlich die Filter von Akismet. Einmal dort als Spamer gebranntmarkt kommt man nicht mehr so schnell von dem Image weg, das stimmt schon. Auf meiner Seite bekommt jeder Mensch die Möglichkeit noch ein Captcha auszufüllen, falls die Kriterien für das Mensch sein nicht ganz erfüllt wurden … also durchaus fair, nicht?

Kommentare sind geschlossen.