[squid-users] Squid + Squidguard Youtube URL video filtering

Alex K rightkicktech at gmail.com
Thu Aug 16 22:05:10 UTC 2018


On Thu, Aug 16, 2018, 22:51 Roberto Carna <robertocarna36 at gmail.com> wrote:

> Dear Amos, I've tried to sniff the HTTP requests when I ask for:
>
> https://www.youtube.com/embed/ff9sDLGtnK8?rel=0&showinfo=0
>
> After that I've created a Squidguard exception list as below:
>
> ytimg.com
> googlevideo.com
> googleapis.com
> www.youtube.com/embed/ff9sDLGtnK8?rel=0&showinfo=0

You may need to escape special characters (? is one). I would try:
www.youtube.com/embed/ff9sDLGtnK8
<http://www.youtube.com/embed/ff9sDLGtnK8?rel=0&showinfo=0>*

I assume you are putting above at the urls definition and rebuilding the
file?

What is access.log reporting?


>
> But I can't see the video yet.
>
> Please I need to know if using Squidguard it's just impossible to do
> this exception, so in this case I forget it.
>
> Thanks a lot again!!!
>
>
> 2018-08-16 10:17 GMT-03:00 Amos Jeffries <squid3 at treenet.co.nz>:
> > On 17/08/18 00:43, Roberto Carna wrote:
> >> Dear, I have Squid + Squidguard working OK.
> >>
> >> Squidguard is filtering the entire www.youtube.com website.
> >>
> >> But now I have to permit just one video from Youtube:
> >>
> >> https://www.youtube.com/embed/ff9sDLGtnK8?rel=0&showinfo=0
> >>
> >> I have added the below URL as an exception in Squidguard:
> >>
> >> www.youtube.com/embed/ff9sDLGtnK8?rel=0&showinfo=0
> >>
> >> but after that I can't see it, still blocked.
> >>
> >> How can I enable just this URL from Squidguard preferently blocking
> >> the rest of Youtube ???
> >
> > Unfortunately only with a great deal of difficulty.
> >
> > The "?v=..." and "/embed/..." URLs are just public identifiers to access
> > the YouTube APIs. At the HTTP level they result in a quite long series
> > of sub-requests, redirections and the like bouncing all over the
> > youtube.* and googlevideos.* and googleapis.* domains.
> >  Yes all of them are involved multiple times. So whitelisting is an
> > all-or-nothing prospect, with other G services being implicitly
> > whitelisted as side effects.
> >
> >
> > Also, whenever the way to decipher the above maze of traffic gets
> > published so we can do things like what you ask. YT shortly afterwards
> > change how it operates - usually towards even more complexity. This has
> > happened too many times to be coincidence IMO.
> >
> >
> > Amos
> > _______________________________________________
> > squid-users mailing list
> > squid-users at lists.squid-cache.org
> > http://lists.squid-cache.org/listinfo/squid-users
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20180817/83ed0829/attachment-0001.html>


More information about the squid-users mailing list