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.
|Complete URL||ID string|
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.
To allow one of these specific YouTube videos:
- Go to the BLOCK/ACCEPT > URL Patterns page of the web interface of your Barracuda Web Security Gateway.
From the original video URL, find the unique ID string that follows ?v=. For example:
The unique URL pattern for the above address is hhyAnz0oYWw. Enter this string in the Allowed Regular Expressions (Whitelist) section. Remember; URL patterns use regular expressions and require regular expression syntax.
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.
For instance, the above example URL contains a specific serial number for the streaming video content.
Next, go to the BLOCK/ACCEPT > Domains page. This entire domain name needs to be added to the Allowed Domains (Whitelist)
section of the page.