|
Restricting Access to Your Web Pages
S4293 May 2009
Pages that you publish on the web are normally available to anyone. 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. Table of ContentsRestricting Access to the U-M CommunityCreate a Private HTML Directory
![]()
![]()
Put Your Web Files in the Private DirectoryTo restrict access to your web pages to the U-M community, you'll need to put the files for those pages into your private HTML directory (or folder). Inside your IFS home or group directory is a Private folder. Inside that is a folder called html. Put the files for the web pages inside the html folder.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 MFile for an easy-to-use, secure, web-based method of transferring files. You can also use Secure File Transfer Protocol (SFTP) software to access your IFS file storage space. You can obtain the following SFTP programs at no cost from the U-M Blue Disc:
Accessing the Restricted PagesTo access your restricted web pages, use a web browser to connect to the appropriate URL:
HTTPS: The URLs begin with https instead of http. The s stands for a secure http connection and is required. Anyone who goes to the URL for your pages (including you) will receive a Login required screen. Log in with a uniqname and UMICH password to connect to the page. 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:
Restricting Access to Specific Groups and Individuals at U-MFollow the steps earlier in this document to
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, refer to Using the Unix Text Editor Pico (R1168) or Using the Unix Text Editor vi (R1172). 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 Creating and Using Protection (pts) Groups for IFS (S4033). To further restrict access to the web files in a particular directory, create a .htaccess file in that directory that specifies who can have access.
Using a class as an example:
For a more complete overview of .htaccess files, refer to Setting up Access Control for Your HTML Documents. For information on accessing the pages that you have restricted access to, see Accessing the Restricted Pages earlier in this document.
Additional ResourcesVisit ITS's Information System to obtain ITS computer documentation and other resources. A list of relevant documents follows:
Using SSH Secure Shell to Transfer Files with sftp [Windows] (S4299) Using the Unix Text Editor Pico (R1168) Using the Unix Text Editor vi (R1172) Creating and Using Protection (pts) Groups for IFS (S4033) Using Access Control Lists (ACLs) With IFS Directories and Folders (S4111) We welcome your comments; please send e-mail. ITS'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 [764-4357].
|