So, I am a fan with “paying” for web content with ads, but it has become a bit ridiculous with some networks (doubleclick, I am looking at you) … where the site preference has the ads loading first and content last. To the point where the bottleneck is those ad sites. Since I am near 70% on a plane online, that is PAINFUL. So, here is what you do … for Apple OS X systems.
- First backup your “hosts” file by typing “sudo cp /etc/hosts /etc/hosts.bak”
- Second check out this site on how to open and edit the “hosts” file, using the command “sudo nano /etc/hosts”
- Now you need to add the domains we are trying to prevent from calling out to the internet. (Basically, here is how it works .. you hit a webpage it “calls” different sites to load content & ads… by editing the host file we are simply saying that “call” should stop on our machine) Some good sources (still validate) – I used the “linux” file from hphosts
- Finally do a quick “gut check” (after reviewing for any nasties per LifeHacker recommendations), such as running “egrep -v ‘^127.0.0.1|^#’ /etc/hosts |more”
- Almost done, copy in the entries from your “hosts.bak” into the “trusted section” in your next hosts file.
That is it .. enjoy .. and remember if things get weird, you can always revert back to the bak file!