You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joshua Slive <jo...@slive.ca> on 2002/12/04 02:06:14 UTC

Re: [users@httpd] Access Control

On Wed, 4 Dec 2002, Andrew Kenna wrote:

> Is there any way to have a list of hosts in a file and setup certain web
> sites to deny the hosts specified in a certain file..
>
> Such as
>
> Bad hosts are located in /usr/local/etc/apache/badhosts.txt
>
> Web sites are setup to allow all traffic in except whats listed in
> badhosts.txt

You can either use a quick perl/shell script to translate the badhosts.txt
in a bunch of
Deny from host
lines and Include that in httpd.conf, or you can use mod_rewrite with a
RewriteMap.

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