Authorizing a Short List of UW NetIDs
IT Connect > Web > Publishing > Password Protection by UW NetID > By Short List of UW NetIDs
Follow these step-by-step instructions if you want to password protect your Web site using a short list of UW NetIDs.
To provide access to a short list of UW NetIDs:
- StepsActions
-
Log into your web development server using a terminal emulator. If you're not sure how to do this, click here for instructions.
-
At the prompt, enter the following command to change directories to your Web directory:
cd public_html
If you want to protect a subdirectory rather than your whole Web site, change directories to the subdirectory you want to protect. For example:
cd private
-
At the prompt, enter the following command to create a .htaccess file in the current working directory:
pico -w .htaccess
The -w option turns off word wrap, which helps if you have a long list of UW NetIDs you want to authorize.
-
Add the following text to this file:
AuthType UWNetID
require user joshg sallyt jcat -
Replace the three example UW NetIDs with your own list of UW NetIDs. Make sure they are all on the same line, each separated by a space, just as you see above.
-
Save and close the file using Pico. (Click for instructions on how to use pico).
-
You're done! Confirm that password protection is working by opening your Web site with a Web browser.


