Efficient AdBlock in MacOS
Hosts
redirects are the most efficient way to block unwanted network traffic;
they essentially tell your OS to a system level redirect from the targeted host
(eg.
Luckily there are some very kind people who curate and maintain Hosts
files we
can swap out with our own and will provide all the ad-blocking magic we want:
- Download and install GasMask.
- In GasMask, create a new “Remote” using StevenBlack’s amazing consolidated hosts file: https://github.com/StevenBlack/hosts. Here is a Direct Link to the hosts file you can import to GasMask.
- Add any additional remote hosts you may want.
- Create a “Combined” hosts lists consisting of your “Original File” and any you added.
- Activate it.
- Done!
If you experience broken sites that you need to temporarily use, you can click on the GasMask icon now found in the top of your screen and reactivate your “Original File” to disable quickly go back to your vanilla setup.