Can anyone help me with the Hosts file?

I'm bullet-proofing my new Mac. I want to set up a Hosts file before I ever even open Safari. I downloaded Gas Mask, and I have a decent hosts file, but I don't know where to put it, whether it kicks in on all logins (i.e., right at boot up) or if it has to be put somewhere for each login, I don't know what the extension should be, and I don't know whether Gas Mask automatically puts it in the right place. Also, I really want to test it by putting a dummy IP address in it (for something like Amazon) and seeing if it effectively blocks Amazon. How do I do that? The problem with going to stackoverflow etc. for these queries is that they know too much. I need an ELI5 on this, if anyone can help. Thanks! 2015 MacBook Pro retina, latest version of Sierra.

Posted Apr 29, 2017, 3:52 PM UTC

05
alcal•

Why??

2
Flakmaster92•

Extra security. Hosts file modification is pretty standard for blocking known malicious domains

1
alcal•

Sure. Probably overkill, in my mind.

1
Azazelle•

If you're so concerned about security, kudos to you. However, instead of relying on the host file I would suggest getting yourself a firewall. If you're interested in a firewall solution, state your budget and I can suggest a cheap software or a cheap (relatively) hardware firewall.

2
hofdu465•

ELI5; don't modify hosts,

If you want to break DNS then do it at the server level either with a self-hosted DNS server, or a router that supports DNS filtering, or a 3rd party service like OpenDNS that suppprts DNS filtering

2
[deleted]•

[removed]

1
[deleted]•

[removed]

1