Restricting Access to Your Web Pages |
NOTE: If you want a printed copy of this document, please select one of the following:
Pages that you publish on the web are normally available to anyone who browses the web. You can, however, restrict access to your web pages to the U-M community or to groups and/or individuals within it. Those who wish to view your pages must first log in with their uniqname and UMICH password. This document tells you how to publish web pages that only the U-M community -- or specific groups and individuals in that community -- can access.
Windows. Use SSH Secure Shell software. For information about obtaining and using SSH Secure Shell, see Using SSH Secure Shell to Connect to Host Computers [Windows] (s4304).
Mac OS X. Mac OS X comes with SSH software called Terminal. Open the Applications folder, then the Utilities folder to find it. Open Terminal and enter this command:
ssh login.itd.umich.edu
The Blue Disc installs an icon in your dock that you can click to connect to the Login Service.
Mac OS 8.6-9.2.2. Mac Classic users can use MacSSH, which is available on the Blue Disc.
a. At the login prompt, type your uniqname. Press Return or Enter.
b. At the Password prompt, type your UMICH password. Press Return or Enter.
-- create a private HTML directory for your personal web page, type your uniqname and press Return or Enter.
-- create a private HTML directory for a group web page, type the name of the group directory and press Return or Enter.
HINT: If you had already published the Web pages, you will need to move those files from the html folder in your Public folder to the new html folder in your Private folder.
Use Secure File Transfer Protocol (SFTP) software to download files from and upload files to your IFS file storage space.
NOTE: The URLs begin with https, not http. The s stands for a secure http connection and is required.
Anyone who goes to the URL for your pages (including you) will first see a Login required screen and will need to log in with a uniqname and UMICH password before being connected to the pages.
Be sure to include a logout link on your page(s) so that people who have logged in can also log out. Here is HTML code for a sample link you can use:
<A HREF="https://personal.www.umich.edu/cgi-bin/logout">Logout</A>
You can then further restrict access to individuals or groups within the U-M community by using .htaccess files.
To work with .htaccess files, you need to know how to use a Unix text editor -- such as pico or vi -- to create and edit files. For instructions, see
If you want to restrict access to groups of people (rather than to individuals), you also need to know how to create and work with protection (pts) groups. For instructions, see
To further restrict access to the web files in a particular directory, follow the directions below to create a .htaccess file in that directory that specifies who can have access.
# Web space restriction description
The second line should begin with ACL followed by the uniqname(s) or pts group(s) to which you want to restrict access. (ACL stands for Access Control List.)
For example, if you want to restrict access to the members of the mygroup pts group and to a person whose uniqname is bjensen, you would create a .htaccess file with the following text:

Restrictions are enforced on a directory-by-directory basis, so you can make a subdirectory that is more narrowly restricted than Private/html. A good example of this is for a class:
You could, for example, restrict Private/html to members of the U-M community, restrict Private/html/assignment1 to just the students and teaching assistants of a class, and restrict Private/html/assignment1/grades to only the teaching assistants. Note that restrictions can be narrowed in subdirectories, but you cannot have a subdirectory that is more widely available than its parent directory.
For a more complete overview of .htaccess files, see the U-M Webmaster document, Setting up Access Control for Your HTML Documents.
For information on accessing the pages you restricted access to on the web, see Accessing the Restricted Pages earlier in this document.
We welcome your comments; please send e-mail.
ITCS's Online Help Desk provides a variety of computing help resources.
For further help with restricting access to web pages, send e-mail or phone (734) 764-HELP.