Main Content

Check your user is human. Have him retype a word in a graphic

Archive - Originally posted on "The Horse's Mouth" - 2006-07-17 09:28:12 - Graham Ellis

Do you have trouble with automated programs completing forms on your websites and making cart loads of submissions? Or even just a few spammers submitting their betting ads, performance enhancing pill sites, and share purchase suggestions? And yet you don't want to have to have anyone who wants to use your site register.

Using what has become known as captcha technology, you can display a graphic with some text on what's basically a login page, then have your human user type that text back in. It's very difficult indeed for automata to recognise the text, and can be doubly so if you vary the background, change fonts between characters and change text colour, scale, rotation. Mind you, you can make it pretty tough for the human too.

You'll find captcha in use already on many big sites, and there are other sites that will host the service for you. Actually, if you've got PHP available and the GD module it's very easy to code it up from first principles and that gives you the ultimate of flexibility.

* Try my demo here
* Show source code of main demo
* Show source code of graphic generator