Cannot block or deny a single YouTube video
search cancel

Cannot block or deny a single YouTube video

book

Article ID: 165490

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

You want to allow users to see all YouTube videos except for a specific one, which you want to block. Following the procedures in KB articles FAQ711 and KB3710, which discuss how to allow a single video, do not work in your scenario.

As an example, you want to DENY the following video:
 
http://www.youtube.com/watch?v=kioiUPBgOOM

Resolution

This example assumes a default ALLOW policy.
 
To block the YouTube video, use the following local policy (or the equivalent VPM policy):

<proxy>
    url.substring=kioiUPBgOOM DENY

This policy uses the unique identifier string of the video that follows the v= and blocks that substring from playing, as well as the background YouTube video URLs that are retrieved for the video.

 
Do not set the following URLs to DENY:
 
url.domain=//c.youtube.com/ DENY
url.domain=//ytimg.com/ DENY

 NOTE: This CPL  has been tested on Internet Explorer 8 and 9 and Firefox 11.0, and it appears to be working as expected.