# Add a way to force google safesearch through the web interface

**URL:** <https://discourse.pi-hole.net/t/add-a-way-to-force-google-safesearch-through-the-web-interface/2296>\
**Category:** Customizing Pi-hole\
**Created:** [March 19, 2017, 4:07am UTC](https://discourse.pi-hole.net/t/add-a-way-to-force-google-safesearch-through-the-web-interface/2296 "2017-03-19T04:07:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfmjos](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mfmjos](https://discourse.pi-hole.net/u/mfmjos)\
**Post date:** [March 19, 2017, 4:07am UTC](https://discourse.pi-hole.net/t/add-a-way-to-force-google-safesearch-through-the-web-interface/2296/1 "2017-03-19T04:07:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jpgpi250](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jpgpi250/32/286_2.png) [@jpgpi250](https://discourse.pi-hole.net/u/jpgpi250)\
**Post date:** [March 19, 2017, 8:49am UTC](https://discourse.pi-hole.net/t/add-a-way-to-force-google-safesearch-through-the-web-interface/2296/2 "2017-03-19T08:49:47Z")

</div>

Just take it (you modified /etc/hosts) one step further and follow the instructions [here](https://discourse.pi-hole.net/t/use-dns-to-force-youtube-into-restricted-mode-and-pi-hole/1996/15).

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.

---

<div class="post-metadata">

**Author:** ![mfmjos](https://discourse-cdn.pi-hole.net/letter_avatar_proxy/v4/letter/m/c2a13f/32.png) [@mfmjos](https://discourse.pi-hole.net/u/mfmjos)\
**Post date:** [March 19, 2017, 2:25pm UTC](https://discourse.pi-hole.net/t/add-a-way-to-force-google-safesearch-through-the-web-interface/2296/3 "2017-03-19T14:25:49Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![jfb](https://discourse-cdn.pi-hole.net/user_avatar/discourse.pi-hole.net/jfb/32/4332_2.png) [@jfb](https://discourse.pi-hole.net/u/jfb)\
**Post date:** [September 12, 2021, 3:19am UTC](https://discourse.pi-hole.net/t/add-a-way-to-force-google-safesearch-through-the-web-interface/2296/4 "2021-09-12T03:19:51Z")

</div>

2 posts were merged into an existing topic: [SafeSearch Not Being Implemented](https://discourse.pi-hole.net/t/safesearch-not-being-implemented/49548/2)
