It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Web Security Gateway

How to Allow a Specific Video on YouTube

  • Last updated on

This solution only applies to YouTube over HTTP. When accessing YouTube over HTTPS (https://www.youtube.com/), this solution requires that SSL Inspection be enabled, because the Barracuda Web Security Gateway is otherwise unable to see the full URL path. See Using SSL Inspection With the Barracuda Web Security Gateway for more information about using this feature. When running Barracuda Web Security Gateway version 12.x, SSL Inspection requires that you configure either categories or domains be explicitly inspected on the ADVANCED > SSL Inspection page.

If your organization's policy is to typically block access to YouTube with your Barracuda Web Security Gateway, it is possible to allow one specific video to be accessed. The address of every YouTube video contains a unique id string. The string begins with ?v= and ends with &featured. You will need the string contained in between, as shown below.

Examples:

Complete URLID string

http://www.youtube.com/watch?v=hhyAnz0oYWw&feature=related

hhyAnz0oYWw

http://www.youtube.com/watch?v=bV4D4kcKHKM&feature=related

bV4D4kcKHKM

In addition, every YouTube video has a serial number for the actual streaming content. The video request is redirected separately from the initial YouTube request, and the URL contains a googlevideo.com  format per the example below. This URL can be observed in the BASIC > Web Log page of your Barracuda Web Security Gateway when the video begins to load in a browser.

Examples:
https://r5---sn-aigzrn7e.googlevideo.com 
https://r2---sn-ja5g5oxu-ajte.googlevideo.com

 

To allow one of these specific YouTube videos:

  1. Go to the BLOCK/ACCEPT > URL Patterns page of the web interface of your Barracuda Web Security Gateway. 
  2. From the original video URL, find the unique ID string that follows ?v=. For example:    http://www.youtube.com/watch?v=hhyAnz0oYWw&feature=related

    The unique URL pattern for the above address is hhyAnz0oYWw. Enter this string in the Allowed Regular Expressions (Allow List) section. Remember; URL patterns use regular expressions and require regular expression syntax.


    YouTube VideoAllowSpecific.png

  3. Next, attempt to access the specific YouTube video in your web browser. The page will load, but the video will not stream. Go to the BASIC > Web Log page of your Barracuda Web Security Gateway web interface. Look for a blocked request which contains the serial number of the video.

      https://r2---sn-ja5g5oxu-ajte.googlevideo.com

    For instance, the above example URL contains a specific serial number for the streaming video content.

  4. Next, go to the BLOCK/ACCEPT > Domains page. This entire domain name needs to be added to the Allowed Domains (Allow List)
    section of the page.
    YouTubeAllowSerial.png

Additional Notes

In order for pages to render properly, the Content Server content filter category must be Allowed on the BLOCK/ACCEPT > Content Filter page. Alternately, the YouTube content server can specifically be allowed by creating a domain Allow rule on the BLOCK/ACCEPT > Domains page for ytimg.com.

Some videos on YouTube are age restricted and require a user to log in to access the content. Because of the required authentication (and thus navigating to another page on YouTube), this method of exemption will not work with such videos.