Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Bot Blocker

Security covered Under active development 303 sites

This module helps block unwanted automated traffic by identifying bots based on their user agent strings or by blocking requests from older browser versions. It acts as a last line of defense for websites experiencing excessive bot crawling.

This module will allow site admins to block requests based on:

  • Sub strings that occur in the user agent of the request.
  • Older browser versions.

If you have a site that is being excessively crawled on search pages that include facets, see the Facet Bot Blocker module.

Wondering what versions of browsers to block? There is no "one size fits all" answer to that, and should be decided as a matter of your organization's policy, and what your tolerance for false positives is, Vs. need to avoid increased hosting costs from bot traffic. The maintainer of this module has generated an analysis of historic traffic of browser versions. The general conclusion is more nuanced than you may realize. There are legitimate reasons why a request may have an older user agent (Safari versions pinned to OS, the last supported versions for Windows 7, which may still be in use, despite end of support.

As the disclaimer mentions in the Facet Bot Blocker module, this module should be considered a last line of defense, if no other options are available to you. It is generally better to implement bot mitigation tools in a CDN/WAF layer instead.

2.0.x version

There is now a 2.0.0-alpha1 release, which takes a new "threat detection" approach by looking at more data points to identify bots. Feedback is welcome on this branch, and the plan is to tag a release after the community has had to review it.

Drupal 10–11

Ask your assistant about Bot Blocker

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
3
Tracked since
Jul 2025
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 1
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0-alpha1 Pre-release 10–11 Jun 26, 2026
1.0.1 Stable 10–11 Mar 6, 2026
1.0.0 Stable 10–11 Jul 3, 2025