[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Modifying RAQ3 for customer website
- Subject: Re: [cobalt-users] Modifying RAQ3 for customer website
- From: "Brian Curtis" <webmaster@xxxxxxxxxxx>
- Date: Tue Feb 22 10:14:45 2000
- Organization: Pomfret Computer Technologies
Charley,
Create a .htaccess file in the directory you want to restrict with the
following content:
--snip below line--
order deny,allow
deny from all
allow from 192.168.1.1 user.host.com
--snip above line--
You can change the IP to a partial IP, 192.168.1. to allow all host within
the 192.168.1.x network. The same applies for the host name, .host.com will
allow *.host.com.
Keep in mind that the above restriction example is quite tight. The person
visiting _has_ to have the exact IP '192.168.1.1' and hostname of
'user.host.com', otherwise they'll receive the 'Forbidden' error. You also
do not have to use both the IP and the host name, one or the other will work
just the same is some.host.com resolves to 192.168.1.1.
You can also allow multiple networks / hosts access by just adding a [space]
IP/hostname to the 'allow from' line.
HTH
Brian Curtis
Pomfret Computer Technologies
----- Original Message -----
From: "Charley Webb" <charley@xxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Monday, February 21, 2000 12:08 PM
Subject: [cobalt-users] Modifying RAQ3 for customer website
Is it possible to modify the RAQ3 for a customer website that would allow
access to a directory based on ip address?? I took a look at using the
.htaccess file, but didn't see an option to allow access to a directory
based on the ip address/domain name. If I modify the apache *.conf file,
will that screw up things for other customer websites that I have on the
same box?? Any help appreciated.