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] Access Control
Date Wed, 04 Dec 2002 01:06:14 GMT

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


Mime
View raw message