News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Nick Silvestro's Blog:
Verification is a Wonderful Thing
June 23, 2006 @ 06:39:48

In the neverending battle against spam comment posts on websites (or just bots in general), CAPTCHA has become one of the favored tools to make things "humans only". There are libraries out there that can help you drop it right into your page, but if you want to really know how it all works, you might check out this new tutorial from Nick Silvestro's blog.

So, as said, I've needed to whip together a user registration system, where the user can simply and easily hop onto a page, fill in a couple of text fields, hit submit and they've got an account, all setup and ready to go. Alot of this was simplified by the database design of the system, but I guess I can cover that in another article.

One of the problems with creating a non-administrated user registration system is verification. I really really don't want bots or anything other than a person that actually wants it registering accounts. It creates unwanted nuisances and erroneous data that I could really live without.

He touches on two methods for preventing these nuisances - varification emails and CAPTCHAs. Obviosuly, he opts to go with the latter, and, before even starting, outlines his requirements. He leads you along, step by step, through code and explainations to help create a small CAPTCHA image with the help of the GD library. In the end, you'll have an image with plently of background noise to fool bots, but clear enough for a human to read. The full code for the script is posted at the end.

1 comment voice your opinion now!
verification captcha gd library class validation verification captcha gd library class validation


blog comments powered by Disqus

Similar Posts

DevShed: Drawing Functions and the GD Library in PHP

Michael Kimsal's Blog: PHP4 -> PHP5 XML Wrapper

Richard Davey\'s Blog: POP before SMTP Authentication for PHPMailer

Matthew Weier O'Phinney's Blog: Zend Framework 1.6.0 Preview, or, PHP 4 is Dead

The Bakery: Soft Delete, Authentication and Validation


Community Events





Don't see your event here?
Let us know!


framework package application composer release version language interview series introduction library laravel symfony podcast community install voicesoftheelephpant update security opinion

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework