I want to completely disallow duckduckgo.com
on my computer and only allow safe.duckduckgo.com
to be reachable in any browser (on macOS High Sierra).
My initial thought was to somehow specify that in the hosts file
(can be opened using sudo nano /etc/hosts
). However, if I add duckduckgo.com (using 127.0.0.1 duckduckgo.com
), then I can't reach safe.duckduckgo.com either.
A different example would be to block google.com
but still allow scholar.google.com
.
How can I do that?
(Or is there perhaps a better way than doing it via the hosts file?)