Blocking Google Analytics and the like

Discussion in 'OS X' started by firstjudge, Sep 25, 2009.

  1. macrumors newbie

    Oct 23, 2008
    Hi, I hope this is the right section to post this in.

    Is it just me or am I the only one who finds web owners tracking my activities via google analytics disconcerting. I just found out about this today. Sure, they may not track your IP address but it's still too much information let out for my liking. It's far too big brother-like to me and I want to put an end to it. I know how to block google analytics on Windows by editing the host file but how do I do it in OS X? I'm still using Leopard btw. Thanks.
  2. macrumors 65816

    Sep 19, 2009

    Apparently, the file that you are looking for is in /private/etc/hosts on Mac OS X. You probably need root privileges to do that.

    [edit] That may be old info; the Apple page that site links to is very old. You can always use private browsing in FF 3.5 or Safar.
  3. macrumors 6502a


    Sep 7, 2009
    /etc/hosts approach is somewhat crude because it puts the onus on you to keep tracking for any IP address changes and updating that file.

    Better bet might be to use something like Little Snitch at a nominal cost. I'm not sure about Safari, but with Firefox's NoScript plug-in, I can easily tell it to block that particular website and it does so for any pages trying to access it.
  4. macrumors 65816

    Sep 19, 2009
    OK, the info is good. I was having a brain fart. :eek: You still need root privileges to do anything with the hosts file in OS X. Of course, you don't in Windows. :rolleyes:
  5. macrumors member

    May 8, 2007
    How do you block google analytics with little snitch?
  6. macrumors Core


    Jul 24, 2006
    The Ivory Tower (I'm not coming down)
    You don't. Google Analytics works through browsers, so unless you block the ports for things like HTTP Little Snitch won't do anything. Use something like NoScript with FF if you are worried about it.
  7. macrumors Westmere


    May 16, 2008
    SafariBlock and Safari AdBlock will do the trick. I block Google analytics with them and it works fine.
  8. macrumors member

    Jul 29, 2003

    specifically, what is it you don't want them to know?
  9. macrumors G5


    Jun 27, 2007
    EVERY web site tracks customer usage.

    If you access a page, there is a record of it, so you should stop using any electronics altogether.

    FYI the goal of tracking is to improve the site to work for the most customers.
  10. macrumors regular

    Oct 21, 2005
    If I'm unhappy with a site I will e-mail them. Adverts and tracking are just an unnecessary waste of my bandwidth and resources ;) Yes, I am fussy.

    As mentioned above, AdBlock and NoScript do the job perfectly. Can block anything, including site logos :) I don't need reminders that I'm on the site :p
  11. macrumors 68000


    Aug 26, 2009
    Totalitarian Republic of Northlandia
    Well for Firefox maybe TACO would work for that.

    I'm not sure, but I installed it anyways, along with AdBlock Plus
  12. macrumors member

    May 8, 2007
    I just want to block it because I own a website, and it's skewing my data.

Share This Page