Stanford University School of Earth Science
 
Home
News
New Users
Policies
Network File Server
Web Server
   Personal Setup
   Email Form
   Other Resources
Get Help
Net Connections
Your Macintosh
Your Windows PC
Your Unix/Linux System
Other School Resources
Using Unix

Limit access to specific computers OR require a password

Last revision July 20, 2004

You can create an either/or access limit to pages in a directory: either the viewer is using a certain computer (such as "any computer in Earth Sciences"); or if he is not using one of the specified computers, he will be asked to provide a valid user name and password. In this case, you put both types of directives in your .htaccess file, but then to tell the web server that you want to allow access to any viewer who satisfies either set of requirements, you add this directive line at the end of your .htaccess file:

Satisfy Any

You can get more information on .htaccess file and their uses from the article Using .htaccess files with Apache from the Apace Today web site.

 


Comments?

Stanford University    |