httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
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, * from accessing the server at all using a simple directive?

At the end of httpd.conf put

<Location />
Ordery deny,allow
Deny from

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.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message