Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 52121 invoked from network); 13 Jan 2005 11:13:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Jan 2005 11:13:31 -0000 Received: (qmail 67574 invoked by uid 500); 13 Jan 2005 11:13:19 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 67557 invoked by uid 500); 13 Jan 2005 11:13:19 -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 67544 invoked by uid 99); 13 Jan 2005 11:13:18 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from mra03.ex.eclipse.net.uk (HELO mra03.ex.eclipse.net.uk) (212.104.129.88) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 13 Jan 2005 03:13:17 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by mra03.ex.eclipse.net.uk (Postfix) with ESMTP id ABEC12E2BC1 for ; Thu, 13 Jan 2005 11:13:13 +0000 (GMT) Received: from mra03.ex.eclipse.net.uk ([127.0.0.1]) by localhost (mra03.ex.eclipse.net.uk [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01966-01-72 for ; Thu, 13 Jan 2005 11:13:13 +0000 (GMT) Received: from mwf_03sx140.cybertrex.co.uk (212-104-155-248.access.eclipse.net.uk [212.104.155.248]) by mra03.ex.eclipse.net.uk (Postfix) with ESMTP id CB11B2E2C06 for ; Thu, 13 Jan 2005 11:13:12 +0000 (GMT) Received: from 10.22.18.105 (localhost [127.0.0.1]) by mwf_03sx140.cybertrex.co.uk (Postfix) with SMTP id 44F0B2B25B for ; Thu, 13 Jan 2005 11:13:13 +0000 (GMT) Message-ID: <63d79fce453764e320ed9f812bc51454@cybertrex.co.uk> Date: Thu, 13 Jan 2005 11:13:13 +0000 From: "JM Fraser" To: Reply-To: In-Reply-To: <1105614331.19282.70.camel@HAL-9006.gusanos-castillo> References: <1105539693.7571.27.camel@HAL-9006.gusanos-castillo> <61c393069008e7289103c17ffd523002@cybertrex.co.uk> <008801c4f8e3$4a4902e0$b754fd04@RUFF01> <17727b765cedaa0e397dbcd6c2e20dfe@cybertrex.co.uk> <1105614331.19282.70.camel@HAL-9006.gusanos-castillo> X-Mailer: Hastymail 1.2 x-priority: 3 MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: by Eclipse VIRUSshield at eclipse.net.uk X-Virus-Checked: Checked Subject: Re: [users@httpd] How to create a "hosts deny" list for Apache X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Eric, could I have a .htaccess file with: Order deny,allow Allow From All Deny From /tmp/hosts_deny For example. This way all hosts listed in this "hosts_deny" file will be denied access but everyone else will get thru? Will I have to setup a specific directive around this? On 11:05:31 January 13, 2005 Grand Apeiron wrote: > On Thu, 2005-01-13 at 10:38 +0000, JM Fraser wrote: > > Eric, do you have an example script that I could modify, or a site > > where I could get info? I don't want to end up terminating all > > httpd requests in error! > > You only need a script if you want to modify the access list in an > automatic way. > The basic thing to deny/allow access to your site is the .htaccess > file itself. > > To deny access to everyone by default and only allow access for some > specific hosts/subnets your .htaccess file would look like: > > Order deny,allow > > Deny From All > Allow From x.x.x.x > Allow From x.x.x.x > > > So, one "Allow From" line for every host or subnet you want to allow > your site. > > You may read the documentation for the directive in the > apache2 docs. > > > Grand Apeiron > > -- > If I would be a tapeworm, I would prefer penguins. > > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- 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