1 of 1 people found this helpful
yes. There are properties for Time and Date decisions. You can create a rule that only matches from 8 to 10. Depending on the action of the rule you can allow/deny traffic.
Yes, this is indeed possible.
You could use the property "DateTime.Time.Hour" and set the value that you want to include from 0-23 on a 24-hr basis.
thanks for the answer...
I'll could use Date.Time.Hours is in list "hours"
where "hours" is a list of hours.
Applies to: Request, Response and embedded object
I'll could use this rulset above, in head of all rule.
thanks a lot
Sounds perfect for a controlled web access for your users...
I've configured the rule "Date.Time.Hour" and working correctly...
but my customer would like to have a more granular control.
the desire is: from 13:15 to 14.45
How can I configure the ruleset to accomplish what customer want? is there a way to configure a time range instead a list of hours?
thanks a lot
Sure does your customer give you a hard time
I dont think there's a property which can create a range.
But you could configure this by mixing properties of date.time.hour and date.time.minute.
You could use the following rule for this,
"(Date.time.hour = 13 AND Date.time.minute equals or greater than 15)
(Date.time.hour = 14 AND Date.Time.Minute equals or less than 45)"
I've just tried this:
a DateTime.Time.Hour equals 17
b AND DateTime.Time.Minute greater than or equals 25
c AND DateTime.Time.Hour equals 17
d AND DateTime.Time.Minute less than or equals 30
e AND URL.Host matches in list WhiteList
and seems all is working good
in 7.4 you can also use DateTime.Time.IsInRange! You configure it like:
DateTime.Time.IsInRange(08:30:00-12:30:00, 13:30:00-17:00:00) Then Block
Probably simpler than the solution before.