Add a time range rule, which examines a request and determines whether to grant access to a backend target site based on the request falling within a defined time frame.
You can use this rule when you want to restrict access to specific endpoints for certain time periods, such as during the work day from 8:00 a.m. to 5:00 p.m.
- Click Access and then go to .
- Click + Add Rule.
In the Name field, enter a unique name up to 64
Special characters and spaces are allowed.
- From the Type list, select Time Range.
- In the Start Time field, enter the beginning time for the time frame, such as 8:00 a.m.
In the End Time field, enter the ending time for the
time frame, such as 5:00 p.m.
If you are using Internet Explorer or Firefox, you must enter the time in 24-hour format. For example, 5:00 p.m. is 17:00.
- If access is not allowed when a match is found, select the Negate check box.
To configure rejection handling, click Show Advanced
Settings, then select a rejection handling method.
- If you select Default, use the Rejection Handler list to select an existing rejection handler that defines whether to display an error template or redirect to a URL.
- If you select Basic, you can customize an error
message to display as part of the default error page rendered in the end user's
browser if rule evaluation fails. This page is among the templates you can
modify with your own branding or other information. If you select
Basic, provide the following:
- In the Error Response Code field, enter the HTTP
status response code to send if rule evaluation fails.
The default is 403.
- In the Error Response Status Message field, enter
the HTTP status response message to send if rule evaluation fails.
The default is Forbidden.
- In the Error Response Template File field, enter the HTML template page for customizing the error message that displays if rule evaluation fails. This template file is located in the <PA_HOME>/conf/template/ directory.
- From the Error Response Content Type list, select
the type of content for the error response.
This lets the client properly display the response.
- In the Error Response Code field, enter the HTTP status response code to send if rule evaluation fails.
- Click Save.