httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Kenna" <andr...@stamina.com.au>
Subject RE: [users@httpd] Access Control
Date Wed, 04 Dec 2002 01:13:22 GMT
Ok cool, thanks

Andrew


-----Original Message-----
From: Joshua Slive [mailto:joshua@slive.ca] 
Sent: Wednesday, 4 December 2002 12:06 PM
To: users@httpd.apache.org
Subject: 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


---------------------------------------------------------------------
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