How to selectively filter videos from YouTube with Squid

5

3

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...

Daryl Hanson

Posted 2011-06-09T01:15:11.090

Reputation: 153

Did you find any success with any approach? – Faust – 2016-02-09T03:27:20.043

@Faust: I did not. I played around a little without success, but eventually gave up. – Daryl Hanson – 2016-02-09T03:54:25.517

Answers

0

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.

Alex

Posted 2011-06-09T01:15:11.090

Reputation: 331

I suppose the text would be From: khanacademy or by khanacademy..so might be simple. not sure how to do that though.. – barlop – 2011-06-09T02:26:48.847

I doubt this will work because much of the text on the youtube page is actually loaded by AJAX calls after the page load and it would be difficult to filter on. – Caleb – 2011-06-09T08:50:51.153

The other problem is that the video is embedded in the KhanAcademy page, so there really isn't any text to filter on. – Daryl Hanson – 2011-06-10T02:09:43.120