Search | Directories | Reference Tools
UW Home > UWIN > Computing and Networking > Web > Web Publishing > Controlling Access > Protection by UW NetID 

Authorizing by UW Group Membership

Follow these step-by-step instructions to password protect your Web site such that only people who are members of a pre-defined group in the UW Groups Service can get in.

To provide access to members of a specific UW Group:

  1. Log in to your Homer or Dante account with Tera Term or another terminal emulator.

  2. Press the O key for Other, then press the W key to drop into the Web development environment.

  3. 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
  4. At the prompt, enter the following command to create a .htaccess file in the current working directory:

    pico .htaccess
  5. Add the following text to this file:

    AuthType UWNetID
    require group u:netid:myteam

    Substitute "u:netid:myteam" with the name of a predefined UW Group available in the Groups Directory Service.

  6. Save the .htaccess file (in Pico use ^X).

  7. You're done! Confirm that password protection is working by opening your Web site with a Web browser.