bakeoff/checkpoint

There is no license information available for the latest version (dev-master) of this package.

Simple CakePHP anti-bot challenge

Maintainers

Package info

github.com/cakephp-bakeoff/checkpoint

Type:cakephp-plugin

pkg:composer/bakeoff/checkpoint

Transparency log

Statistics

Installs: 2

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-master 2026-07-02 23:09 UTC

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 enable to true.
  • Set routes to array containing routes you need. Each route here contains the usual CakePHP route elements. Default to no routes (effectively plugin is disabled).
  • Set adapter to use a custom adapter. Default to Honeypot in config/bootstrap.php
  • Set statusCode if you want to serve checkpoint with a specific HTTP status code. Default 200. 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
         */
    ],
];