Password protecting web pages

Password protecting web pages

Access to a set of web pages can be restricted by Using User Authentication. A simple cookbook for setting this up is as follows: Your protected files should then be available under the URL
   http://www.cs.rutgers.edu/~username/protected/

Note: As with all files being accessed via the web, they (and the .ht* files) must be readable by the httpd process. In general, that means the files themselves should be world readable and directories on the path to them must have the world execute bit set so that the files/directories can be opened. This implies that all users on the machine on which the files reside can read the files without restriction. If this is undesirable, special arrangements can be made to prevent this.


This page last updated January 25, 2007.