From owner-freebsd-questions Fri Mar 30 13:27:40 2001 Delivered-To: freebsd-questions@freebsd.org Received: from hawk.prod.itd.earthlink.net (hawk.prod.itd.earthlink.net [207.217.120.22]) by hub.freebsd.org (Postfix) with ESMTP id 1045637B71F for ; Fri, 30 Mar 2001 13:27:36 -0800 (PST) (envelope-from lists@vivdev.com) Received: from [192.168.1.100] (dhcp043-10-151-24.nt01-c5.cpe.charter-ne.com [24.151.10.43]) by hawk.prod.itd.earthlink.net (EL-8_9_3_3/8.9.3) with ESMTP id NAA08617; Fri, 30 Mar 2001 13:26:59 -0800 (PST) X-Sender: lists@vivdev.com (Unverified) Message-Id: In-Reply-To: <5.0.2.1.0.20010330122808.00a6d8f0@64.161.89.218> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 30 Mar 2001 16:26:52 -0500 To: Kurtis Smith From: lists Subject: Re: Apache .htaccess file Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I was just looking at the htaccess file in O'Reilly's book - would the AllowOveride directive Limit be applicable? >Hi Apache Guru's and such, please can you help me with the .htaccess file >on apache >webserver? > >I need to block my whole domain for two IP addresses. I want that they get >any restricted messages, something like "...you are not welcome here!" or >something like that. Maybe a redirect to another page such as yahoo.com or >something. >I was reading in some apache/unix sites and I found information about it. >They say this is doable with the .htaccess file but I'm not sure how the >file should look. I know if you want to restrict some files or folders you >can make it like: ># Access file >order allow,deny >allow from all >require valid-user >Authname DirectoryName >Authtype Basic >AuthUserFile /home/sites/sitename/users/username/.htpasswd >but this ask for a password and I don't want a password protection. I want >block the whole domain for only two IP addresses and all other have full >access. >I can do that with wildcards too like: >Deny from 204.255.230.13 >Deny from 192.168. >Deny from 9. >Please can you send me some .htaccess file from your server or create me one >that I can test this with my own IP before I put the right one in it? > >here are the server information: >running on Apache/1.3.12 FreeBSD 4.2 mod_ssl/2.6.4 OpenSSL/0.9.5a >PHP/4.0.3pl1 mod_auth_pam/1.0a FrontPage/4.0.4.3 mod_perl/1.24 > >I would appreciate this a lot, thanks in advance > >-Kurt > > >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