Code Monkey home page Code Monkey logo

adblock's Introduction

Block any outgoing request to ad and tracker servers, system-wide.

Usage

$ sudo adblock [--force] [on]	# installs or updates the blocklist, --force to ignore lack of updates
$ sudo adblock off	# deactivates blocking, so you can access, for example, affiliate links

Yes, you'll need to sudo, since you impact DNS resolution for the whole system.

Installation

On OS X with brew

If you're on OS X and use Homebrew:

brew install mattisg/mattisg/adblock

Other systems

You can download this repo as a ZIP and install the adblock script anywhere you want, or use this one-liner:

sudo mkdir -p /usr/local/bin && sudo curl -\# https://raw.githubusercontent.com/MattiSG/adblock/master/adblock --output /usr/local/bin/adblock && sudo chmod u+x /usr/local/bin/adblock

Copy and paste the above to a Terminal prompt and press enter.

What does it block?

Ads, shock sites, hijack sites, malware servers, click trackers, popup traps (sites that make you confirm on and on), spam sending servers…

If you still see some ads after installing, please identify the domain that serves them, and send a request to Dan Pollock at [email protected].

How does it work?

This script is a simple wrapper around downloading and installing Pollock’s hosts file.

Dan Pollock maintains a list of servers to block based on community reports. This list is then simply formatted as a hosts file.

A hosts file maps hostnames (i.e. domains) to IPs. It does the same job as a DNS, but the lookup is made entirely locally.

This feature is used to map all the domains to blacklist to the 0.0.0.0 IP meta-address.

adblock's People

Contributors

mattisg avatar odtvince avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.