View Single Post
  #1 (permalink)  
Old 03-07-2006
Vaughn Vaughn is offline
Member
 
Join Date: Aug 2004
Posts: 65
Rep Power: 0
Vaughn is on a distinguished road
Send a message via MSN to Vaughn Send a message via Yahoo to Vaughn
Post

Word Verification: How to have one for your site

Introduction
You must have come across several sites where user authentication is required to differentiate robots from humans. The most popular technique used on the internet these days is the word verification. In this article I’ll demonstrate in ASP how you can have one for your own site.

The basic principle this technique operates upon is very simple, generate a random string (maybe get one from a dictionary), distort it visually and display it in a manner that robots can’t understand. We’re going to do exactly the same except we have one problem; ASP does not have any basic image manipulation capabilities. So how are we going to accomplish this? We’ll have to take help of an imaging component. There are lots of commercial components available on the internet that can do this for us and much more, but we are going to use a free component called ‘DynImage’ written by Chris Ashton (Thanks Chris!). This component also has many features and it will get our job done. You can get more information about this component including its documentation from the below URL:

http://www.oz.net/~cashton/dynimage.html

We already have this component installed on all our windows servers.

This is a bit lengthy tutorial, thus, I have divided it into the below seven sections:

1. Hello World!
2. Drawing the text.
3. Creating the form.
4. Specifying the string.
5. Validating user’s input.
6. Randomizing the string.
7. Obfuscating the string.

So let’s begin!
__________________
Vaughn
Team Leader // Tech. Support
AccuWebHosting.Com
email:support@accuwebhosting.com

Blog: blogsandbloggers.com/Vaughn
http://www.accuwebhosting.biz/Vaughn...aughn_Sign.jpg
Reply With Quote