At my job, I'm not the systadmin but a linux programmer. But once in a while the sysadmins (who generally aren't that knowledgeable about linux) ask me for help. Today the sysadmin asked me to allow access to only specified YouTube videos with squid v2.6 (why not 2.7? probably because that's what several predecessors ago installed ...)

I put added lines to squid.conf to allow that one video, then I watched access.log for more URLs that got TCP_DENIED. Eventually I had them all allowed, and that one video played.

acl youtube_allow url_regex ^http://www.youtube.com/v/a17SaWJwBVM$
acl youtube_allow url_regex ^http://www.youtube.com/crossdomain.xml$
acl youtube_allow url_regex ^http://www.youtube.com/get_video_info\?
acl youtube_allow url_regex ^http://s.youtube.com
acl youtube_allow url_regex ^http://www.youtube.com/ptracking\?
acl youtube_allow url_regex ^http://o-o.preferred.*c.youtube.com/videoplayback
http_access allow youtube_allow
acl youtube_domains dstdomain .youtube.com .googlevideo.com
http_access deny youtube_domains 

But on internet explorer 8, http://www.youtube.com/v/a17SaWJwBVM displays a blank window, and nothing turns up in access.log as DENIED. Aside from forcing everyone to use FF (not a bad idea, but possibly beyond our abilities) is there any way to make this viewable by IE users?

Note that we're not trying to cache the video. On FF all the youtube URLs appear as TCP_MISS and that's fine.

  • 1
    try installing fiddler on a computer with internet explorer. fiddler will show you the complete http request and the raw responses. – longneck Jul 2 '12 at 16:54
  • I installed fiddler, and all I found in IE was that the original URL youtube.com/v/a17SaWJwBVM redirected to youtube.googleapis.com, which it fetched twice for some reason, but both seem to have succeeded (response 200). Anything else I should look for? – WarrenBurstein Jul 2 '12 at 17:55
  • PS. I tried fidler on FF and saw that it also redirected to googleapis.com but then it fetched the other URLs that I had previously seen denied in access.log – WarrenBurstein Jul 2 '12 at 17:57
  • did you see anything denied or failed in fiddler on IE? – longneck Jul 2 '12 at 18:37
  • 1
    Are you certain you have completely cleared the IE cache? You might want to make sure you completely clear the browser cache, and then completely kill the IE process so any in-memory caches are also wiped. – Zoredache Jul 2 '12 at 18:56

It may be possible that you are only watching what is currently in your webcache.

As you may be aware any proxy administrator on any network SHOULD acknowledge nocache headers etc... As I remember Youtube states nocache... It's simple netiquette.

If you are a home user simply install the FlashGot Addon in Firefox and save the file locally.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.