Discussion:
Blocking Google Analytics
(too old to reply)
Lawrence D'Oliveiro
2024-03-14 04:57:25 UTC
Permalink
I currently have the following in my /etc/hosts file:

127.0.0.1 google-analytics.com
127.0.0.1 googletagmanager.com
127.0.0.1 securepubads.g.doubleclick.net
127.0.0.1 www.google-analytics.com
127.0.0.1 www.googletagmanager.com

I think this is the reason why I see blank areas labelled “Advertisement”
on certain sites. ;)

Any others you have found useful?
Crash
2024-03-14 07:01:41 UTC
Permalink
On Thu, 14 Mar 2024 04:57:25 -0000 (UTC), Lawrence D'Oliveiro
Post by Lawrence D'Oliveiro
127.0.0.1 google-analytics.com
127.0.0.1 googletagmanager.com
127.0.0.1 securepubads.g.doubleclick.net
127.0.0.1 www.google-analytics.com
127.0.0.1 www.googletagmanager.com
I think this is the reason why I see blank areas labelled “Advertisement”
on certain sites. ;)
Really? Have you forgotten about your ad blockers?
Post by Lawrence D'Oliveiro
Any others you have found useful?
--
Crash McBash
Ralph Fox
2024-03-14 09:23:31 UTC
Permalink
Post by Lawrence D'Oliveiro
127.0.0.1 google-analytics.com
127.0.0.1 googletagmanager.com
127.0.0.1 securepubads.g.doubleclick.net
127.0.0.1 www.google-analytics.com
127.0.0.1 www.googletagmanager.com
I think this is the reason why I see blank areas labelled “Advertisement”
on certain sites. ;)
Any others you have found useful?
See the Example 2 list here:
<https://calomel.org/proxy_auto_config.html>

The PAC file in example 2 covers any domain ending in ".doubleclick.com",
".doubleclick.net", or ".googlesyndication.com". Something you can do
more easily with a PAC file than with a hosts file.
--
Kind regards
Ralph Fox
🦊

No place no condition is exempt from all trouble.
Lawrence D'Oliveiro
2024-03-14 20:37:15 UTC
Permalink
Something you can do more easily with a PAC file than with a hosts file.
Except that’s something that has to be loaded on a per-browser basis.
Loading...