By default, documents you make available on the Computer Science web server, http://students.cs.tamu.edu/, are readable by anyone with access to the World Wide Web, which means that many, many people can view your pages. In some cases, you may want to restrict access to your pages. To help solve this problem the department allows you to limit access to your files based on a username & password pair.
Note that this username and password are completely separate from the CS department’s account, and must be maintained by you. Further more, the usernames and password are sent as plain text (not encrypted) over the network, and are therefore susceptible to network eavesdroppers. This method is not very secure and should not be used to protect very sensitive data.
% cd web_home/my_protected_directory/
|
AuthType BasicAuthName "My Protected Area"AuthUserFile /user/<your_username_here>/web_home.passRequire valid-user |
Note if you want to password protect every thing in your website place this file just inside the web_home directory.
% htpasswd −c /user/<your_username_here>/web_home.pass <your_username>
|
For more information on .htaccess files see the apache documentation at
http://httpd.apache.org/docs/howto/htaccess.html
To Top of Page
Monday - Friday:
7 am - Midnight
Saturday:
10 am - 7 pm
Sunday:
12 pm - Midnight
Hours subject to change during holidays, emergencies, and summer semester.