enforce google safe search on linux
Some users would like google safe search to be enforced. If you would like this on a platform other than linux, please create a separate suggestion.
AdminJon (Founder, Pluckeye) commented
Jon, please make this feature available, it would be of great help.
teal hill commented
Google's "Lock SafeSearch" feature is another way that an individual user can force SafeSearch on. But I doubt that "Lock SafeSearch" affects "privacy mode" or "incognito mode" windows.
On Google Chrome at least, I think there are per-machine ways to disable incognito mode.
teal hill commented
Long comment here.
Here are some possible options. The first option might be best, because it might support both Google and YouTube.
==== Enforcing safe searching on Google and YouTube using a hosts file ====
You may be able to enforce safe searching on Google, Google Images, and YouTube. And you may be able to do this simply by programmatically editing a machine's hosts file.
I believe that Windows, Mac OS, and *nix each include a hosts file.
The IP address of forcesafesarch.google.com is: 18.104.22.168
The IP address of restrict.youtube.com is: 22.214.171.124
I don't work at Google, so I can't guarantee that these IP addresses will never change. If they change, I guess users could switch to using Bing. And then maybe you could push out update notifications to users telling them that there's an update available which fixes Google.
==== Enforcing safe searching on YouTube by inserting HTTP headers requests ====
Insert this HTTP header into each request: YouTube-Restrict: Strict
I learned the above from: https://support.google.com/a/answer/6214622?hl=en
I have no idea whether or not it's possible to do something similar for Google Web Search.
==== Enforcing safe searching on Google (but not YouTube) using URL-modifying regexps ====
It looks like e2guardian can enforce Google SafeSearch, as well as the safe-searching features on Yahoo and some other search engines. This is done using URL-modifying regular expressions. Install e2guardian, open up the https://github.com/e2guardian/e2guardian/blob/master/configs/lists/urlregexplist file which it installed on your computer, and uncomment the relevant lines.
The above file doesn't include any lines to force YouTube's Restricted Mode, and it may not be able to. In a school, it used to be possible to a URL-modifying regexp to force students to use YouTube for Schools -- see http://www.comsift.com/white-papers/ytfs_whitepaper.pdf -- but I'm not sure whether or not this is still true. Anyway, I'm not in any school. :)