We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda Web Security Gateway

How do I allow one specific video from YouTube on my Barracuda Web Filter if YouTube is otherwise blocked?

  • Type: Knowledgebase
  • Date changed: 5 years ago

Solution #00004392

 

Scope:

This solution applies to all Barracuda Web Filters.

 

Answer:

If you normally block access to YouTube on your Barracuda Web Filter, 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 (see example below).

 

Examples:

 

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

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


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 c.youtube.com (see example below). This URL can be observed in the Basic > Web Log page of your Barracuda Web Filter when the video begins to load in your browser.

Examples:
r11---sn-a5m7lnez.c.youtube.com
r19---sn-a5m7ln7y.c.youtube.com

 

To allow one of these specific YouTube videos, navigate to Block/Accept > URL Patterns on the web interface of your Barracuda Web Filter.  From the original video URL, find the unique ID string that follows ?v=.

 

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

The unique URL pattern for the above address is hhyAnz0oYWw and would be entered in the Allowed Regular Expressions (Whitelist) section. Remember URL patterns use regular expression and require regular expression syntax. More information on regular expression syntax can be found in Solution #6365.

 

Next, attempt to access the specific YouTube video in your web browser. The page will load, but the video will not stream. Now, navigate to Basic > Web Log of your Web Filter web interface. Look for a blocked request which contains the serial number of the video.

r11---sn-a5m7lnez.c.youtube.com

For instance, the above example URL contains a specific serial number for the streaming video content. Now, navigate to Block/Accept > Domains. This entire domain needs to be added to the Allowed Domains (Whitelist).

Additional Notes:

In order for pages to render properly, the Content Server content filter category must be allowed. Alternately, the youtube content server can specifically be allowed by creating a domain allow rule 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.


This solution only applies to YouTube over HTTP. When accessing YouTube over HTTPS (https://www.youtube.com), this solution requires SSL Inspection because the Barracuda Web Filter is otherwise unable to see the full URL path. More information on configuring SSL Inspection can be found in our TechLib.

 

Link to this page:

https://campus.barracuda.com/solution/50160000000Hsu4AAC