Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Web Bot Auth

No security coverage Under active development

Web Bot Auth lets a Drupal site verify cryptographically signed bots and AI agents on its own server, following the IETF Web Bot Auth protocol built on RFC 9421 HTTP Message Signatures, and tells other modules which requests came from a verified agent. No third-party service is involved.

Status: Stable. 1.0.0 is the first release. Web Bot Auth itself is still an IETF working-group draft, so the module will follow it where it changes.

Why

A User-Agent string can be copied by anyone, and IP lists change under you. With Web Bot Auth an agent signs each request and names, in a Signature-Agent header, the URL where its public keys are published. The site fetches that key directory once, checks the signature, and knows which agent it is talking to.

Features

Verification

  • Strict parsing of Signature-Input, Signature and Signature-Agent, and the Web Bot Auth profile enforced: the web-bot-auth tag, created and expires within a clock skew, coverage of @authority (or @target-uri) and of the agent's own Signature-Agent member, and a JWK thumbprint as keyid.
  • Ed25519, RSASSA-PSS (SHA-512), RSASSA-PKCS1-v1_5 (SHA-256) and ECDSA (P-256 and P-384) signatures. Shared-secret HMAC is refused, as the protocol requires.
  • Optional nonce checks against replay, and components you choose that every signature must cover, such as @method and @path.
  • Verified against the published example directory of the protocol's authors, as well as the RFC 9421 test vectors.

Key directories, fetched defensively

  • https only, public addresses only: each name is resolved once with a deadline, checked, then connected to by address, so DNS rebinding has nothing to rebind. No redirects.
  • Bounded in time, size and key count, rate limited per client and site-wide, cached for their HTTP lifetime within limits, and kept through an agent's outages.
  • A directory's own response signature is checked when it has one, binding well-known keys to their domain.
  • A page to fetch and inspect any directory by URL, and Drush commands for the same.

Policy, known agents and reporting

  • Known agents, each allowed or denied by its key directory identifier, with optional User-Agent strings: a request that borrows one without the agent's signature is tagged or refused as an impostor.
  • Requests are recorded as verified, invalid or unverified, kept distinct as the protocol advises, and tagged or refused by policy.
  • A traffic report per agent and per day, with no IP addresses or User-Agents stored. Requests served from the page cache are counted too.
  • For other code: a service, an event, a cache context, a block visibility condition, a route requirement, and flood-control exemptions for chosen agents.
  • Verification results never reach a shared page cache: pages that vary by agent are not stored.

Requirements

  • Drupal 11.3 or later, or Drupal 12.
  • PHP 8.3 or later with the sodium, openssl, curl and mbstring extensions (all standard).
  • No other modules. Drush 13.7 or later is optional, for the commands.
  • Any database Drupal supports (MySQL or MariaDB, PostgreSQL, SQLite) and any host. Behind a reverse proxy or CDN, Drupal's own reverse proxy settings apply; the README explains them.

Installation

Install with Composer, then enable the module:

composer require drupal/web_bot_auth
drush en web_bot_auth

Verification starts at once with safe defaults: every agent is verified, nothing is refused except agents you deny, and failures are logged once per kind per day.

Configuration and permissions

Settings, known agents and the directory check are at Administration » Configuration » Web services » Web Bot Auth (/admin/config/services/web-bot-auth). The traffic report is at Reports » Web Bot Auth traffic (/admin/reports/web-bot-auth).

  • Administer Web Bot Auth (restricted): configure signature verification, manage known agents and fetch key directories on demand.
  • View the Web Bot Auth traffic report (not restricted): see daily counts of verified, invalid and unverified agent requests.

Using the result safely

A verified signature proves which key directory an agent controls, not that the agent is benign, and anyone can publish a key directory. Grant access or rate-limit exemptions to known agents you have chosen, and require @method and @path wherever verification grants something: the protocol's minimum signature does not cover them, so a captured signature could be replayed to another route. The status report warns when that combination is missing.

Similar projects

Checked on drupal.org in November 2026.

  • Cloudflare's bot management verifies signed agents at its edge. Choose it if your site is behind Cloudflare and the edge alone should decide. This module verifies in Drupal itself, so the result can drive Drupal's access, blocks, caching and rate limits, behind any CDN or none.
  • Rate-limiting and crawler-blocking modules such as Crawler Rate Limit work from User-Agents and request rates. They do not verify who an agent is; this module can tell them.

Support and maintenance

Report bugs and ask for features in the issue queue. Each release has notes describing what changed.

This project is not covered by Drupal's security advisory policy. Until it is, security issues are handled in the public issue queue and fixed in ordinary releases.

A read-only mirror is on GitHub at DanePete/drupal-web-bot-auth; development and issues stay on drupal.org.

Maintainer

Created and maintained by deadnorth (Dead North).

Drupal 11 · not 10 PHP >=8.3

Ask your assistant about Web Bot Auth

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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
1
Tracked since
Nov 2026
Latest release
57 minutes ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core PHP Release date
1.0.0 Stable 11 PHP >=8.3 Nov 27, 2026