Summary
The articles goes through the steps in how to allow certain YouTube videos while having a Time Quota on the rest of YouTube.
Problem
You want users to access certain videos at any time however you want to limit the amount of time they have watching other videos.
Solution
Note: As YouTube defaults to HTTPS, you will need to enable HTTPS Decrypt and Inspect for YouTube. See our help topic, Managing HTTPS inspection policies.
If you need help setting up a Time Quota, see our knowledge base article lising the videos you can watch, Using the Smoothwall Filter - Watch the Videos (15).
You will need to set up two custom categories, one for the YouTube videos you would like to allow and the other for the time quota.
To create a new category:
- Go to Guardian > Policy Objects > Categories.
- Under Manage categories, enter the name of the new category, for example, 'YouTube Quota'.
- Click Advanced, under URL Patterns, add the following regex:^(?:.{1,5}://)?(?:[^/]*\.)?youtube\.com/watch\?v=.*
- Under Search term filtering, add the video ID. For example, for https://www.youtube.com/watch?v=60y64uSkWws, you would add 60y64uSkWws.
- Click Save.
- Create another custom category named 'YouTube Bypass Quota'.
- Enter the YouTube URLs that you want to allow to be viewed at any time under the Domain/URL filtering section and Click Save.
- Set up the Web filter policies:
- Create a new policy with the following:
- Who Everyone*
- What YouTube Bypass Quota
- Where Everywhere*
- When Always*
- Action Allow
* Change as appropriate
- Make sure the Enable Policy option is selected and click Confirm.
- Create a second policy with the following:
- Who Everyone*
- What YouTube Quota
- Where Everywhere*
- When Always*
- Action Limit to Quota
* Change as appropriate
- Make sure the Enable Policy option is selected and click Confirm.
- The first policy we created should be above the second policy in the Web Filter policy table.