From owner-freebsd-questions Thu Nov 22 23:25:16 2001 Delivered-To: freebsd-questions@freebsd.org Received: from freebie.atkielski.com (ASt-Lambert-101-2-1-14.abo.wanadoo.fr [193.251.59.14]) by hub.freebsd.org (Postfix) with ESMTP id 4ED5137B416 for ; Thu, 22 Nov 2001 23:25:13 -0800 (PST) Received: from contactdish (win.atkielski.com [10.0.0.10]) by freebie.atkielski.com (8.11.3/8.11.3) with SMTP id fAN7P4J02994; Fri, 23 Nov 2001 08:25:04 +0100 (CET) (envelope-from anthony@freebie.atkielski.com) Message-ID: <046f01c173ef$f8f2e350$0a00000a@atkielski.com> From: "Anthony Atkielski" To: "Edwin Groothuis" , "David Loszewski" Cc: References: <000001c173e5$33a10460$3000a8c0@sickness> <20011123172455.E58388@k7.mavetju.org> Subject: Re: denying webserver access?? Date: Fri, 23 Nov 2001 08:25:03 +0100 Organization: Anthony's Home Page (development site) MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG You can use deny and allow directives for specific directories right in the httpd.conf file, and also in .htaccess files in your document directories. You generally only need one .htaccess file, if you use that, as a single file will apply to the directory in which it appears and to all subordinate directories that do not contain .htaccess files of their own. ----- Original Message ----- From: "Edwin Groothuis" To: "David Loszewski" Cc: Sent: Friday, November 23, 2001 07:24 Subject: Re: denying webserver access?? > On Fri, Nov 23, 2001 at 01:07:59AM -0500, David Loszewski wrote: > > Is there a way to deny someone access from viewing anything web pages on > > a web server? I tried to put 'httpd::deny' in the hosts.allow file > > but that didn't work. > > As far as I know, Apache HTTPD doesn't use the hosts.allow file. > > Two solutions: > - put in every directory in your webserver a .htaccess-file (maybe > you can do something with access.conf instead of that) > - use ipfw to disable access on port 80 from that host. > > Edwin > -- > Edwin Groothuis | Personal website: http://www.MavEtJu.org > edwin@mavetju.org | Interested in MUDs? Visit Fatal Dimensions: > ------------------+ http://www.FatalDimensions.org/ > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message