Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 16035 invoked by uid 500); 4 Dec 2002 01:06:10 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 16024 invoked from network); 4 Dec 2002 01:06:10 -0000 Received: from venus.commerce.ubc.ca (137.82.154.16) by daedalus.apache.org with SMTP; 4 Dec 2002 01:06:10 -0000 Received: from exchange.commerce.ubc.ca (exchange.commerce.ubc.ca [137.82.66.44]) by venus.commerce.ubc.ca (8.9.3/8.9.3) with ESMTP id RAA29660 for ; Tue, 3 Dec 2002 17:06:17 -0800 Received: from usager73-134.hec.ca ([132.211.73.134]) by exchange.commerce.ubc.ca with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2656.59) id YANG3WLN; Tue, 3 Dec 2002 17:06:58 -0800 Date: Tue, 3 Dec 2002 20:06:14 -0500 (Est) From: Joshua Slive To: users@httpd.apache.org In-Reply-To: <5FCE856B804270449E97E3C7744D5D2D0854B5@exchangeserver.internal.stamina.com.au> Message-ID: References: <5FCE856B804270449E97E3C7744D5D2D0854B5@exchangeserver.internal.stamina.com.au> X-X-Sender: slive@exchange.commerce.ubc.ca MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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 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