
ProxySG Content Policy Language Guide
day=
Tests if the day of the month is in the specified range or an exact match. The ProxySG appliance’s configured date and time zone are used to determine the current day of the month. To specify the UTC time zone, use the form day.utc=. Note that the numeric pattern used to test the day condition can contain no whitespace.
Syntax
day[.utc]={[first_day]..[last_day]exact_day}
where:
•
•
•
Note: To test against an inverted range, such as days early and late in the month, the following shorthand expression is available. While day=(..525..) specifies the first 5 days of the month and last few days of the month, the policy language also recognizes day=25..5 as the same.
Layer and Transaction Notes
•Use in all layers.
•Using
Examples
;Test for New Year’s Day (January 1). day=1 month=1
;This policy allows access to a special event site only during the days of
;the event.
;This form of the rule restricts access during
<Proxy> url=http://www.xyz.com/special_event
;The next line matches, but does nothing if allow is the default
;year=2003 month=7 day=23..25 ; During the event
;deny Any other time
;This form of the rule assumes access is generally denied, and grants access during
;the special event.
<Proxy> url=http://www.xyz.com/special_event
allow year=2003 month=7 day=23..25 ; During the event
See Also
•Conditions: date[.utc]=, hour=, minute=, month=, time=, weekday=, year=
68