An adblocker that adds known ad and malware domains to the hosts file.
npm install adblockBlocks 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.
Make sure to have NodeJS installed. Then use npm to globally install adblock:
``shell`
npm install -g adblock
Start off by making a backup of your hosts file:
`shell`
sudo adblock init
Then enable and disable adblock as needed
`shell`
sudo adblock enable
sudo adblock disable
NOTE: The hosts file is a system file, this is why adblock needs to be run with `sudo``.
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.