codethinked (kōdthĭngked) adj. To be consumed by or obsessed with code.

Akismet extension for BlogEngine.net 1.2

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 

Comments

trackback

Trackback from DotNetKicks.com

Akismet extension for BlogEngine.net 1.2

DotNetKicks.com

December 13. 2007 17:25

Al Nyveldt

I was just thinking I'd make an extension like this over the weekend. Thanks for beating me to it. Smile

Al Nyveldt

December 17. 2007 17:50

United States
Chris

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?

Chris

December 19. 2007 17:46

United States
Justin Etheredge

Yeah, that was my stupid mistake. I was using the boolean result of CommentCheck backwards. I guess in the tests I ran Akismet was seeing my comments as spam! Just download it again, I have fixed it.

Justin Etheredge

December 19. 2007 18:03

United States
Justin Etheredge

@Al - Sorry about that! It appears that I screwed it up anyways. It should be working now though.

Justin Etheredge

December 19. 2007 18:04

United States
Chris

Sweet, it works!

Thanks for an excellent extension!

Chris

December 19. 2007 18:18

United States
massimo

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

massimo

December 20. 2007 12:23

Italy
Justin Etheredge

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).

Justin Etheredge

December 20. 2007 12:28

United States
Chris

It seems that BlogEngine.Net v1.3 doesn't like the Akismet extension...  Any chance you will be able to release an updated version?

(in case it helps...) Please?

Chris

December 23. 2007 22:12

United States
Justin Etheredge

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.

Justin Etheredge

December 24. 2007 01:31

United States
trackback

Trackback from BlogEngine.NET

Extensions

BlogEngine.NET

December 31. 2007 08:55

warren

Im getting an out of index error when trying to add the api key and the blog url. Any ideas?

warren

January 4. 2008 21:30

United States
warren

Nevermind I got that work now it is hanging much like the guy reports above...

warren

January 4. 2008 21:40

United States
Richard

I am getting the same error index out of range exception.  How was it fixed?

Richard

February 13. 2008 07:31

United Kingdom
Justin Etheredge

Here is the workitem that I opened with the source fix for BlogEngine.net. This issue is fixed now and should be in their latest source drops. This is what the error is most likely.

www.codeplex.com/.../View.aspx?WorkItemId=4910

Justin Etheredge

February 13. 2008 14:05

United States
Klaus @tGraefensteiner

Hi Justin,

I like your Akismet Extension. One nice additional feature would be the logging of rejected "comment-check" requests. Akismet seems to filter out a lot of false positives.

Klaus

Klaus @tGraefensteiner

February 14. 2008 16:05

United States
estudio grabacion

thanks for this theme

estudio grabacion

October 10. 2008 14:55

Argentina
trackback

Trackback from CodeThinked

One Year Blogiversary Is Today!

CodeThinked

October 19. 2008 11:22

Matt

Thanks for an excellent extension!

Matt

November 3. 2008 13:42

Spain
Starting Business Blog

thanks for an nice extension. i love this.

Starting Business Blog

November 11. 2008 06:19

United States
Alojaweb

Great extension, thanks for the note.

Alojaweb

November 11. 2008 19:46

Spain
andy

where to get API Key for this extension.

andy

November 14. 2008 09:50

United States
Jim

Thanks for sharing this extentsion, will it also work with the latest from BlogEngine.net 1.4.5?

Jim

November 20. 2008 11:23

United States
Jim

Well it seems to work, at least I can still accept comments.  I added a post to my blog regarding your extension and detailed directions to installing and configuring it.  Feel free to check it out and let me know if I missed something.

jim.blacksweb.com/post/Block-SPAM-in-comments.aspx

Thanks again for sharing this extension.

Jim

November 21. 2008 08:18

United States
Abdullah

Thank you very much


Good extension

Abdullah

November 28. 2008 12:32

Saudi Arabia
Al Bsharah

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

Al Bsharah

December 27. 2008 14:32

United States
Justin Etheredge

@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.

Justin Etheredge

December 27. 2008 21:47

United States
Kampanye Damai Pemilu Indonesia 2009

Akismet needed for handle spamming...
Thanks bro.

Kampanye Damai Pemilu Indonesia 2009

February 19. 2009 04:59

Indonesia
Ahmad Masykur

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?

Ahmad Masykur

April 7. 2009 03:44

Indonesia
Justin Etheredge

@Ahmad You just need to go sign up for a wordpress account. They are free, you will receive an API key when you do that.

Justin Etheredge

April 7. 2009 09:16

United States
Virtual Estudio

Thanks for the Extension!!!
Great.

Virtual Estudio

May 20. 2009 10:04

Argentina
Sulumits Retsambew

I think this is 'a must' extension for blogengine user. thanks for sharing it..

Sulumits Retsambew

May 31. 2009 13:19

France
Makeup Application

Wow, what a great extension - good job!

Makeup Application

June 1. 2009 00:11

United States
Poppers

I thinks this extension is really work it.

Poppers

June 13. 2009 09:41

United States
trackback

Installing the Akismet Extension for BlogEngine.NET

Installing the Akismet Extension for BlogEngine.NET

justnbusiness

July 15. 2009 13:54

pingback

Pingback from readysteadyroll.wordpress.com

Spam. Porn. Spam and Porn! « Ready Steady Roll

readysteadyroll.wordpress.com

July 19. 2009 10:44

pingback

Pingback from time178.com

Akismet spam killer

time178.com

December 22. 2009 10:11

pingback

Pingback from jim.blacksweb.com

Black's Web | Block SPAM in comments

jim.blacksweb.com

March 29. 2010 20:35

Add Comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading