Password Protection of Websites: .htaccess fils
(source: ITR) ; web-based system for setting password protection on your web site
To access your riles use Terminal, or using a web browser type: ftp://username@csun1.csun.edu
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.
AuthLDAPUrl ldap://ldap.csun.edu/o=csun?
maillocaladdress
AuthName "Enter CSUN e-mail address for User Name"
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative Off
Require valid-user
A web-based system for setting password protection on your web site is also available.