Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2001 16:26:52 -0500
From:      lists <lists@vivdev.com>
To:        Kurtis Smith <ksscendyn@yahoo.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Apache .htaccess file
Message-ID:  <v04003a04b6eaa5cd0b45@[192.168.1.100]>
In-Reply-To: <5.0.2.1.0.20010330122808.00a6d8f0@64.161.89.218>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v04003a04b6eaa5cd0b45>