How do I setup password protected pages?
Matt's Script Archive
1. Use our access program to add your username/password to our database.
2. Create a .htaccess file in the directory you would like to password protect.

3. The .htaccess file should contain the following:

AuthUserFile /data/.htpasswd
AuthGroupFile /dev/null
AuthName username
AuthType Basic


require user username


Change username to the name you added to our database with the access.pl program.

Tutorials

Password protecting folders:

Sometimes you may want your users to have a password before they can access areas of your web site. To this the web server looks for a file called .htaccess. This files tells the web server to do something special before it allows access to the folder. You .htaccess file should look just like this (except it has your information)


AuthName (any name you want)
AuthType Basic
AuthUserFile /usr/local/etc/htpasswd/your_userID


Require valid-user



Now upload the file to the folder you want to protect: THE FILE NAME MUST BE .htaccess Yes the is a dot before the file name.

Now you can contact support to make the passwords. The password system uses that normal UNIX password system so people can look them up.

You should now have a password protected folder.

Scripts

HT Access

UCLA Library You may password protect pages published on the WWW. This is done by placing the files to be protected into a designated subdirectory on the WWW server. Several access configuration files are then created and placed in the same subdirectory. The following instructions detail the process for protecting WWW pages on the library test server. You must be able to TELNET to your main directory on the library test server before proceeding.

How To Run Ht Access

Security Security