Solutions

Controling YouTube traffic using policy and bandwidth management

Solutions ID:    KB3268
Version:    1.0
Status:    Published
Published date:    08/11/2009
 

Problem Description

Controling YouTube traffic using policy and bandwidth management
How do I take control of traffic coming from youtube.com?
I need a policy to deny the access of video files in YouTube or if allow, only provide limited bandwidth.

Resolution

The following policy can be used to control YouTube traffic

Policy based on Client’s request:

<proxy>
url.extension=".flv" DENY

Policy based on Server’s response:

<proxy>
response.header.Content-Type="video/flv" DENY

<proxy>
response.x_header.Content-Type="x-video/flv" DENY

Note:
1.     You can use either “.flv” or “flv” strings
2.     Another possible extension for the video is “.swf”. You can replace “.flv” with “.swf”
3.     To determine the file extension, use a packet analyzer to check the HTTP header “content-type”.

Using Bandwidth Management to limit the bandwidth usage

1.     Create a bandwidth class
    a. Example; YouTube
    b. Set Min/ Max bandwidth

See below screen shot for example:

 

Use the following policy to apply bandwidth management

Policy based on Client’s request:

<proxy>
url.extension=".flv" limit_bandwidth.client.inbound(YouTube)

Policy based on Server’s response:

<proxy>
response.header.Content-Type="video/flv" limit_bandwidth.client.inbound(Youtube)

<proxy>
response.x_header.Content-Type="x-video/flv" limit_bandwidth.client.inbound(YouTube)


Rate this Page

Please take a moment to complete this form to help us better serve you.

Did this document help answer your question?
 
 
If you are finished providing feedback, please click the RATE CONTENT button. Otherwise, please add more detail in the following text box and then click RATE CONTENT.
 
 

Your response will be used to improve our document content.

Ask a Question