Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
You may find your site being crawled by bad bots, or otherwise find a need to block IP addresses, host names and referrers. This section outlines some common methods to achieve this.
Much of the information presented here is not specific to Drupal, however it provides a quick reference from which you can do more in-depth research if necessary.
IIS
For those of you using IIS, I have written a guide on how to block referrer spam using ISAPI Rewrite here;
Blocking referrer spam on IIS with ISAPI Rewrite
----------------