Blocking website ads with a hosts file

Blocking website ads with a hosts file

A simple file that maps IP addresses to host names, how can it help block ads online? The website owner also puts on their webpages a marketing script, along with some tags to hold the ads themselves. When you visit the webpage, the marketing script loads, pulling information the marketer already has, and populates the

Of course, this is very simplified and does not apply to every party who interacts with marketers. If we think what the hosts file can do, it can actually give us complete control over any ads. By using this for all the host names that load pixels, we can block marketers from tracking our user data, as well as prevent ads from loading on webpages.

Source: debugandrelease.blogspot.com