Allow certain YouTube videos but Time Quota the rest of YouTube

Article #: Product: Castle:
  Guardian All

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 https://help.smoothwall.net/Latest/Content/modules/guardian3/cgi-bin/guardian/https.htm

If you need help setting up a Time Quota — see https://kb.smoothwall.net/Content/filtering/filtering_videos.htm?Highlight=time%20quota

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:

  1. Go to Guardian > Policy Objects > Categories.
  2. Under Manage categories, enter the name of the new category, for example, 'YouTube Quota'.
  3. Click Advanced, under URL Patterns, add the following regex:
  4. ^(?:.{1,5}://)?(?:[^/]*\.)?youtube\.com/watch\?v=.*

  5. Click Save.
  6. Create another custom category named 'YouTube Bypass Quota'.
  7. Enter the YouTube URLs that you want to allow to be viewed at any time under the Domain/URL filtering section and Click Save.
  8. Set up the Web filter policies:
    1. Create a new policy with the following:
      • Who — Everyone*
      • What — YouTube Bypass Quota
      • Where — Everywhere*
      • When — Always*
      • Action — Allow
      • * Change as appropriate

    2. Make sure the Enable Policy option is selected and click Confirm.
    3. Create a second policy with the following:
      • Who — Everyone*
      • What — YouTube Quota
      • Where — Everywhere*
      • When — Always*
      • Action — Limit to Quota
      • * Change as appropriate

    4. Make sure the Enable Policy option is selected and click Confirm.
  9. The first policy we created should be above the second policy in the Web Filter policy table.

Attribution:

Last updated: Author: Contributions by:
26th January 2018 Jonathan McKeague