trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Kneale <geoff...@exceleratesoftware.com>
Subject HTTP Headers in a forward proxy
Date Wed, 01 Feb 2012 00:09:17 GMT
Hello All,

Is it possible to manipulate the HTTP Headers in Trafficserver configured
to be a forward proxy? My goal is to support the YouTube Education filter,
which utilizes either A or B below.

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 characters

B)  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=ABCD1234567890afbcdef


Thanks in advance,

Geoffrey

Mime
View raw message