You may not know it, but lots of web sites use a variety of tricks to track you across the Internet, not just on the site you are currently browsing. These all depend on your browser talking to the tracker’s server without your knowledge or consent. These trackers use huge numbers of servers with different names and IP addresses to make it more difficult to stop them.
If you use a single browser all the time, plugins like Ghostery work very well. But if you, like me, use lots of browsers and scripts, something else is needed.
Dan Pollock has a solution at Using a Hosts File To Make The Internet Not Suck (as much). He provides a massive and frequently updated
hosts file that redirects all requests for these sites back to your own computer. Since your browser and scripts never send the request to the tracker, you don’t get tracked. And since these requests are local, browsing should be quicker.
To install (OS X instructions, others in the file), browse to the text version and append it to your
/etc/hosts file using your favorite text editor. Then come back every once in a while and replace with updates.
Update: Before saving the updated file, perform a search for
apple and comment out any lines with
applestoreus in them, they break Apple.com. If you find other sites breaking, just look for them in
/etc/hosts, comment them out and email Dan at firstname.lastname@example.org.
I can’t prove that this works for all sites, and it does not feel as if browsing is much faster (because I am running a local web server), but it does seem to work against the most common tracking sites. So much so that I have disabled Ghostery and rely on this to cut down on being tracked.