httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: [users@httpd] banning hosts
Date Sat, 07 Feb 2004 17:28:24 GMT

On Sat, 7 Feb 2004, Simon Bell wrote:

> Hi
>
> I know I can ban hosts on a per directory basis, but is it possible to ban
> say, *.god.com from accessing the server at all using a simple directive?

At the end of httpd.conf put

<Location />
Ordery deny,allow
Deny from god.com
</Location>

But note that this will cause a DNS lookup on every request, which may
slow your server.  You are better off using an IP range.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message