Force safe search in search engines

LoneGeek

New member
Local time
12:35 PM
Messages
26
I'd like to force google (and other popular search engines) to use strict safe search for parental control reasons via the hosts file, so if anyone knows the correct ip address's/domains i'd appreciate it.
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus
OS
Windows 7 Pro x64
What is safe search? What's safe for one person may not be for another using opedns may do what you want
 

My Computer My Computer

Computer type
PC/Desktop
OS
win 8 32 bit
Meaning it will block adult content automatically
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus
OS
Windows 7 Pro x64

My Computer My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Home made Desktop
OS
Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
CPU
Intel i7-6800K @ 4.3
Motherboard
ASUS X-99 Deluxe II
Memory
Corsair Platinum 16 gig @2400
Graphics Card(s)
EVGA GTX 1070 OC
Monitor(s) Displays
Asus 27" LED LCD/VE278Q
Screen Resolution
1920-1080 or 1280-720 HDMI
Hard Drives
INTEL SSD 730-240 Gb Sata 3.0/
PSU
EVGA Platium 1200W
Case
Phanteks Luxe Tempered Glass 8 fans/ one radiator
Cooling
XSPC/ Water Cooled CPU
Keyboard
Das 4 Professional
Mouse
Logitech M705/MX Anywhere 2-S
Internet Speed
100 mbits
Antivirus
Microsoft Security Essentials/ Malwarebytes Premium 3.0/ SAS
Browser
I.E. 11 default/Firefox/ ISP Time Warner Cable/Spectrum
Other Info
LG BluRay Burner/
Sound system-KLipsch-THX/
Icy Dock ssd Hot Swap bays.
Can someone do me a favor if you have a VM ready to go? I found this bat file online but it doesn't work for me, so I'd like to make sure it's not my machine and it actually doesn't work.




contents
Code:
@echo off
findstr "216.239.38.120 www.google.com" C:\Windows\System32\drivers\etc\hosts
if %errorlevel%==0 (
goto end
)
@echo #forcesafesearch>> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 www.google.com>> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ad"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ae"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.af"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ag"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ai"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.al"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.am"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.ao"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ar"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.as"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.at"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.au"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.az"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ba"]Google[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.bd"]www.google.com.bd[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.be"]www.google.be[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.bf"]www.google.bf[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.bg"]www.google.bg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.bh"]www.google.com.bh[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.bi"]www.google.bi[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.bj"]www.google.bj[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.bn"]www.google.com.bn[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.bo"]www.google.com.bo[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.br"]www.google.com.br[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.bs"]www.google.bs[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.bt"]www.google.bt[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.bw"]www.google.co.bw[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.by"]www.google.by[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.bz"]www.google.com.bz[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ca"]www.google.ca[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.cd"]www.google.cd[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.cf"]www.google.cf[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.cg"]www.google.cg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ch"]www.google.ch[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ci"]www.google.ci[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.ck"]www.google.co.ck[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.cl"]www.google.cl[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.cm"]www.google.cm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.cn"]www.google.cn[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.co"]www.google.com.co[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.cr"]www.google.co.cr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.cu"]www.google.com.cu[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.cv"]www.google.cv[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.cy"]www.google.com.cy[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.cz"]www.google.cz[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.de"]www.google.de[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.dj"]www.google.dj[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.dk"]www.google.dk[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.dm"]www.google.dm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.do"]www.google.com.do[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.dz"]www.google.dz[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ec"]www.google.com.ec[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ee"]www.google.ee[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.eg"]www.google.com.eg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.es"]www.google.es[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.et"]www.google.com.et[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.fi"]www.google.fi[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.fj"]www.google.com.fj[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.fm"]www.google.fm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.fr"]www.google.fr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ga"]www.google.ga[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ge"]www.google.ge[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.gg"]www.google.gg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.gh"]www.google.com.gh[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.gi"]www.google.com.gi[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.gl"]www.google.gl[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.gm"]www.google.gm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.gp"]www.google.gp[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.gr"]www.google.gr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.gt"]www.google.com.gt[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.gy"]www.google.gy[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.hk"]www.google.com.hk[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.hn"]www.google.hn[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.hr"]www.google.hr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ht"]www.google.ht[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.hu"]www.google.hu[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.id"]www.google.co.id[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ie"]www.google.ie[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.il"]www.google.co.il[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.im"]www.google.im[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.in"]www.google.co.in[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.iq"]www.google.iq[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.is"]www.google.is[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.it"]www.google.it[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.je"]www.google.je[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.jm"]www.google.com.jm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.jo"]www.google.jo[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.jp"]www.google.co.jp[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.ke"]www.google.co.ke[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.kh"]www.google.com.kh[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ki"]www.google.ki[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.kg"]www.google.kg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.kr"]www.google.co.kr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.kw"]www.google.com.kw[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.kz"]www.google.kz[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.la"]www.google.la[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.lb"]www.google.com.lb[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.li"]www.google.li[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.lk"]www.google.lk[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.ls"]www.google.co.ls[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.lt"]www.google.lt[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.lu"]www.google.lu[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.lv"]www.google.lv[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ly"]www.google.com.ly[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.ma"]www.google.co.ma[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.md"]www.google.md[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.me"]www.google.me[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.mg"]www.google.mg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.mk"]www.google.mk[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ml"]www.google.ml[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.mm"]www.google.com.mm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.mn"]www.google.mn[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ms"]www.google.ms[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.mt"]www.google.com.mt[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.mu"]www.google.mu[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.mv"]www.google.mv[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.mw"]www.google.mw[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.mx"]www.google.com.mx[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.my"]www.google.com.my[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.mz"]www.google.co.mz[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.na"]www.google.com.na[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.nf"]www.google.com.nf[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ng"]www.google.com.ng[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ni"]www.google.com.ni[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ne"]www.google.ne[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.nl"]www.google.nl[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.no"]www.google.no[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.np"]www.google.com.np[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.nr"]www.google.nr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.nu"]www.google.nu[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.nz"]www.google.co.nz[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.om"]www.google.com.om[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.pa"]www.google.com.pa[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.pe"]www.google.com.pe[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.pg"]www.google.com.pg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ph"]www.google.com.ph[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.pk"]www.google.com.pk[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.pl"]www.google.pl[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.pn"]www.google.pn[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.pr"]www.google.com.pr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ps"]www.google.ps[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.pt"]www.google.pt[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.py"]www.google.com.py[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.qa"]www.google.com.qa[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ro"]www.google.ro[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ru"]www.google.ru[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.rw"]www.google.rw[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.sa"]www.google.com.sa[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.sb"]www.google.com.sb[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.sc"]www.google.sc[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.se"]www.google.se[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.sg"]www.google.com.sg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.sh"]www.google.sh[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.si"]www.google.si[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.sk"]www.google.sk[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.sl"]www.google.com.sl[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.sn"]www.google.sn[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.so"]www.google.so[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.sm"]www.google.sm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.sr"]www.google.sr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.st"]www.google.st[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.sv"]www.google.com.sv[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.td"]www.google.td[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.tg"]www.google.tg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.th"]www.google.co.th[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.tj"]www.google.com.tj[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.tk"]www.google.tk[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.tl"]www.google.tl[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.tm"]www.google.tm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.tn"]www.google.tn[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.to"]www.google.to[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.tr"]www.google.com.tr[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.tt"]www.google.tt[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.tw"]www.google.com.tw[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.tz"]www.google.co.tz[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.ua"]www.google.com.ua[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.ug"]www.google.co.ug[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.uk"]www.google.co.uk[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.uy"]www.google.com.uy[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.uz"]www.google.co.uz[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.vc"]www.google.com.vc[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.ve"]www.google.co.ve[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.vg"]www.google.vg[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.vi"]www.google.co.vi[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.com.vn"]www.google.com.vn[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.vu"]www.google.vu[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.ws"]www.google.ws[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.rs"]www.google.rs[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.za"]www.google.co.za[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.zm"]www.google.co.zm[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 [URL="http://www.google.co.zw"]www.google.co.zw[/URL] >> C:\Windows\System32\drivers\etc\hosts
@echo 216.239.38.120 www.google.cat>> C:\Windows\System32\drivers\etc\hosts
@echo #end of forcesafesearch>> C:\Windows\System32\drivers\etc\hosts
 
Last edited by a moderator:

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus
OS
Windows 7 Pro x64
The problem is that only Google so they can use any other search you don't have this problem using open DNS it's a catch all
 

My Computer My Computer

Computer type
PC/Desktop
OS
win 8 32 bit
The problem is that only Google so they can use any other search you don't have this problem using open DNS it's a catch all

I do have OpenDNS and DNSCrypt, plus I'm blocking a big list of other search engines... I just wish that bat file would work. I don't want to manually add all those google domains if I can help it :eek:
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus
OS
Windows 7 Pro x64
OpenDNS is the way to go as the issue you are attempting to solve is an extremely fluid one, In a situation where the "bad" sites are changing continuously your filters have to do the same, and although this is not actually possible, a major site such as as OpenDNS, will always be "better" than any one person can achieve.

I would also set up Family Safety / Parental controls to use a whitelist suitable for the age of your Children, (either an account each or a single account suitable for the youngest), / your wishes ( there are lists available online but the actual choice must always be yours) - if they wish to visit a site not in the Whitelist they will need to ask you, and you can check the site and decide.

This is a draconian measure but is the safest method available (rather than block the sites that are not allowed' (that you are aware of), you only allow those you are happy with after you have checked. If one of the children should circumvent the system in some way then the OpenDNS system, (Correctly set-up) works as a catch all to prevent issues.

The parental controls can also control a lot of the functionality of windows and also the software that the child is able to run (also available as a WhiteList, rather than a blacklist), so gives another layer of protection.

One other thing, If one of your Whitelist sites should become hacked or otherwise not meet content acceptance levels you have set in OpenDNS then it will be blocked for you automatically
 

My Computers My Computers

System One System Two

  • Computer type
    PC/Desktop
    Computer Manufacturer/Model Number
    ChillBlast - Custom to my design
    OS
    Windows 11 Pro x64 [Latest Release and Release Preview]
    CPU
    Ryzen 9 5950X, 3.8 - 5.2 MHz
    Motherboard
    Asus Prime X570-Pro
    Memory
    64GB [2 x 32GB] DDR4 3200MHz
    Graphics Card(s)
    4GB NVIDIA GEFORCE GTX 1650 Ti
    Sound Card
    On-board SPDIF to 5.1 System + HDMI [5.1 system]
    Monitor(s) Displays
    32" UHD 32 Bit HDR Monitor + 43" UHD 4K 32Bit HDR TV
    Screen Resolution
    2 x 3840 x 2160 @60Hz
    Hard Drives
    1TB M2 SSD OS, 500GB Fast Access SSD, 2 x 8TB Data + Various Externals from 1TB to 4TB, 10TB NAS
    PSU
    NZXT C750 80 PLUS Gold 750W Modular PSU
    Case
    Workstation Case [Matt Black]
    Cooling
    NZXT Kraken X63 280mm CPU Cooler +2x Quiet Case fans
    Keyboard
    Logitech Wireless MX Keys & K400 + others
    Mouse
    Logitech Wireless MX Master 3S
    Internet Speed
    920 MB Down 50 MB Up
    Antivirus
    BitDefender Total Security Pro
    Browser
    Chrome (always run latest Non-Beta)
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    Samsung 10.2" tablet
    Blackview TAB 8 4G Android Tablet c/w Keyboard
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Dell XPS 17 10750H
    OS
    Windows 11 Pro x64 Latest RP
    CPU
    Intel I7 10750H 5.0GHz
    Motherboard
    Dell XPS
    Memory
    32GB [2x16GB] DDR4 2933 MHz
    Graphics Card(s)
    nVidia GTX1650Ti 4 GB GDDR6
    Sound Card
    Stock [Realtek] 4 Speaker
    Monitor(s) Displays
    17" IPS UHD+ Infinity Edge Touchscreen
    Screen Resolution
    3840 x 2400
    Hard Drives
    2TB M2 NVMe, 4TB External + various 500GB & 1TB External NVMe (also have access to spinner HDD from
    PSU
    Stock
    Case
    Stock XPS Aluminium & Carbon Fibre
    Cooling
    Stock - Active Fan Control
    Keyboard
    Backlit + Various Logitech
    Mouse
    Stock Track Pad + Logitech MX Trackball
    Internet Speed
    72 MB Down 18MB Up
    Browser
    Chrome
    Other Info
    Also run ...
    Laptop - Quad 8GB - Windows 10 Pro x64
    Nexus 7 Android tablet x2
    10.2" tablet
    Sony Z3 Android Smartphone
    Wacom Intuos Pro Medium Pen Pad
    Wacom Intuos Pro Small Pen Pad
    Wacom Expresskeys Remote
    Loopdeck+ Graphics Controller
    Shuttle Pro v2 Control Pad
    10TB NAS
I appreciate the comments, but what I want to do (Original Post) works very well alongside OpenDNS...I only have a couple things to figure out...
#1 When I try to redirect other popular search engines to google (safe search) I get a 404 error, now it still technically solves my issue with blocking other search engines, but I wish it just redirected them to google with safe search forced (no adult content/images will show)

#2 I would like to confirm that the bat file I posted either works (something in my machine is blocking it) or it doesn't work (does someone here know how to create one that works with all of google's domains added to the hosts file? I'd really appreciate that)

Now let me show you what happens if someone were to try to search for adult stuff (typically porn etc)

Results (images)

The images in the link above clearly shows that no adult content can be viewed in google/youtube, now nothing is 100%, but this should do the trick along with my custom settings in OpenDNS. THE COOL THING IS, I DON'T HAVE TO INSTALL ANYTHING!
I almost forgot, I have this same setup on my son's pc's, the only difference from our Family PC is I use a neat utily called DNS Angel and I use Yandex DNS which also forces safe search on google.

This what my hosts file looks like for anyone interested...
I have to add more google domains either manually or with a bat file (if someone can show me how to make it or create it for me I'd be very grateful)


images
 

My Computer My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Asus
OS
Windows 7 Pro x64
Back
Top