Restricting Access

hci

Verified User
Joined
Jun 15, 2004
Messages
372
I have several html files on a website and I want to restrict access to them so they can only be viewed when accessed from several subnets we posses. How would I do that? I do not want to password protect them since it needs to be transparent to the end users. How would I do that?

Matthew
 
Put them into a separate directory and protect the directory contents with an .htaccess file.

.htaccess files can be written to allow or disallow by IP# rather than by password.

The example blocks a few and allows all; you can do something similar to allow a few and block all:
Code:
<Limit GET>
order allow,deny
deny from 128.23.45.
deny from 207.158.255.213
allow from all
</Limit>
Jeff
 
Back
Top