PHP Classes
elePHPant
Icontem

AntiBot an alternative to CAPTCHA: Perform CAPTCHA validation asking questions

Recommend this page to a friend!
  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 (5 years ago) RSS 2.0 feedNot enough user ratingsTotal: 528 This week: 1All time: 5,379 This week: 1,047Up
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

Details
=======================
	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:528
This week:1
All time:5,379
This week:1,047Up
User Comments (2)