Maybe I should start by explaining what a hosts file is. But you can read all about it here. The average user probably shouldn’t mess with the hosts file unless…
Gas Mask is a hosts file manager, intended for editing hosts files and switching between such files. The editor includes syntax highlighting and it has 'find', 'substitutions' and 'transformations' functions. Errors can be tracked by using syntax highlighting. The 'substitutions' section includes 'smart copy-paste', 'smart links' and 'text. Mar 22, 2018 Fortunately, Mac owners can use Gas Mask by Clockwise OU to create and edit multiple hosts file. The hosts file manager runs on OS X 10.6 or later and even supports macOS High Sierra. The most salient feature of Gas Mask is syntax highlighting.
ALSO READHOW TO: Use the Hosts File on Linux to Block Ads, Tracking, Malware Domains and Annoyances
You can use the hosts file to block known malware, advertising or other unwanted domains. In macOS you can find the hosts file in /etc/hosts.
To block a domain all you need to do is to append 0 example.com or 0.0.0.0 example.com or 127.0.0.1 example.com to your hosts file.
Luckily you don’t have to do this manually because there’s a bunch of hosts lists available for everybody to use. See StevenBlack/hosts, someonewhocares.org and l1k/osxparanoia/blob/master/hosts
So how do you manage your macOS’ hosts file? First always backup the original file. You can do that by copying the file to a different location or create a copy in the same location and rename it to hosts.bak ( or something similar that allows you to easily identify it as your backup ).
Gas Mask Mac Os
Then you can create a second copy on your desktop, open the file with TextEdit, edit the file, save it and copy the edited hosts file back to the original location.
Gas Mask For Mac Os X
You can use Gas Mask. A simple, free and open source hosts file manager for macOS.
With Gas Mask, you can easily edit your hosts file, create multiple hosts files and switch between them on the fly. You can create three types of host files
- Local. Created and saved on your Mac.
- Remote. Create hosts file from URLs like the ones mentioned above
- Combined. Combines local and remote hosts files.
When you change the hosts file, Gas Mask will also flush the DNS automatically.
That’s pretty much it. Gas Mask is a simple and intuitive hosts file manager that does its job.
Gas Mask For Mac Os X
Gas Mask Mac Os X
NOTE: You can use this method in conjunction with an Ad-Blocker. If you are not comfortable messing with the host file, I advise you on using an Ad-Blocker anyway. There’s plenty of them available out there. I suggest using uBlock Origin