News Feed
Jobs Feed
Sections




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

MegaLeecher.net:
Decoding CAPTCHA using PHP | Hypertext Preprocessor
June 07, 2006 @ 06:38:31

Just when you thought you were safe with the little CAPTCHA graphic on your site, something like this comes along - a method for decoding CAPTCHA images using only PHP.

This example shows a simple method of decoding "CAPTCHA" (Completely Automated Public Turing test to tell Computers and Humans Apart) correctly into usable variables for processing. There is no 100% guarantee that it would successfully decode the CAPTCHA (Maybe about 90% or more) but it is a start.

Their example pulls an image with overlapping characters to be parsed by their PHP script (needing the GD2 extension). They start off by taking the image into a graphic editor and breaking up the characters to create a "pixel library" of the letters (A-Z) and numbers (0-9) that service uses. This is then used by the PHP script to locate what letters/numbers might be present in the image.

They include in upload form to allow users to give it a try as well as a sample pixel library for the full series of letters/numbers and their points.

1 comment voice your opinion now!
decoding captcha gd pixel index library upload decoding captcha gd pixel index library upload


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Using the ADOdb library with Oracle and PHP

Blue Parabola Blog: The SPL Deserves Some Reiteration

DevShed: Designing a Captcha System with PHP and MySQL

PHPImpact Blog: Using Annotations in PHP

Elliot Haughin's Blog: Building UTF8 Compatible CodeIgniter Applications


Community Events











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


unittest package application language database framework project hhvm threedevsandamaybe podcast symfony2 component security install facebook hack composer release introduction performance

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