Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Cookie Bot Protection

36 sites Security covered Drupal 9–11
View on drupal.org

This module protects your site from simple crawlers like AI scrapers by testing their ability to handle redirects and cookies. It quickly responds to problematic bots with an error before the full page is computed, reducing performance impact. You can define which URLs are protected and exclude specific IPs or user agents.

This module is designed to provide protection from simple crawlers such as AI scrapers or crawling scripts, by testing their ability to follow redirects and handle cookies.

Many AI bots and non-conventional crawlers do not respect robots.txt and can cause significant performance issues on pages with heavy computation, such as search pages.

The module will not fully block bot traffic or force timeouts, but it will significantly reduce their impact by quickly returning a 302 or 401 response without computing the page, which is not served from Page Cache.

You can define URL patterns subject to the protection using PCRE regex patterns. Use non-capturing groups in your patterns, as they are tested with preg_match(). Poorly written regex rules can accidentally protect the entire site and affect SEO
crawlers.

We recommend applying the same patterns as your robots.txt.

By default, a retry attempt is provided via a Refresh header to allow legitimate users to recover from an accidental challenge failure. This behavior can be disabled by setting the redirect error delay to zero.

A challenge cookie named SESScookiebotprotection is created to validate the challenge. This name is chosen to bypass generic Varnish/Fastly configurations for Drupal.

Specific IP addresses and User-Agent strings can be excluded from the challenge.

This module is intended as a lightweight tool for sites that cannot install a challenge-based WAF such as Anubis or go-away as a reverse proxy.

Because the cookie name is central to the project's identity, this module will not evolve to provide other protection mechanisms such as JavaScript Proof of Work or CAPTCHA challenges.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
14
Tracked since
May 2025
Latest release
2 months ago
Releases (12 mo)
2 ▼ from 12
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.0.x-dev Dev 11 Jun 13, 2026
1.0.11 Stable 9–11 Jun 13, 2026
1.0.10 Stable 9–11 Jul 18, 2025
1.0.9 Stable 9–11 Jul 18, 2025
1.0.8 Stable 9–11 Jun 23, 2025
1.0.7 Stable 9–11 Jun 4, 2025
1.0.6 Stable 9–11 May 26, 2025
1.0.5 Stable 9–11 May 22, 2025
1.0.4 Stable 9–11 May 18, 2025
1.0.3 Stable 9–11 May 16, 2025
1.0.2 Stable 9–11 May 16, 2025
1.0.1 Stable 10–11 May 15, 2025
1.0.0 Stable 10–11 May 15, 2025
1.0.x-dev Dev 9–11 May 14, 2025