httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
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


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