Password Protecting a Directory on www.und.edu

A directory on www.und.edu may be password protected by using a .htaccess file. The .htaccess file, along with a second file called password.ht, contains the information needed to block access to a directory within your web space unless the correct login and password are entered. You may use any text editor to create these files. Once both files have been ftp'd to the web server, the password is required to access the protected directory.

A script has been written to assist in this process for www.und.edu directories. The script is located at: http://www.und.edu/cgi-bin/htaccess.cgi. Please review the instructions below before using the script for the first time.

Enter your Information

Enter the following information:

Account Name: login for your web space on www.und.edu.

Prompt: the text of the prompt that will be displayed

Login Name: the login people will need to access the password protected directory. DO NOT make it the same as the login for your web space.

Password: the password people will use to access the password protected directory. DO NOT make it the same as the password for your web space.

Click Create.

Create the password.ht and .htaccess files

Copy and paste the appropriate information into the files password.ht and .htaccess.

Using FTP, transfer the password.ht file into the home directory of your web space (/raid/www/home/your_directory_name).

Transfer the .htaccess file into the directory that is to be password protected.

Once both files are in place, the password is required to access the protected directory.

NOTE: Moving your files to a different directory or removing either the password.ht or .htaccess file will remove the password protection.