Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

PSA: Add this to /etc/hosts if you don't want other sites collecting info from you via Google Analytics/Ads

    0.0.0.0 googleanalytics.com
    0.0.0.0 googlesyndication.com
A more complete list of things worth adding to /etc/hosts here (I'm not affiliated with this):

https://github.com/StevenBlack/hosts



I've always had the ones with the dash, since they are what's mentioned in the official docs ( https://developers.google.com/analytics/devguides/collection... ):

    0.0.0.0 google-analytics.com
    0.0.0.0 www.google-analytics.com
    0.0.0.0 ssl.google-analytics.com
I'm not sure what googleanalytics.com is for, however; but I'll add it to my HOSTS, in any case.


The only supported way to block GA without breaking pages is to use a plug-in https://tools.google.com/dlpage/gaoptout

No doubt your use of the plug in is logged somewhere.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: