@ vChallenge 2.0 - Open source, PHP Bot Checker.
PHP version 5.x (+) is required for running this.
require_once(__DIR__ . '/vchallenge.php');
To use the reCAPTCHA mode, you must generate a public key and a private key.
https://www.google.com/recaptcha/
Define the class like this:
$vCHALL = new vChallenge('reCAPTCHA', 'YOUR_KEY', 'YOUR_PRIVATE_KEY');
To check a client for 5 seconds, just do this:
$vCHALL = new vChallenge('5s');
To allow specific IP addresses, add in array() line 122. Like this:
$IPs = array(
'127.0.0.1',
'1.1.1.1'
);
Added IP addresses will not be checked. All requests will be approved.