Nimble Package Maestros

    adblock

    1.0.5 • Public • Published

    Hosts File Adblock

    npm version NSP Status

    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 adblock

    Start off by making a backup of your hosts file:

    sudo adblock init

    Then enable and disable adblock as needed

    sudo adblock enable
    sudo adblock disable

    NOTE: 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.

    Keywords

    none

    Install

    npm i adblock

    DownloadsWeekly Downloads

    12

    Version

    1.0.5

    License

    MIT

    Last publish

    Collaborators

    • actuallymentor