bakeoff / checkpoint
There is no license information available for the latest version (dev-master) of this package.
Simple CakePHP anti-bot challenge
Package info
github.com/cakephp-bakeoff/checkpoint
Type:cakephp-plugin
pkg:composer/bakeoff/checkpoint
dev-master
2026-07-02 23:09 UTC
Requires
- cakephp/cakephp: >=4.0
This package is auto-updated.
Last update: 2026-07-03 10:40:19 UTC
README
Add config/Bakeoff/Checkpoint.php to your main application.
- Set
enabletotrue. - Set
routesto array containing routes you need. Each route here contains the usual CakePHP route elements. Default to no routes (effectively plugin is disabled). - Set
adapterto use a custom adapter. Default to Honeypot in config/bootstrap.php - Set
statusCodeif you want to serve checkpoint with a specific HTTP status code. Default200. When monitoring access logs, can be useful to tell which requests had been stopped and which were later allowed.
Example:
<?php
return [
'Bakeoff/Checkpoint' => [ // Must match the name of this plugin
'enable' => true,
// Matching on all routes
'routes' => true,
// Matching on specific routes
'routes' => [
// Enable for specific plugin
['plugin' => 'MyPlugin'],
// Enable for specific route params
['prefix' => 'foo', 'controller' => 'bar', 'action' => 'qux'],
// Enable for specific route by name
['_name' => 'MyPlugin:Articles:View'],
],
// Leave empty to use default adapter
'adapter' => null,
// Use specific class as adapter
'adapter' => '\My\Namespace\Controller\CustomAdapterController',
// Serve checkpoint with a specific HTTP status code
'statusCode' => 202,
/*
* 202 Accepted. The request subject to processing, and
* depending on the results it may be disallowed.
* developers.google.com/crawling/docs/troubleshooting/http-status-codes#2xx-success
*/
],
];