[squidGuard ] block youtube, but video from a specific user/channel
-
It seems it's not possible to block youtube, but video embedded in whitelisted domains see: http://forum.pfsense.org/index.php/topic,40841.0/topicseen.html
but I read this about another opensource based proxy
You can keep youtube blockeb, but allow video related to a particular user / youtube channel
here is the code how-to1.) Browse to 'guardian > filtering> user defined categories' via the drop-down menu.
Under the 'current categories' heading click the checkbox for 'custom blocked content' then click edit.
Expand the advanced options by clicking 'Advanced >>'Copy the following into the 'Absolute and weighted phrases' area:
Code:
(YouTube - Broadcast Yourself)(101)
(youtube)(user_profile)(user_subs)(120)
(youtube)(class="profile-box" id="user_)(120)
(2009 YouTube, LLC)(120)
Click the add button, and then the 'apply changes' button which appears.
–-------------------------------------------------------------------------------
2.) Now select 'custom allowed content' and click 'edit'.
Expand the advanced options by clicking 'Advanced >>'
Again, we add some rules to 'Absolute and weighted phrases':Code:
(youtube)(watchUsername = 'YOUTUBEUSER')(300)
Where YOUTUBEUSER is the name of the user/channel you wish to allow
e.g. (youtube)(watchUsername = 'DowningSt')(300)
Use one of these lines per youtube channel.Click 'Add', then 'apply changes'.
3.) Next we'll create a new category.
Remain in the 'user defined categories' section and fill in the following:
Name: YouTube
Filter Type: Content and URL filtering
Comment: youtube.com and subdomainsIn 'Domains and URLs' simply add:
Code:youtube.com
Click Add, and then 'Apply changes'.
4.) Now browse to the filters tab near the top of the page.
Fill in the following:
Name: YouTube domains
Comment: YouTube filter – use with Skip URL Blocking
Type: Content and URL filteringFrom the tree of categories below, select 'User defined > YouTube'
Click Add, Then 'Apply changes'
5.) Now browse to the 'Policy' tab.
Under policy settings:
Group: All groups
Filter: YouTube domains
Time Period: Always
Action: Skip URL blocking (important)
Comment: YouTube exemption (optional)Check the box 'Enabled'.
Click 'Add', then 'Apply changes'.
6.) This isn't entirely necessary, but you may wish to force a reset.
Navigate to guardian>proxy>webproxy
Leave all settings unchanged, hit the 'Save and restart' button.
DONE!
NB: By default the flash video filetype .flv is blocked.
To remedy this, head to 'guardian > filtering> filters'. Edit the 'File security' filter, de-select the 'Video' component then click 'Add' and 'Apply changes'I think this is a good starting point to bring this feature to pfsense
Is there somone more skilled than me, who can detect if pfsense need to sport little enhancements to be able to do it and write an how-to for pfsense guiregards