How to selectively filter videos from YouTube with Squid

squidyoutube

Here's the scenario: I have a 7 and 4 year old and I'm setting up a computer for them to use which would include unsupervised times. I've set up squid so that they can only get to websites that are in my whitelist for them, but I'd like to make the videos from Khan Academy available as well. The problem is that the videos are all hosted on YouTube and I definitely don't want to allow unfettered access to that. How can I do that?

Update: Ideally I would like to allow the embedded video on the KhanAcademy page. That means that I probably don't have anything to filter on aside from the youtube link itself. Maybe I could approach this a different way and filter out pages that contain the start of the YouTube title tag on the page:

"<title>\sYouTube - "

I'm thinking I may need to incorporate DansGuardian to accomplish that…

Best Answer

I'm not sure if it will fit the bill for everything, but I have had good luck with DansGuardian It lets you set up scoring, sort of like Bayesian filtering used to block spam emails. It might be difficult to filter youtube videos, since there is little text content to work with, but it might be worth a try.

Related Question