3 Replies Latest reply on Aug 5, 2011 8:35 AM by DBO

    Im sure this is an easy one..

      Can someone help me create a time block on V7.  Basically i need to create a rule that matches user in group X and time is between 8am and 5pm.

       

      Any suggestions?  I did try but cant get it right.

        • 1. Re: Im sure this is an easy one..

          I did this and it sems to work.  Only issue is the NTP server im using forces it to a US date and time and im in another country to i have to translate my business hours to the US timezone and allow the times based on the US time conversion.  A pain in the neck expecially when US goes nito day light savings and skews my time by an hour.

           

          time.jpg

          • 2. Re: Im sure this is an easy one..

            Luckily you want to break at the top of the hour, so you just need to use Hour.

             

            These will either block out side the range or allow inside the time range depending on if your rules are postive or negative.

             

             

            Rule Criteria:
            DateTime.Time.Hour less than 8 AND
            DateTime.Time.Hour greater than or equals 17 AND
            Authentication.UserGroups contains "aGroupName"

             

            Action:
            Block

             

            Or

            DateTime.Time.Hour greater than or equals 8 AND

            DateTime.Time.Hour less than 17 AND

            Authentication.UserGroups contains "aGroupName"

             

            Action:

            Stop Rule Set

             

            These will technically work for the time between 800 to 4:59.

            The time zone skews are going to kill you, especially if the clients are in multiple time zones. You can't tell from the reuqest what he actual time is for the client, on the time of the proxy server itself.

            • 3. Re: Im sure this is an easy one..
              DBO

              ???  NTP doesn't know timezone...  It just return UCT time.