Password Protection of Websites: .htaccess fils
To access your riles use Terminal, or using a web browser type: ftp://email@example.com
Create an .htacess file and place it in the folder you want to protect. The bold text is the text necessary. You can also use the attached file. Save the .htaccess file and upload it to your web site. Note. The Mac will not let you save your files in this form (files beginning with a period are reserved for the system), so save them as htaccess.txt, then upload to the folder you wish to protect and change the name to .htaccess on the server.
AuthName "Enter CSUN e-mail address for User Name"
A web-based system for setting password protection on your web site is also available.