Skip to content

Latest commit

 

History

History
29 lines (29 loc) · 840 Bytes

README.md

File metadata and controls

29 lines (29 loc) · 840 Bytes

vChallenge - PHP Bot Challenge

@ vChallenge 2.0 - Open source, PHP Bot Checker.

Requirements

PHP version 5.x (+) is required for running this.

Call vChallenge PHP Class

require_once(__DIR__ . '/vchallenge.php');

Google ReCAPTCHA Challenge

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');

5 Seconds Challenge

To check a client for 5 seconds, just do this:

$vCHALL = new vChallenge('5s');

IP Whitelist

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.