Simple bot protection via XamlWebControls

by Daniel 18. June 2008 09:32

Protecting web sites from spam and email harvesting bots is a daily issue when developing web sites for the internet. One easy way to do this is to place the text you want to protect into an image as images can easily be read by humans and are hard to understand by a computer program. There are hundreds of ways to do this. I'd like to show you a simple and flexible way you could go by using XamlWebControls.

Protecting forms via a simple image (also known as CAPTCHA) is quite easy by using the XamlImage control that generates an image with some dynamic text. Below is a simple example that obfuscates the text via rotation, blur, color gradient and some background characters.

 

You can download the C# source code that demonstrates simple form and email bot protection via XamlWebControls here.

Tags:

Add comment




  Country flag

biuquote
  • Comment
  • Preview
Loading




Please type "31" into the text field:

Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About the author

Daniel
MCSD, MCTS
Microsoft Certified Trainer
CTO, Albamond GmbH
E-mail me Send mail