mike's web log

 

Blog Search


(Supports AND)

 

Google Ads

 

Technorati

 

Feed

Subscribe to the RSS feed for this blog.

See this post for info on full versus truncated feeds.

 

Quote

As long as you don't write your own algorithm, secure encryption is easy.

Bruce Schneier



 

Navigation






<September 2010>
SMTWTFS
2930311234
567891011
12131415161718
19202122232425
262728293012
3456789


 

25 Most-Visited Entries

 

Categories

  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
  RSS
 

Blogs I Read

 

Contact

Email me
 

Blog Statistics

Dates
First entry - 6/27/2003
Most recent entry - 8/26/2010

Totals
Posts - 2109
Comments - 2170
Hits - 1,139,802

Averages
Entries/day - 0.80
Comments/entry - 1.03
Hits/day - 434

Update every 30 minutes. Last: 11:18 PM Pacific

 
   |  Control to prevent spam submissions

posted at 08:43 AM | | [3] |

Jeff Atwood has made available a custom ASP.NET server contol (source included) that implements CAPTCHA anti-bot protection to Web pages. A canonical use would be to add the control to your blog comment submission page; users have to type in a sequence of characters generated by the control in order for the post to be submitted. Like this:



(That's an image of the control, not the control itself.)

As he promises in his post, it's easy to use -- add as a custom control to your site/project, add an element to your Web.config, and go. The control does all the work of generating the image and checking it on postback. As with validators, all you have to do is test the control's UserValidated property to determine whether the user got it right.

My only issue with CAPTCHA generally is that the algorithm used to distort the secret text sometimes warps it so much that it can be hard to make out the characters. However, that's an issue with the way the image generation works (and I've seen this in other examples of the same technique), not any criticism of the control itself.


[categories]