Login   Register  
PHP Classes
elePHPant
Icontem

ASCII CAPTCHA: CAPTCHA validation using ASCII art text

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-07-01 (6 years ago) RSS 2.0 feedStarStarStar 56%Total: 4,065 This week: 1All time: 695 This week: 1,134Down
Version License PHP version Categories  
ascii_captcha 1.0.0The PHP License3.0Text processing, Validation, Security
Description Author  

This class can be used to perform CAPTCHA validation, display text letters using ASCII art fonts.

It generates a CAPTCHA validation text string with random letters and then renders that text as an ASCII art string with multiple lines that represent the validation text with some distortion and noise characters.

The random validation text and the rendered text are returned as strings.

Innovation Award  
PHP Programming Innovation award nominee
May 2008
Number 2
CAPTCHA validation is a way to make it more difficult the use of robot scripts to impersonate real users accessing sites.

Many techniques have been developed to implement different variants of CAPTCHA validation, but some can easily be defeated with more sophisticated robots.

This class provides different approach by using text rendered as ASCII art instead of using the usual obfuscated images. This way, existing CAPTCHA breaking robots would need to be adapted to bypass this solution.

Manuel Lemos
Picture of Debug
Name: Debug <contact>
Classes: 4 packages by
Country: United States United States
Age: 25
All time rank: 37743 in United States United States
Week rank: 181 Up21 in United States United States Up
Innovation award
Innovation award
Nominee: 4x

  Files folder image Files  
File Role Description
Accessible without login Plain text file documentation.html Doc. Documentation
Plain text file ascii_captcha.class.php Class The main ASCII CAPTCHA class
Accessible without login HTML file example.html Output Example code and output

 Version Control Unique User Downloads Download Rankings  
 0%Total:4,065All time:695
 This week:1This week:1,134Down
User Ratings User Comments (3)  
 All time
Utility:80%StarStarStarStarStar
Consistency:80%StarStarStarStarStar
Documentation:77%StarStarStarStar
Examples:-
Tests:-
Videos:-
Overall:56%StarStarStar
Rank:1171
 
It's a simple class and it works.
2 years ago (michael)
70%StarStarStarStar
Great :)
6 years ago (T. Schrammer)
60%StarStarStarStar
There is a bug with counting the required number of backgroun...
6 years ago (Nikodem O.)
67%StarStarStarStar