News for hackers. Stuff that matters.
Re:Google Analytics Opt-Out Browser Add-On by Kristine1975 on Sunday October 18, 2015 @12:01PM (#10408568)
This opt-out works for me (add to hosts file):

  127.0.0.1 www.google-analytics.com 
  127.0.0.1 google-analytics.com 
  127.0.0.1 ssl.google-analytics.com
Re:Google Analytics Opt-Out Browser Add-On by rchmura on Sunday October 18, 2015 @12:14PM (#10408618)
What about the doubleclick domains and adwords domains which feed the same data into the same system too? And what about when they launch a new domain? (Would be difficult to keep up with those changes)
Re:Google Analytics Opt-Out Browser Add-On by ised on Sunday October 18, 2015 @02:08PM (#10409085)
Use own root and cache DNS instead of HOSTS. Then use wildcards, e.g.,

  *.doubleclick.net
Re:Google Analytics Opt-Out Browser Add-On by jakeogh on Sunday October 18, 2015 @03:46PM (#10409495)
Re:Google Analytics Opt-Out Browser Add-On by ised on Monday October 19, 2015 @10:41AM (#10413177)
The question is: what is listening on 127.0.0.1?

For example, do you have an httpd listening on 127.0.0.1? Do you bind any other daemons to 127.0.0.1 or the broadcast address?

If you operate your own root you can reassign the authoritative nameservers for doubleclick.net to nameservers you control. You may or may not choose to return "A" records.

Re:Google Analytics Opt-Out Browser Add-On by jakeogh on Tuesday October 20, 2015 @05:19PM (#10421882)
Hopefully nothing is on 127.0.0.1:80/443, that way webkit gets a RST back, which I assume is faster (and less error prone) than serving a dummy page. I'll add a note to the README.

Edit: Added a --dest-ip option

Re:Google Analytics Opt-Out Browser Add-On by ised on Tuesday October 20, 2015 @11:44PM (#10423581)
"...serving a dummy page."

It could also be less than a page. It could be a dummy resource. For example, in the case of an ad server and a smartphone app that has some screen space reserved for ads. You might want your own resource to appear in that space instead.

Another example is reverse engineering API's and protocols for popular web services, social media, storage, etc. In that case you might want a "dummy server" that serves certain responses.

Re:Google Analytics Opt-Out Browser Add-On by jakeogh on Wednesday October 21, 2015 @01:52AM (#10423927)
Interesting. Does --dest-ip[1] solve this?

[1] https://github.com/jakeogh/dnsmasq-blacklist/commit/554e20a3...

Re:Google Analytics Opt-Out Browser Add-On by jimktrains2 on Sunday October 18, 2015 @12:23PM (#10408661)
I just use NoScript.
Re:Google Analytics Opt-Out Browser Add-On by rchmura on Sunday October 18, 2015 @12:27PM (#10408678)
Be careful because the Google Analytics code (newest version includes a noscript section that loads an iframe within it) - No script will not block that.
Re:Google Analytics Opt-Out Browser Add-On by plorg on Sunday October 18, 2015 @12:54PM (#10408796)
So, uBlock then. Set 3rd-party, 3rd-party frames, and 3rd-party images to default-deny. As above, you can effectively block GA even if the noscript loads an iframe if you can block that iframe.

Or, if you are a serious, no-nonsense paranoiac uBlock even allows you to block 1st-party and inline scripts.

The world is your oyster. Block with reckless abandon! Watch the world burn! (mostly kidding with that last one)

Re:Google Analytics Opt-Out Browser Add-On by jimktrains2 on Sunday October 18, 2015 @01:44PM (#10408997)
Yes, UBO+NoScript has made browsing much more pleasant.
Re:Google Analytics Opt-Out Browser Add-On by magicalist on Sunday October 18, 2015 @01:01PM (#10408827)
> Be careful because the Google Analytics code (newest version includes a noscript section that loads an iframe within it)

No it doesn't[1]? What are you referring to?

[1] https://developers.google.com/analytics/devguides/collection...

Re:Google Analytics Opt-Out Browser Add-On by rchmura on Sunday October 18, 2015 @01:12PM (#10408866)
The tag manager does. The code you are linking to is a developer reference for the raw tracking code.

The tag manager has a "noscript" tag that points to an iframe with the domain googletagmanager.com

Re:Google Analytics Opt-Out Browser Add-On by dandelion_lover on Sunday October 18, 2015 @01:25PM (#10408924)
What about RequestPolicy?