Password protect your webpages
- Launch an SSH client such as Putty. Putty is available for download here.
- Type giant.utdallas.edu into the Host Name field and select the SSH circle below. Click Yes at the following notice window.
- Enter your NetID and password when prompted.
- Change to the directory that you would like to password protect. To create the password text file, use the command pico filename where filename is whatever you would like to name the file.
- You will now find yourself in the text editor. Create a file of usernames and passwords in the format username password with each set on a seperate line.
Note: Make sure you use unique passwords that aren’t used anywhere else.
- Press Ctrl-X to save changes. When prompted, press Y to confirm the changes. Type in the name that you would like to use for the file when prompted. Press Enter to proceed.
- Run the command htcreate filename, replacing filename with the name of the file you created. This will create two files: .htaccess and .htpasswd. .htaccess sets up the process for authentication while .htpasswd contains the usernames and encrypted passwords.
- For security reasons, you should remove the password file you created. Run the command rm filename where filename is whatever you named the file. Type in Yes when prompted and press Enter to confirm.
Note: If you would like to remove password protection, simply delete the .htaccess and .htpasswd files from the directory you created them in.