Google Product Forums

apache proxy for ios devices


zakthan Apr 22, 2012 10:35 AM
Posted in group: YouTube
Hi all,

I have created an apache proxy for embedded youtube videos but I have a problem when it gets to ios devices.
It works for all other OS platfoms but when a ios devices is trying to watch an embedded video I get this error: HTTP/1.1 403 Forbidden

Below is the part of the logs that I get it.

Any advice on that?
Thank u!


http://o-o.preferred.iad09s10.v6.lscache5.c.youtube.com/videoplayback?upn=K5G4Q9SSxms&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&fexp=901802%2C909902%2C910206&itag=44&ip=174.0.0.0&signature=21E0E5B299673E323824CF57A002171894FB7FB2.436EFE88A076324348EE506EE4F7921B829B3ADE&sver=3&ratebypass=yes&source=youtube&expire=1335073517&key=yt1&ipbits=8&cp=U0hSSlBSUV9GUUNOMl9ITFVGOkVWUFQ2VmhlM3pY&id=ed899f517b4dea88&ptk=NationalGeographic&oid=IwsLV5nfFTc&ptchn=NationalGeographic&pltype=content

GET /videoplayback?upn=K5G4Q9SSxms&sparams=cp%2Cid%2Cip%2Cipbits%2Citag%2Cratebypass%2Csource%2Cupn%2Cexpire&fexp=901802%2C909902%2C910206&itag=44&ip=174.0.0.0&signature=21E0E5B299673E323824CF57A002171894FB7FB2.436EFE88A076324348EE506EE4F7921B829B3ADE&sver=3&ratebypass=yes&source=youtube&expire=1335073517&key=yt1&ipbits=8&cp=U0hSSlBSUV9GUUNOMl9ITFVGOkVWUFQ2VmhlM3pY&id=ed899f517b4dea88&ptk=NationalGeographic&oid=IwsLV5nfFTc&ptchn=NationalGeographic&pltype=content HTTP/1.1
Host: o-o.preferred.iad09s10.v6.lscache5.c.youtube.com
User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) AppleWebKit/528.18 (KHTML, like Gecko) Version/4.0 Mobile/7A341 Safari/528.16
Accept: video/webm,video/ogg,video/*;q=0.9,application/ogg;q=0.7,audio/*;q=0.6,*/*;q=0.5
Accept-Language: en-us,el-gr;q=0.8,el;q=0.5,en;q=0.3
Connection: keep-alive
Range: bytes=0-
Referer: http://ec2-174-129-165-112.compute-1.amazonaws.com/7YmfUXtN6og
Cookie: VISITOR_INFO1_LIVE=chOmO5OraFM; PREF=f1=50000000&fms2=10000&fv=11.0.1&fms1=10000; use_hitbox=d5c5516c3379125f43aa0d495d100d6ddAEAAAAw; GPS=1; s_gl=1d69aac621b2f9c0a25dade722d6e24bcwIAAABVUw==; recently_watched_video_id_list=2a655200fc0ce9bfba61234a10b1ab27WwEAAABzCwAAADlkYXlmbDEzSXln

HTTP/1.1 403 Forbidden
Last-Modified: Wed, 02 May 2007 10:26:10 GMT
Content-Type: text/plain
Connection: close
X-Content-Type-Options: nosniff
Date: Sat, 21 Apr 2012 23:11:30 GMT
Server: gvs 1.0