Veign's Blog - Unhandled Perception

Monday, January 29, 2007

How to block yourself from Google Analytics

Thought long and hard about actually posting this but what the hell.

Most sites today have Google Analytics installed on each page to assist in tracking its users and its users browsing habits. Did you know that you can actually block this and prevent yourself from being tracked by a website? When you navigate to a webpage with Google Analytics installed, a small JavaScript file is downloaded to your computer called urchin.js (called the Urchin Tracking Module) which does all of the tracking. If you don't want to be tracked you just have to block the download of this file. This is very simple to do, just follow the step below.

Steps to block:
  1. Open Windows Explorer and navigate to windows/system32/drivers/etc/hosts (note: Win98 users may find the hosts file in the windows folder)
  2. Open the hosts file in Notepad - hosts file does not have an extension
  3. Add the following two lines to the hosts file and save
    1. 127.0.0.1 www.google-analytics.com
    2. 127.0.0.1 ssl.google-analytics.com
  4. Save and close the file
That's it. You will no longer be tracked by any website using Google Analytics.

Firefox users can use the CustomizeGoogle extension to perform the same thing.

Labels:

8 Comments:

  • very cool.

    By Anonymous mouser, at 2:38 PM EST  

  • Perfect,thanks a lot!

    By Anonymous animalfarm, at 11:36 AM EST  

  • A must for anyone with FOG. Fear of Google.

    By Anonymous Anonymous, at 12:18 PM EST  

  • Smart idea. I was thinking of an elaborate scheme to surprise requests to that URL, but sending it to local host is brilliant.

    And yes I do have FOG :)

    By Anonymous Anonymous, at 7:52 AM EST  

  • This is the content of mine, got from my squid access.log


    127.0.0.1 wad.adbasket.net
    127.0.0.1 a.analytics.yahoo.com
    127.0.0.1 analytics.gameforge.de
    127.0.0.1 analytics.live.com
    127.0.0.1 analytics.msn.com
    127.0.0.1 analytics.r.msn.com
    127.0.0.1 analytics.spreadshirt.com
    127.0.0.1 proc1.devanalytics.com
    127.0.0.1 www.google-analytics.com
    127.0.0.1 ad.ch.doubleclick.net
    127.0.0.1 ad.directaclick.com
    127.0.0.1 ad.doubleclick.net
    127.0.0.1 ad.es.doubleclick.net
    127.0.0.1 ad.fr.doubleclick.net
    127.0.0.1 ad.n2434.doubleclick.net
    127.0.0.1 ads.gmodules.com
    127.0.0.1 ad.tr.doubleclick.net
    127.0.0.1 ad.uk.doubleclick.net
    127.0.0.1 ad.xtendmedia.com
    127.0.0.1 ad.yieldmanager.com
    127.0.0.1 googleads.g.doubleclick.net
    127.0.0.1 n4061ad.fr.doubleclick.net
    127.0.0.1 pagead2.googlesyndication.com
    127.0.0.1 pubads.g.doubleclick.net
    127.0.0.1 www.smartadserver.com

    By Anonymous Anonymous, at 2:39 AM EST  

  • I'm having a hard time with any site that uses Google analytics and I'm on an iMac, any suggestions?

    By Anonymous Anonymous, at 10:09 PM EST  

  • I tried this, but it did not solve the problem. I continue to be directed by ad.doubleclick.net! Any more solutions out there?

    By Anonymous Kelly, at 12:26 PM EST  

  • Dude, get FireFox and install noscript extension and it will be blocked by default. Simple as that. FF rules!

    By Blogger kirovs, at 8:25 AM EST  

Post a Comment

Links to this post:

Create a Link

<< Home