PHP Classes

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    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 568 All time: 5,379 This week: 257Up
Version License PHP version Categories
antibot 3.5GNU Lesser Genera...4.3Validation, Security


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: 3119229 in Brazil Brazil
Week rank: 587 Up34 in Brazil Brazil Up

======================= 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)

  • 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  
This week:0
All time:5,379
This week:257Up
User Comments (2)