News Feed
Sections




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

Dublish.com:
Captcha - Spam preventing images
May 31, 2006 @ 14:24:30

When it comes to limiting the spam that comes through on your site (usually on the open comments), a CAPTCHA can do some of the best work. It provides a good alternative to convoluted techniques for restricting the commenting system of your site, and does it in a simple, easy for a human to use, kind of system. Implementing them, however, can be a bit tricky, so this new article on Dublish.com is here to help.

Captcha is the name for the images with random letters and some distortion that appears on each and every forum these days and even here on dublish. The purpose is to prevent the sites from spam.

Now I'm going to show you how to do this random picture generator in PHP. I assume that you have some basic PHP skillz before doing this. Before you start you need the GD library that allows you to create graphics in php.

The article steps you through the creation of the single-script functionality to generate the image. It's an image with a series of random characters on a gradient background created with the GD libraries. The code used in the CAPTCHA is stored in a session variable for validation later. He adds a few graphical touches to make it look a bit nicer, and finishes off with an example of its use.

1 comment voice your opinion now!
captcha tutorial spam prevention gd graphics captcha tutorial spam prevention gd graphics


blog comments powered by Disqus

Similar Posts

Joshua Eichorn's Blog: Adding AJAX to a Website step by step, Part II

Jani Hartikainen's Blog: Zend_Acl part 2: different roles and resources, more on access

Brian Swan's Blog: Using SQL Azure Federations via PHP

The Shadow Fox Network: Create Dynamic URLs With Mod_Rewrite and PHP Functions

Zend Developer Zone: AJAX Chat Tutorial Part 7 : Usability Improvements


Community Events





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


api laravel introduction developer voicesoftheelephpant release symfony podcast community list interview deployment language library framework tips conference zendserver bugfix series

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