Akismet extension for BlogEngine.net 1.2

Writing

I had been long planning on adding an extension to BlogEngine.net for Askimet, but I had been talked out of it by the fact that I wasn't really getting any comment spam. Well recently it appears that Mads Kristensen (the creator of BlogEngine.net) has had a bit of trouble with spam on his blog and so I decided to go ahead and implement it. Since there is a wonderful Akismet API for C# out there already, I just decided to go ahead and use that. It is BSD licensed, so everyone should be happy. Well, it took all of about 10 minutes to implement, since Joel Thoms did all the hard work writing the API. So here it is, just drop the two files into your App_Code/Extensions folder and change the apiKey and blogUrl variables in AkismetExtension.cs to whatever you need them to be. I was going to use the Utils.AbsoluteWebRoot, but I wasn't sure if Akismet used this info to see if you have registered the site with your key. So I figured I would leave it configurable if you want to use the same key for more than one site. Anyways, here is the download:

Download the BlogEngine.net 1.2 Akismet Extension

Download the BlogEngine.net 1.3 Akismet Extension 

Loved the article? Hated it? Didn’t even read it?

We’d love to hear from you.

Reach Out

32 replies on “Akismet extension for BlogEngine.net 1.2”

  1. Well I think I followed the instructions by updating the blog address and api key… but when I try and save a comment it just sits there telling me "Saving the comment….".

    Did I miss something?

  2. Hi dear, i’m feeling stupid… please help me: I inserted files but what’s "apiKey"?
    like in chris application, when I try and save a comment it just sits there telling me "Saving the comment…."…
    thank you
    massimo

  3. In order to use Akismet you have to have an API key from wordpress.com. You don’t actually need to have a wordpress blog, but you have to setup and account with them to get an API key so that you can use their service (They provide the Akismet service).

  4. Yep, I have an updated version all done, but I am waiting on a few fixes that to the Extension manager that I have reported. I’ll post the new extension manager, but you probably won’t be able to get it setup until they fix two issues. If you want you can go to the ticket I posted on the BlogEngine.net issue tracker and make the changes that I have put in that ticket.

  5. Hey, thanks for the extension. Before I go setting things up, one quick question…will I have the ability to manage what Akismet believes to be spam from within WordPress, or within BlogEngine? Or do they just go into a black hole of some kind…

    Thanks!
    AL

  6. @Al Sorry, but they just go into a black hole. I am just using someone else’s api that passes the spam message to Akismet and only receives a boolean response back. Then it accepts or rejects based on that response value.

  7. My blog received ton of comments every day. Temporary solution is turning on comment moderation on my BlogEngine.NET setting. But this solution need manually approve non comment spam. I would like to try akismet but I can’t get free API key. How to get free akismet API key for non wordpress blog?

Comments are closed.

More Insights

View All