0x0Lab Blog Just another damn blog

29Mar/103

How to stop Google Analytics

Yes I know google owns us, yes I know we are using analytics as well.

What you need:
- a web server
- place the two files in this file in the root of the web server
- edit your hosts file and add this entry (where xxx.xxx.xxx.xxx is the IP of your web server):
xxx.xxx.xxx.xxx www.google-analytics.com ssl.google-analytics.com

Now every time you visit an analytics-enabled page, the two files from your web server will be included, and all javascript will be executed properly, but google will not track you.

Posted by cirrus

Filed under: General Leave a comment
Comments (3) Trackbacks (0)
  1. thanks!!!!!! i ll stick it into my home DNS server

  2. This is great but it doesn’t work for this site:

    http://www.metacafe.com/watch/3122780/very_very_safely_landed_jetblue/

    the videos are broken if google analytics are blocked.

    your script must not be complete enough to fix this.

    Can you update your replacement script?


Leave a comment

No trackbacks yet.