Add a way to force google safesearch through the web interface

#1

It would be nice to have a way to enforce google safe search through the settings web interface. Currently, I am using /etc/hosts like this:

#Custom entries
216.239.38.120 www.google.com
216.239.38.120 www.bing.com
216.239.38.120 www.yahoo.com

But they could change the VIP so I’m looking into adding a CNAME to /etc/dsnmasq.conf like this:

cname=www.google.com,forcesafesearch.google.com

0 Likes

#2

Just take it (you modified /etc/hosts) one step further and follow the instructions here.

By using /etc/dnsmasq.d/05-restrict.conf, you ensure your configuration “survives” a pihole update.

If you decide to implement the above referred configuration, you should remove your custom entries from the hosts file.

0 Likes

#3

That’s great thanks! I really like that there is a method in place to survive updates.

I don’t mind updating files, but I think it would still be a nice feature to have a web interface for users who are less comfortable doing so.

Thanks again!

0 Likes