Functionality
This module monitors HTTP 404 Not Found errors from requests that reach Drupal and blocks IP addresses that exceed a configured threshold.
This module only blocks the IP addresses of visitors who are not logged in. Logged-in users requests are not evaluated.
About
Anti-Knock automatically blocks continuous requests intent on Directory Busting / Denial Of Service attacks using the functionality of the Drupal Ban module.
Drupal's .htaccess file provides an excellent layer of protection against 404 requests containing malicious patterns, but this does not usually stop more sophisticated probing.
In general, an attacker may probe a site using this method looking for paths that might exist to help them profile an application.
Besides being a nuisance and filling up the logs, getting accurate information about an applications structure can assist attackers in later stage DOS attacks.
Poorly constructed or malicious bots or web spiders can also cause this problem.
Requests to non-existent or expired paths to content can trigger this module to block an IP, so we recommend redirecting such paths appropriately.
Ask your assistant about Anti-Knock
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
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 1.0.0-alpha1 | Pre-release | 10–11 | Nov 2, 2026 |