Skip to content

Overview ​

Captcha adds validation rules and form controls to CakePHP applications. Choose the protection needed by your form:

SetupVisitor interactionState
Captcha.PassiveCaptchaHidden honeypotNo database; no cache or session unless throttling is enabled
Captcha.Captcha with MathEngineMath riddleDatabase token, session, timing checks, verification cache
Captcha.Captcha with NullEngineNo riddleDatabase token, session, timing checks, verification cache

Honeypots and simple math catch basic automated submissions. They do not replace CSRF protection, authentication, or stronger controls needed for high-risk forms.

The beginner guide starts with a honeypot on an existing form. Continue with active captchas for a stored challenge. Both behaviors can be attached to the same table.

These docs describe the current CakePHP 5 branch. Check upgrading for changes that have not yet been released. Older CakePHP versions have a version map.

Released under the MIT License.