Description
This sample project shows how to use the new CAPTCHA code filtering functionality added in BotDetect 3.0.
You can define rules about character sequences you want to avoid using in randomly generated CAPTCHA codes and simply pass them to the Captcha library.
The CaptchaConfig.php
file defines a simplified custom character set (using only 'A'
, 'B'
, 'C'
and 'D'
), which helps make the code filtering easier to track in action.
The $LBD_CaptchaConfig->BannedSequences
setting in the same file shows how to create your own banned sequence definitions to suit your application needs. The following sequences will never appear in Captcha codes generated in the sample: D
, AA
, BB
, CC
, ABC
, BCA
, CAB
.
Beta Release Warning
BotDetect PHP Captcha Library Beta is a work in progress, and we need you to guide our efforts towards a polished product. Please let us know if you encounter any bugs, implementation issues, or a usage scenario you would like to discuss.