1.0.5 • Published 9 years ago
adblock v1.0.5
Hosts File Adblock
Blocks ad & malware URLs system wide in all applications, not just in the browser. Loads known advertising and malware hosts from this github project to the Mac OS X /etc/hosts file. This results in an incapacity to load these hosts, blocking ads in all programs system wide.
Compatibility: tested on Mac OSX Sierra.
Getting started
Make sure to have NodeJS installed. Then use npm to globally install adblock:
npm install -g adblockStart off by making a backup of your hosts file:
sudo adblock initThen enable and disable adblock as needed
sudo adblock enable
sudo adblock disableNOTE: The hosts file is a system file, this is why adblock needs to be run with sudo.
Caveats
The hosts file blocks system wie network calls. If you need to be able to reach certain ad/tracking domains (e.g. Google Analytics) you will have to disable adblock.