Youtube content getting filtered on Squid
-
Youtube's content gets filtered by its SafeSearch headers even though I have selected None on youtube restrictions section on ACL tab of Squid settings.
So after digging a bit I found that its header was getting added on with
none
value and youtube was filtering content on web.I have also found the solution by changing its underlying xml file
squid_nac.xml
here I changed the value from none to empty.Can anyone confirm this that they are also facing this issue. You can use this youtube video as reference. Link
-
@themaharshpatel I am also, I get the blocked by administrator error for some YouTube videos. This is with or without the restrictions turned on in Squid. I have them turned on for my family, again some university lectures are getting blocked and when I disable the restrictions it still is blocked by administrator.
-
So can you trying this fix?
/usr/local/pkg/squid_nac.xml
you need to edit this file.and change this
<fieldname>youtube_restrict</fieldname> <type>select</type> <options> <option><name>None</name><value>none</value></option> <option><name>Moderate</name><value>moderate</value></option> <option><name>Strict</name><value>strict</value></option> </options>
to this
<fieldname>youtube_restrict</fieldname> <type>select</type> <options> <option><name>None</name><value></value></option> <option><name>Moderate</name><value>moderate</value></option> <option><name>Strict</name><value>strict</value></option> </options>
and restart your squid. If works than do let me know. I will open an issue on Redmine.
-
@themaharshpatel thanks I will test soon.
-
@jonathanlee Have you tested?
-
@themaharshpatel when i did implement Squid this was the reason i uninstalled the package. 'Restricted' under every youtube video. It was weird. Considered it a bug as i had safesearch disabled.
This is a great find if it works. Should be added to the documentation.
If its confirmed that it works, i will open a redmine for you if you havent done so already. -
-
@themaharshpatel thanks for this. albeit i am confused. if the header 'none' is being added why is that interpreted as restrictions being turned on?
-
@michmoor Because in its underlying PHP code where it is generating the config file for the squid. It is checking for a null value to skip the content filtration config. But here as there was none mentioned. It was considered as a string and the condition was not getting fulfilled to skip the config generation.
-
testing now
-
@themaharshpatel great find/troubleshooting. simple fix. Maybe it can make it into the new release.
-
@jonathanlee do let us know if it works out! :)
-
@michmoor said in Youtube content getting filtered on Squid:
@themaharshpatel great find/troubleshooting. simple fix. Maybe it can make it into the new release.
Thanks:) Lets see how it works out!
-
Fixed it great find with this!!
-
-
Now Testing with restrictions enabled
Header restrictions functional
Thank !!! this option now has the ability to be enabled and disabled.
-
@themaharshpatel I can confirm this is fixed as well for me. Thanks again !!
-
Redmine issue opened: https://redmine.pfsense.org/issues/13811
Thank you @JonathanLee and @michmoor for testing this. Now, let's hope that the PR gets merged soon! -
@themaharshpatel I hope your ticket gets some movement. Its an obvious coding flaw that truthfully...shouldve been picked up years ago but i suppose it shows how often the Squid package gets used by people. Do you know if theres a way to notify folks? Its still sitting there with no acknowledgement.
-
@michmoor said in Youtube content getting filtered on Squid:
@themaharshpatel I hope your ticket gets some movement. Its an obvious coding flaw that truthfully...shouldve been picked up years ago but i suppose it shows how often the Squid package gets used by people. Do you know if theres a way to notify folks? Its still sitting there with no acknowledgement.
There might be no acknowledgment due to holidays. And this is the first time I am opening an issue so I don't know about notifying the mods.