Community Documentation

IP address and referrer blocking

Last updated May 17, 2009. Created by LeeHunter on June 4, 2005.
Edited by bekasu, catch, sepeck, bertboerland. Log in to edit this page.

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

----------------

Drupal’s online documentation is © 2000-2012 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.
nobody click here