Unlike Recaptcha the Stalker -- BotDetect CAPTCHA works in China! Licensable source-code; self-hosted -- doesn't stalk -- nor does it slurp your form-data! Think: GDPR & LGPD!
PHP CAPTCHA Generator Highlights:
NATIONAL-SECURITY & PRIVACY FRIENDLY:
Self-hosted PHP Captcha library -- no 3rd-party servers involved
Where having no 3rd-party servers involved also means:
no QUIC server-config/source-address-token & n-RTT session resumption
no TLS v1.3 PSK & n-RTT session resumption
no TLS v1.2 Session Ticket / Session ID session resumption
no cross-domain-shared TLS states
no TLS Channel IDs
no Token Binding
no old-school cookies-based ways of user identification and stalking
From a vendor that is not in the stalking business
nor a part of PRISM or XKeyscore
nor has anything to do with the NSA
Lets you never have 3rd-parties:
identify and stalk users on your site
slurp national-security-sensitive or privacy-sensitive form-data from your site
Plays nicely with Firefox, TOR Browser, and VPN users
NOTHING TO HIDE HERE:
Licensable source-code (PHP/JavaScript) -- to fit neatly in your code audit processes
MULTINATIONALS FRIENDLY:
Works in China
Allows for EU GDPR and Brazilian LGPD compliant sites -- no need to risk those enormous multi-million dollar fines
56 audio localizations (including all 24 official EU languages) let you treat each
local market with that particular local market's familiar combination of script and language
EASY FRONTEND INTEGRATIONS:
Out-of-the-box integrations with various JavaScript frontends:
<?php if(!class_exists('CaptchaConfiguration')) {return; }// BotDetect PHP Captcha configuration optionsreturn[// Captcha configuration for example page'ExampleCaptcha'=> ['UserInputID'=>'CaptchaCode','ImageWidth'=>250,'ImageHeight'=>50,],];
Load the BotDetect CakePHP component:
<?php namespace App\Controller;use App\Controller\AppController;class ExampleController extends AppController
{public functioninitialize(){
parent::initialize();// load the Captcha component and set its parameter$this->loadComponent('CakeCaptcha.Captcha', ['captchaConfig'=>'ExampleCaptcha']);}}
Showing a Captcha challenge in a View:
<!-- include the BotDetect layout stylesheet -->
<?= $this->Html->css(captcha_layout_stylesheet_url(), ['inline' => false]) ?></head>
[...]
<!-- show captcha image -->
<?= captcha_image_html() ?><!-- Captcha code user input textbox -->
<?= $this->Form->input('CaptchaCode', [
'label' => 'Retype the characters from the picture:',
'maxlength' => '10',
'style' => 'width: 270px;',
'id' => 'CaptchaCode'
]) ?>
3. Check User Input During Form Submission
When a form is submitted, Captcha validation result must be checked in a Controller code:
if($this->request->is('post')) {// validate the user-entered Captcha code$isHuman=captcha_validate($this->request->data['CaptchaCode']);// clear previous user input, since each Captcha code can only be validated onceunset($this->request->data['CaptchaCode']);if($isHuman) {// TODO: Captcha validation passed, perform protected action}else{// TODO: Captcha validation failed, show error message}}
In-Depth CakePHP CAPTCHA Instructions and Explanations
<?php if(!class_exists('CaptchaConfiguration')) {return; }// BotDetect PHP Captcha configuration options$config=array(// Captcha configuration for example page'ExampleCaptcha'=>array('UserInputID'=>'CaptchaCode','ImageWidth'=>250,'ImageHeight'=>50,),);
>
Load the BotDetect CakePHP component:
class ExampleController extends AppController {// your controllerpublic$components=array('BotDetect.Captcha'=>array('captchaConfig'=>'ExampleCaptcha'));}
Show a Captcha challenge in a View:
echo$this->Html->css(captcha_layout_stylesheet_url(), array('inline'=> false));// display Captcha markup, wrapped in an extra div for layout purposesecho$this->Html->div('captcha',captcha_image_html(),false);// Captcha code user input textboxecho$this->Form->input('CaptchaCode');
3. Check User Input During Form Submission
When form is submitted, Captcha validation result must be checked in a Controller code:
if($this->request->is('post')) {// validate the user-entered Captcha code$isHuman=captcha_validate($this->request->data['CaptchaCode']);// clear previous user input, since each Captcha code can only be validated onceunset($this->request->data['CaptchaCode']);if($isHuman) {// TODO: Captcha validation passed, perform protected action}else{// TODO: Captcha validation failed, show error message}}
In-Depth CakePHP CAPTCHA Instructions and Explanations
<?php
// BotDetect PHP Captcha configuration options$config=array(// Captcha configuration for example page'ExampleCaptcha'=>array('UserInputID'=>'CaptchaCode','ImageWidth'=>250,'ImageHeight'=>50,),);
Load the BotDetect CodeIgniter library and generate the Captcha markup in your Controller:
public functionindex()// Your controller{// load the BotDetect Captcha library and set its parameter$this->load->library('botdetect/BotDetectCaptcha',array('captchaConfig'=>'ExampleCaptcha'));// make Captcha Html accessible to View code$data['captchaHtml'] =$this->botdetectcaptcha->Html();
When the form is submitted, the Captcha validation result must be checked in Controller code:
if($_POST) {// validate the user-entered Captcha code when the form is submitted$code=$this->input->post('CaptchaCode');$isHuman=$this->botdetectcaptcha->Validate($code);if(!$isHuman) {// TODO: Captcha validation failed, show error message}else{// TODO: Captcha validation passed, perform protected action}
In-Depth CodeIgniter CAPTCHA Instructions and Explanations
<?php
// BotDetect PHP Captcha configuration options$config=array(// Captcha configuration for example page'ExampleCaptcha'=>array('UserInputID'=>'CaptchaCode','ImageWidth'=>250,'ImageHeight'=>50,),);
Load the BotDetect CodeIgniter library and generate the Captcha markup in your Controller:
public functionindex()// Your controller{// load the BotDetect Captcha library and set its parameter$this->load->library('botdetect/BotDetectCaptcha',array('captchaConfig'=>'ExampleCaptcha'));// make Captcha Html accessible to View code$data['captchaHtml'] =$this->botdetectcaptcha->Html();
When the form is submitted, the Captcha validation result must be checked in Controller code:
if($_POST) {// validate the user-entered Captcha code when the form is submitted$code=$this->input->post('CaptchaCode');$isHuman=$this->botdetectcaptcha->Validate($code);if(!$isHuman) {// TODO: Captcha validation failed, show error message}else{// TODO: Captcha validation passed, perform protected action}
In-Depth CodeIgniter CAPTCHA Instructions and Explanations
a) If Laravel is a backend for your js-based frontend, perhaps you should start with a guide that describes integration from js-framework point of view: jQuery, Angular, AngularJS, or React.
b) If you are using Laravel forms, here is how to configure Captcha options, and display Captcha in your Laravel form:
a) If Laravel is a backend for your js-based frontend, perhaps you should start with a guide that describes integration from js-framework point of view: jQuery, Angular, AngularJS, or React.
b) If you are using Laravel forms, here is how to configure Captcha options, and display Captcha in your Laravel form:
a) If Laravel is a backend for your js-based frontend, perhaps you should start with a guide that describes integration from js-framework point of view: jQuery, Angular, AngularJS, or React.
b) If you are using Laravel forms, here is how to configure Captcha options, and display Captcha in your Laravel form:
a) If Laravel is a backend for your js-based frontend, perhaps you should start with a guide that describes integration from js-framework point of view: jQuery, Angular, AngularJS, or React.
b) If you are using Laravel forms, here is how to configure Captcha options, and display Captcha in your Laravel form:
a) If Laravel is a backend for your js-based frontend, perhaps you should start with a guide that describes integration from js-framework point of view: jQuery, Angular, AngularJS, or React.
b) If you are using Laravel forms, here is how to configure Captcha options, and display Captcha in your Laravel form:
You can download BotDetect PHP CAPTCHA Library for free and use it immediately! Your PHP forms can be protected from spam (and bots in general) in minutes.
We offer basic email support for free to all BotDetect users. So if you need any assistance integrating BotDetect or have any questions or feedback, our Support department is at your disposal.
Once the BotDetect Captcha generator library has been integrated into your PHP website and you're satisfied with how it works, it's easy to upgrade your license if you need the extra features offered by commercial BotDetect versions.
PHP installation must include libgd and SQLite3 support.
Officially Supported Browsers*:
Chrome 49+
Edge 20+
Firefox 52+
IE 8+
Opera 36+
Safari (OSX) 5+
Safari (iOS 6+)
Numerous other browsers are not officially supported but the captcha still works.
Read the notes below!
*
'Officially Supported Browsers' are those browsers for which we do the testing in order to ensure that
both the image and audio captcha options are working properly.
Nonetheless, both the image and audio captcha options are working properly in the most of non-archaic
** browsers anyway -- officially-supported, or not -- while the image
captcha option alone works in all of them!
If you find our 'Officially Supported Browsers' policy too-restrictive check Recaptcha the Stalker's
one that says:
We support the two most recent major versions of the following:
We guess that after checking the Recaptcha's policy -- you will consider ours as the accommodative one :).
**
Archaic browsers?
At present, our 'Archaic Browsers' policy works this way:
Those last remaining few real humans still browsing around using the WinXP should update their browsers
to the latest version that still works on the XP.
Or, in the less nice words:
If those last remaining few laggards cannot be bothered to update their browsers --
we cannot be bothered neither -- nor you should be!
Half of the Internet is broken for them since years ago anyway -- and they do not seem to care!