banner

Restricting Access to Web Documents by user location

As a University of Akron Information Provider, you can restrict, by Internet hostname, access to Web documents you place on the University's Web server. To do this, you will need to create a file named .nsconfig in the directory holding the documents to which you wish to restrict access.

The .nsconfig file must have the following format:

<Files *>
RestrictAccess type=allow dns=*.uakron.edu
</Files>
The <Files *> indicates that ALL files in this directory are to be restricted. You can use any wildcard pattern for the files to which you wish to restrict access, e.g. <Files *.gif> to restrict access to all GIF files.

The 'RestrictAccess' directive specifies which Internet hostnames (dns=hostname pattern) are to be allowed (type=allow) or denied (type=deny) access to the given files. Any hostname not specifically allowed access will be denied access. In this example, only computers in the 'uakron.edu' domain (and in our Domain Name Server!) will be allowed access to the files in this directory.

Any number of 'RestrictAccess' directives may be included inside the <Files> block and any number of <Files> blocks may be included in the .nsconfig file.

back to IP Tools


UA Home Page Information Services Page maintained by: Technical Services
Last modified: Monday, 22-Mar-04 14:21:53 University of Akron logo