Re: [squid-users] only few youtube videos regex

From: Eliezer Croitoru <eliezer_at_ngtech.co.il>
Date: Tue, 21 Jan 2014 20:11:40 +0200

Since youtube videos are based on the main url like for example:
http://www.youtube.com/watch?v=pqky5B179nM

So each and every url which directs to this url using the video id if it
is the video you want to block should be blocked.
What python script have you tried to use?
If you would give me the basic structure I would be able to do something
with it.

For now the code I do have is at:
http://wiki.squid-cache.org/EliezerCroitoru/Drafts/PythonHelper

If there is someone out there that has ada language code for a similar
helper I will be happy to see it.

All The Bests,
Eliezer

On 21/01/14 14:43, amphisia pui wrote:
> Now I should allow 10 videos on youtube site but deny all others.
> I tried to use "urlpath_regex" and a python script as
> "redirect_program" but without success.
>
> Please can you suggest the best way to do it knowing only the youtube video id?
>
> Thanks to all
>
> AP
Received on Tue Jan 21 2014 - 18:12:18 MST

This archive was generated by hypermail 2.2.0 : Wed Jan 22 2014 - 12:00:05 MST