Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create YouTube Option/Remove hard-coded variables #1

Open
jaykepeters opened this issue Sep 13, 2019 · 0 comments
Open

Create YouTube Option/Remove hard-coded variables #1

jaykepeters opened this issue Sep 13, 2019 · 0 comments

Comments

@jaykepeters
Copy link
Owner

Reference

Firstly thanks jaykepters for your efforts in getting Safe Search working with Pi-hole.

I can confirm with samad that you need to append the cname code above to the /etc/dnsmasq.d/05-restrict.conf file for YouTube restriced mode to work.

Looking at jay’s script it appears the conditional code below is not evaluating to “True” so the YouTube domains are not being echoed to the 05-restrict.conf file. I haven’t tested it but removing the “if” statement will allow the for loop to execute and propagate the conf file. Not sure if that helps?

# YouTube SafeSearch 
if [ "$YOUTUBE" == "True" ]; then
    for line in "${ytSS[@]}"
        do echo "$line"  >> "${file}"
    done
fi

Also jay I saw you post requesting a list of search engines so we can block any non Safe Search engines. I think I may have something that might be of use?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant