Sun Java System Web Proxy Server 4.0.3 2006Q2 Administration Guide

ProcedureTo restrict access based on time of day

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. Select the entire server from the drop-down list in the Select A Resource section, and click Edit.

  4. Create a new rule allowing read and execute rights to all.

    This means that if a user wants to add, update, or delete a file or directory, this rule does not apply and the server searches for another rule that matches.

  5. Create another new rule denying write and delete rights to all.

  6. Click the X link to create a customized expression.

  7. Enter the days of the week and the times of day to be allowed.

    For example:


    user = "anyone" anddayofweek = "sat,sun" or(timeofday >= 1800 
    andtimeofday <= 600)
  8. Click Submit to save your changes.

    Any errors in the custom expression produce an error message. Make corrections and submit again.