Sun Java System Web Proxy Server 4.0.2 2005Q4 Administration Guide

ProcedureTo restrict access to file types

Using the steps described for setting access control for a server instance (see Setting Access Control for a Server Instance), do the following:

Steps
  1. Access the Server Manager for the server instance.

  2. On the Preferences tab, click the Administer Access Control link.

  3. Click Regular Expression in the Select A Resource section, and specify the regular expression. For example: *.cgi.

  4. Click Edit.

  5. Create a new rule to allow read access to all users.

  6. Create another rule that allows write and delete access only to a specified group.

  7. Click Submit to save your changes.

    For file type restriction, you would leave both Continue boxes selected. If a request for a file comes in, the server then checks the ACL for the file type first.

    A Pathcheck function is created in obj.conf that may include wildcard patterns for files or directories. The entry in the ACL file would appear as follows: acl"*.cgi";