cancel
Showing results for 
Search instead for 
Did you mean: 
dcaffrey
Level 10

MWG 7 Time Restriction Options

Jump to solution

Hi,

Is it possible to only allow access to certain URL categories outside of normal business hours, i.e. before 9am, 12-2pm and after 5.30pm

Are there any library rulesets for this ?

Thanks,

Dec

0 Kudos
1 Solution

Accepted Solutions
eelsasser
Level 15

Re: MWG 7 Time Restriction Options

Jump to solution

I didn't actually enter this into a gteway to test it, but typed it off the top of my head, so check my work...

For:

00:00-08:59 or
12:00-13:59 or
17:30-17:59 or
18:00-23:59 or
Saturday or Sunday

Try:

1Smiley Sad    DateTime.Time.Hour less than or equals 8
2: OR (DateTime.Time.Hour greater than or equals 12
3: AND DateTime.Time.Hour less than 14)
4: OR (DateTime.Time.Hour greater than or equals 17
5: AND DateTime.Time.Minute greater than or equals 30)
6: OR DateTime.Time.Hour greater than or equals 18
7: OR (DateTime.Date.WeekDayNumber equals 0
8: OR DateTime.Date.WeekDayNumber equals 6) )
9: AND URL.Category at least one in list "Allowed Non-work hours"

0 Kudos
3 Replies
eelsasser
Level 15

Re: MWG 7 Time Restriction Options

Jump to solution

I didn't actually enter this into a gteway to test it, but typed it off the top of my head, so check my work...

For:

00:00-08:59 or
12:00-13:59 or
17:30-17:59 or
18:00-23:59 or
Saturday or Sunday

Try:

1Smiley Sad    DateTime.Time.Hour less than or equals 8
2: OR (DateTime.Time.Hour greater than or equals 12
3: AND DateTime.Time.Hour less than 14)
4: OR (DateTime.Time.Hour greater than or equals 17
5: AND DateTime.Time.Minute greater than or equals 30)
6: OR DateTime.Time.Hour greater than or equals 18
7: OR (DateTime.Date.WeekDayNumber equals 0
8: OR DateTime.Date.WeekDayNumber equals 6) )
9: AND URL.Category at least one in list "Allowed Non-work hours"

0 Kudos
dcaffrey
Level 10

Re: MWG 7 Time Restriction Options

Jump to solution

Thanks for the prompt reply Erik, will try this Monday and report back.

Dec

0 Kudos
dcaffrey
Level 10

Re: MWG 7 Time Restriction Options

Jump to solution

Thanks again Erik, didn't use quite the same sytax but pointed me in the right direction, I decided to set it up to Block during core business hours

Dec

0 Kudos