@goldenshark Hi, I know this is old but....I want to do the same thing.
So in Squidguard we are supposed to able to block domains or even by specific URL's. On the FLIP side of that, we should be able to whitelist by domain or by URL.
Therefore, what if I block the entire DOMAIN youtube.com, but then WHITELIST a specific youtube video URL?
In theory this should work fine and the only limiting factor here would be THE ORDER that the block or whitelist items are applied by the filter!
So for example, In Squidguard if I block the DOMAIN youtube.com with a Target Category and then I also create a target category to WHITELIST the url, www.youtube.com/mymovie, then why would it not work? I can SET which target category gets applied before the other in my ACL's. I would ASSUME, last one applied wins. So any whitelist item would override the block list.
So in this example, if my BLOCK list is followed by my Whitelist when a request comes in, Youtube would be blocked first, then ALLOWED by my whitelist.
Unfortunately, I could not get this to work. An I have no idea of how squidguard is actually applying filters in this sense. It seems to not be allowing the Whitelist to override the Block list.
Anyone know how these Target Category's work in a hierarchy?
Also, if you really want a mess, apply a default BLACK LIST in Squid and then it seems that ALL the black list filters get applied last and nullify any Target categories you added.
Its not cool, as it is very quirky and sometimes you need to reboot Pfsense to even get the filters to work at all.
MP