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

Limit access to specific computers AND require a password

Last revision July 20, 2004

You can limit web access to the pages in a directory so that the viewer must be using a certain computer (such as "any computer at Stanford") and he must provide a valid user name and password. All you have to do is create a .htaccess file in the directory to be protected, using both sets of directives shown above in the sections on limiting access by computer and limiting access by password. If both sets of directives are found in this file, the default behavior of the web server is to make sure that the viewer who wants access satisfies both sets of requirements.

 


Comments?

Stanford University    |