PHP Classes
elePHPant
Icontem

AntiBot an alternative to CAPTCHA: Perform CAPTCHA validation asking questions

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-11-18 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 508 All time: 5,360 This week: 703Up
Version License PHP version Categories  
antibot 3.5GNU Lesser Genera...4.3Validation, Security
Description Author  

This class can be used to perform CAPTCHA validation asking questions to the user.

It can generate a question from a list of few possibilities picking random values of colors or numbers.

The correct answer is stored in a session variable for subsequent verification.

Picture of Andre Roc
Name: Andre Roc <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: ???
All time rank: 2980226 in Brazil Brazil
Week rank: 1493 Up110 in Brazil Brazil Up

Details provided by the author  
=======================
	USAGE
=======================

1. Outputting random answers
	<?php new AntiBot(true,true); ?>

2. Outputting only one specific answer type (#3)
	<?php new AntiBot(true,false,3); ?>

3. Do not output information, create object to check responses
	<?php 
		$ab = new AntiBot(false);
		if( $ab->verificaResposta( $_POST['usr-response'] ) ){
			// ok, valid response
		}else{
			// wrong, you are a machine!
		}
	?>

4. Default configuration outputs random answers
	<?php new AntiBot(); ?>

=======================
	FILES
=======================

class.AntiBot.php	(Class on english)
class2.AntiBot.php	(Class on portuguese)
COPYING			(GNU/GPL License)
COPYING.LESSER		(GNU/LGPL License)
index.php		(Exemple)


=======================
	LICENSE
=======================

GNU LESSER GENERAL PUBLIC LICENSE (see COPYING.LESSER file)
Screenshots  
  • ss.png
  Files folder image Files  
File Role Description
Plain text file class.AntiBot.php Class Main class in english
Plain text file classe.AntiBot.php Class Main class in portuguese
Plain text file COPYING Lic. GPL license file
Plain text file COPYING.LESSER Lic. LGPL license file
Plain text file index.php Example Example script
Plain text file README Doc. README file

 Version Control Unique User Downloads Download Rankings  
 0%Total:508All time:5,360
 This week:0This week:703Up
 User Comments (2)