Enable youtube for schools in Squid
-
Hi, I want to enable youtube for schools in our school and some of the requirements to enable it is to choose one of the following options:
A) Add new HTTP header rule
Modify your hardware filter or proxy server settings so that all outgoing traffic to youtube.com contains the following custom HTTP header. The ID to use in the HTTP header configuration, written below, is an example of a unique ID for your school’s network only. If your school is blocked at the district level, this HTTP header is then unique to the district network.
Example:
X-YouTube-Edu-Filter:ABCD1234567890abcdef
Field Name: X-YouTube-Edu-Filter
Description: When YouTube sees this header and an accompanying valid school ID in the incoming traffic, YouTube will serve a limited EDU-only site to all computers behind the school hardware filter.
Field Value Format: alphanumeric [a-z][A-Z][0-9]
Field Value Length: up to 44 charactersB) Create URL parameter rewrite rule
If your hardware filter does not support HTTP header modification, please rewrite all outgoing URLs to youtube.com by appending the parameter “edufilter” at the end. Exclude the &edufilter parameter from these file types: .css, .gif, .png, .js, .xml
Example:
http://youtube.com/?edufilter=ABCD1234567890abcdef
http://youtube.com/watch?v=gM95HHI4gLk&edufilter=ABCD1234567890afbcdefMy question is how can I configure my Squid proxy package to enable youtube for school using either of these options?
Thank you so much for your help.
-
In squid GUI you can add any additional "custom options" you want.
You can create ACLs, rules and more. As long you use the correct squid syntax you can add this the "custom options" box which adds these options to the squid.conf.this parameter could perhaps help you:
"header_replace"