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

Dublish.com: Captcha - Spam preventing images

Stefan Mischook's Blog: PHP Classes and Objects video tutorial

NETTUTS.com: CodeIgniter from Scratch: Shopping Cart

Cal Evan's Blog: Three Lists I Never Want to See Again

Stubbles Blog: Lazy loading of classes stored in a session without __autoload()


Community Events

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


release introduction podcast video community development psr7 interview framework laravel5 laravel series library conference api extension language unittest voicesoftheelephpant opinion

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