BlogEngine.NET, SimpleCaptcha, and Spam

I use BlogEngine.NET for this blog. I've loved it so far. It suits me perfectly because I also love .NET and C#.

BlogEngine.NET comes with a few "extensions" out of the box, and one of those extensions is called SimpleCaptcha. You simply configure it with a question and an answer. Visitors who supply the correct answer get to post comments. This wards off most of the spammers. But from what I'm seeing, is that whatever spammers use to automatically crawl the web, leaving little spam-filled coprolites in their wake, seems to be able to solve simple mathematical equations like 5+5, 3+7, and even (5+2)-1. I changed my captcha challenge to that latter equation and received a spam comment not five seconds later.

Maybe this will stop them...

So I figured the next best thing to do, without annoying and frustrating my visitors too much with those really bizarre graphical captchas that you can't even read half the time, was to change my SimpleCaptcha to something that was still simple, but required slightly more human-like thinking than what I suspect most spambots are capable of. Questions such as "what is the opposite of cold" or "a shape with four equal sides." These sorts of questions have brought my comment spam to a screeching halt. But there's one last problem: SimpleCaptcha is case sensitive and there's no immediately apparent way to turn it off. I don't want a visitor to type "Square" and not get their comment posted because they needed to have typed "square" instead.

So, to remedy this problem, simply access your web server and browse to wherever you have IIS/BlogEngine.NET installed. Then drill down to where SimpleCaptcha is. For me, it's C:\inetpub\wwwroot\App_Code\Extensions\SimpleCaptcha\. Open up the file SimpleCaptchaControl.cs in a text editor (or Visual Studio if you'd rather,) and find this method:

public void Validate(string simpleCaptchaChallenge)
   this.valid = this.skipSimpleCaptcha || this.simpleCaptchaAnswer.Equals(simpleCaptchaChallenge);

Simply change that one line to this:

public void Validate(string simpleCaptchaChallenge)
   this.valid = this.skipSimpleCaptcha || this.simpleCaptchaAnswer.Equals(simpleCaptchaChallenge,StringComparison.OrdinalIgnoreCase);

And you've just made your SimpleCaptcha not case-sensitive. The change takes effect as soon as you save the file; no restarts of anything are required.

Comments (33) -

BlogEngine is doing really good and I think it is growing day by day, got ability to beat WP and Blogger as well.

Well I think the appeal of Blogger is that it's free and requires basically zero effort to set up.  The downside being there is no configurability or customizability or extensibility. Being able to "pick from our 5 different themes" is not exactly a good way to make your blog stand out.

Now Wordpress on the other hand I think is going to be king for a while yet, for a few reasons. 1) Huge community that are constantly feeding it new and original themes and plugins, 2) It runs on Linux/Apache, which is unfortunately still by far the more popular web server.

However I am not missing anything with BlogEngine. I can dig around in the code every bit as much as I could with WP. It''s every bit as capable. The only thing BlogEngine needs to really get itself on the map is a large community of theme-makers and plugin-makers and modders.

I'm alredy updated my theme (Cogitation) for BlogEngine 1.4.x and create new widget (Image List) for displays image in the side bar.

Love the flow in your post, simple and clear. Interested in guest posting at my blog?

My blog /

allows you to post again, but it also opens the floodgates for SPAM.

Haha we should devloped some AI robot that can identify spam

Disobedient to what is typically content a figure of your results get out of the gym, videlicet in bed and in the kitchen.Rest here applies both to abstraction between workouts, varied anywhere from 48-72 hours when again touching the aforesaid muscles.There are a numerate of right ways to handle your workout schedule, whether it be an bunk body/lower body increase where you would do speed body Monday, devalue body Tuesday, position on Wednesday, then indorse to bunk body Thursday, and so on. Or you can hold it more and do all bunk body propulsion exercises assembly push, dips, and edge presses on day 1, upper body propulsion exercises pullups, chinups, and rows on day 2, inferior body exercises squats, lunges, and deadlifts day 3 and so on.

BlogEngine is doing really good and I think it is growing day by day

juanity core 5/14/2015 1:02:56 AM

Telovite is a rich source of vitamin that revitalizes your body, letting you perform everyday tasks at all ease. Telovite is comprised of 14 essential elements that inspires the desired strength in your body and gets you riddance from joint pains and other aging issues.

alisha amber 6/13/2015 5:33:49 AM

I frequently read your blog admin try to find it very interesting. Thought it was about time i show you , Sustain the truly great workHey, your blog is very interesting.. Plus it was something I can definitely relate to   Ill constantly visit to your blog therefore i hope you continue making fun and interesting posts exactly like it

Thanks for writing this, it was very handy and helped me quite a bit This is a good subject to talk about. Usually when I find stuff like this I stumble it. I dont think this would be the best to submit though. Ill take a look around your site though and submit something else.Im getting all dressed up this morning.

Pure Testo Xplode 7/11/2015 2:03:28 AM

Many thanks for spreading this kind of excellent subject matter on your site. I discovered it on the search engines. I am going to check to come back once you publish much more aricles. Contrary to many views, better researched articles still fetch in reviewers like me. You demonstrated clear understanding of the subject matter and my sentiments are now complete after reading your post. Please hold up the solid work and i will subscribe to your rss feed to be advised of any future postings.

King Size Male 7/13/2015 2:02:41 AM

i - in actuality great site you have created. I enjoyed reading this posting. I did want to publish a remark to tell you that the design of this content is very aesthetically delightful. I used to be a graphic designer, now I am a copy editor. I have always enjoyed functioning with information processing systems and am trying to learn code in my free time.

thanks for your post

That is kind of uncommon, but pay attention to that. Liking your site over here, its well made lol.A semen volume analysis examines some characteristics of a males semen fluid volume and the amount of sperm found in the semen fluid. It may be done while investigating a couples infertility or after a vasectomy to make sure that the procedure was successful

Brain Peak 8/8/2015 1:52:07 AM

I have been finding many different opinions on this and find this post to be one of the more enlightening on the subject.  Hope we can increase the quality of responses than what I have seen as many do not seem to be very relevant. Thank you for this blog post, it was an interesting read. You have made various nice points in the post

I found your site from altavista and it is eye-popping. Thank you for sharing such an incredible articleI was wondering if you ever considered changing the layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images.

Testo Xplode 8/12/2015 1:42:18 AM

Im impressed, I must say. Very rarely do I come across a blog that is both educative and entertaining, and let me tell you, you have hit the nail on the head. Your idea is important; the issue is something that not enough people are talking intelligently about. Im really happy that I stumbled across this in my search for something relating to this.
Id like  to see  all these  sick comment  makers  do a better   task  than you.  Hold it up ;).

Neuroplex Pro 8/18/2015 1:43:06 AM

great info. thanks for sharing. Destin Condo Great article. This was informative. Enjoyable to read. Im looking forward to an office 2010 key or office 2010 software . office key

Hey, I had been in search of Day 8 | after i found your site. Thanks for sharing this excellent data. Thank you!

Just to let you know, this content seems a little bit strange from my android phone. Who knows perhaps it really is just my mobile phone. Great post by the way.
We have been visiting variousblogs for my dissertation study. Ive discovered your blog being quite beneficial.

Neuro Elite 8/21/2015 4:20:10 AM

meaning to read this and just never got a chance.  Its an issue that Im very interested in, I just started reading and Im glad I did.  Youre a fantastic blogger, 1 of the finest that Ive seen.  This weblog certainly has some details on topic that I just wasnt aware of.  Thanks for bringing this stuff to light. Howdy, i read your blog often and i own an analogous one and i used to be simply wondering if you get a lot of spam comments? If thus how do you stop it, any plugin or anything youll be able to advise? I get thus much lately its driving me mad so any help is very abundant appreciated. It costs about $10 more on a comparable HP printer, and $75 on a Canon. I like the theme you are using on your blog

Thanks for posting this piece of writing. I'm without doubt frustrated with struggling to search out relevant and brilliant commentary on this subject. Everybody now goes to the very far extremes to either drive home their viewpoint that either: everyone else in the planet is wrong, or two that everyone but them does not in actuality understand the situation.

PaceBa joy1 8/31/2015 4:51:21 AM

When I start your Rss feed it seems to be a lot of junk, is the problem on my part?I was really pleased  Alpha XTRM to find out your web site, it features specifically the information I was seeking to locate. I adore this web page but I cannot actually.

Robert joy1 9/1/2015 2:20:30 AM

best content yet!Sick! Just obtained a brand-new Pearl and I can now read your weblog on my phone's Super CBD browser, it didn't perform on my old one.I thought it was going to become some boring old publish, however it seriously compensated for my time. Ill post a link to this web page on my blog. Im certain my website visitors will locate that extremely useful.This is a very carefully managed blog.

Coupondunia 9/5/2015 9:30:27 AM

I was able to find good advice from your content.

It works well, but isnt as fast as Safari, and has a clunkier interface. If you occasionally plan on using the web browser thats not an issue, but if youre planning to browse the web alot from your PMP then the iPods larger screen and better browser may be important.<a href="";>Intellux</a>
Thanks for spreading this specific good content on your web-site. I came across it on the search engines. I will check back again when you post more aricles.I  appreciate your work , thanks  for all the  interesting  posts .Spletno oglaševanje, so v veliki meri pozitivno, še posebej po tako težko leto, v letu 2009. Eden od ključnih uresničevanje te obetavne prihodnosti je zagotoviti, da celotno tržniki skupaj (i., akcija), dodaja, do več kot vsota njegovih delov. ,
Many thanks for posting this, It?s just what I was researching for on bing.
<a href="";></a>

pain desiri 9/22/2015 9:13:13 AM

Direction of usage

Simple directions are here by following these you can get sexual life at potential and unleashed so keep in your mind some tips

Consume it capsules daily with your food or major meal...

Thanks for post this helpful post - Please visit for More information about -
Best Packers and Movers Chennai @
Best Packers and Movers Mumbai @
Best Packers and Movers Bangalore @
Best Packers and Movers Delhi @

This article is really fantastic and thanks for sharing the valuable post.
Best Packers and Movers Gurgaon @
Best Packers and Movers Pune @
Best Packers and Movers Noida @
Best Packers and Movers Hyderabad @

Alex - 2/5/2016 3:28:58 AM

Hi Ryan,

Thanks for the useful info. I run BlogEngine as well to blog about tech and I just got this problem with spam comments after I posted some of my blog articles on twitter.


Constructing your commercial enterprise takes time, dedication, staying power and perseverance and you need to work the commercial enterprise each day. you want in an effort to take the up and downs and feature the tenacity to grasp on whilst the going receives hard and work via issues to achieve success.

Let's accept it, all of us need to have that photograph ideal hair that the celebrities have however for the most part that seems not possible until you simply walked right out of the salon. so how do you get salon fashion hair from domestic.

Pingbacks and trackbacks (1)+

Comments are closed