CAPTCHA SPAM

Jan 1, 2010 at 12:09 PM

I'm getting spam daily from the site and it is continuing to grow...I understtof that Blogengine implements an invisible captcah which sems not working.

I tried to visit http://blog.madskristensen.dk/post/Simple-method-to-avoid-comment-spam.aspx but url is not avaiolable any more.

Please help

Coordinator
Jan 1, 2010 at 7:17 PM

The correct URL is now:

http://madskristensen.net/post/Simple-method-to-avoid-comment-spam.aspx

If you're using BE 1.5.0.7, in response to this automated tool that leaves comment spam, you might want to make a simple modification to your CommentView.ascx.cs file in the User Controls folder.  In the Page_Load section in that file, you can try adding these 4 lines of code:

string generatedFieldName = "txtName" + DateTime.Now.Ticks.ToString();
txtName.ID = generatedFieldName;
CustomValidator1.ControlToValidate = generatedFieldName;
RequiredFieldValidator1.ControlToValidate = generatedFieldName;

This code would be placed in the very beginning of the Page_Load section.  You can see this code in context in the CommentView.ascx.cs file we checked in here.

Another helpful solution to control spam is Commentor.

Jan 8, 2010 at 8:17 AM

hello, and what can someone do when he has BlogEngine.NET 1.4.5 installed?

 

i've tried your code, but i keep getting errors...

 

thank you

Jan 19, 2010 at 6:03 PM
Edited Jan 19, 2010 at 6:04 PM

I implemented a Captcha solution in 1.5.0.7. Directions can be found here: http://www.codecapers.com/post/How-to-Block-Spam-Comments-in-BlogEngineNET.aspx