You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Simon Bell <ao...@dsl.pipex.com> on 2004/02/07 18:09:53 UTC
[users@httpd] banning hosts
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?
Simon
Re: [users@httpd] banning hosts
Posted by Joshua Slive <jo...@slive.ca>.
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