httpd reverse proxy for youtube filtering

Problems with the Linux version of XAMPP, questions, comments, and anything related.

httpd reverse proxy for youtube filtering

Postby MOFLO » 14. February 2012 20:02

Hi All,

Thanks for any help in advance....

I'm trying to use transparent reverse proxy through Apache only when going to YouTube.com. The proxy request adjusts the header to include a filter string to see only education based videos.

Server is CentOS 5.7 with Apache 2.2.3.

httpd.conf vhost section:

<VirtualHost *:80>

ServerName youtube.com
ServerAlias *.youtube.com


ErrorLog logs/YouTube.com-error_log
CustomLog logs/YouTube.com-access_log common

ProxyRequests Off

<Proxy *>
RequestHeader set X-YouTube-Edu-Filter "xuxuxxhxhxhxrxrxr"
</Proxy>

ProxyPass / http://www.youtube.com/
ProxyPassReverse / http://www.youtube.com/

</VirtualHost>


The filter works properly except it doesn't play the video selected. Without going though the proxy, the same video loads and plays fine.

Nothing in the error or access logs indicate any problems.

Any help to point in the right direction or solution would be greatly appreciate. Thanks!
MOFLO
 
Posts: 1
Joined: 14. February 2012 19:56
Operating System: CentOS 5.7

Re: httpd reverse proxy for youtube filtering

Postby JonB » 17. February 2012 17:41

I would guess that YouTube may have a proxy detection schema in place. You should check their policies/techie FAQ's

8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 33 guests