You will need to create an .htaccess file in the folder that you want to limit access.
Proceed with the following steps:
* To create the .htaccess file, you will need to download a text editor that doesn't object when you save a file with a name that only has an "extension" such as .htaccess. Go to
http://www.notetab.com/ and download the NoteTab Light version (Free Software).
* Open NoteTab and copy the following text in a new window:
<Limit GET POST>
order deny,allow
deny from all
allow from all
require user NetID1 NetID2 NetID3 ...
</Limit>
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName ND.EDU
AuthType Kerberos
* In the above text, the id's that you want to grant access to should replace NetID1 NetID2 and so on.
* Save the text file as .htaccess (make sure you include the 'period' at the beginning) in the root of the folder that you want to restrict access rights to.
* The only user's who will be able to access the folder will be those that you added to the .htaccess file
If you only want to allow access to those who are connected to a VPN, use the following (it specified the range of ip address that the Notre Dame network & vpn uses):
AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName AllowFromND
AuthType Basic
<Limit GET>
order deny,allow
deny from all
allow from 129.74.0.0/16 66.254.224.0/19 172.17.0.0/17
</Limit>
And this page will help you | --
balance directives -- |
hope that helps, though, i msut say there are other approaches to this.
2hp