These two methods will enforce Google’s safesearch on all computers on your network (keep in mind that this won’t work for cell phones or other devices using cellular data). This is specific to any router using the DDWRT firmware. DDWRT is an open source firmware that is available to be flashed on a number of routers (check the DDWRT website for a list of compatible routers and installation details)
The simplest way to do this is to have your router edit your hosts file on each startup as follows:
echo '126.96.36.199 www.google.com 188.8.131.52 encrypted.google.com 184.108.40.206 google.com' >> /etc/hosts restart_dns
What does this do ? It redirects those urls to the ip address of forcesafesearch.com. Your hosts file will be wiped out on every reboot of the router but the script will restore the settings.
While this is a very easy way of forcing safesearch, the disadvantage is that Google could change the ip address of safesearch. In addition, this method doesn’t permit wild cards.
This method permits wildcards:
WP-CLI is a great command line tool to help you manage Wordpress. I had trouble…
Tired of downloading zip or tar files, decompressing, and then having to delete the compressed…
The Microsoft Virtual Hard Disk - An Ideal Backup Image Format Microsoft's Virtual Hard…