News for hackers. Stuff that matters.
Re:Google Tag Manager, the new anti-adblock weapon (2020) by probotect0r on Sunday February 20, 2022 @11:32PM (#30412002)
How are you going to block it "trivially" if you don't know which script to block? They recommend changing the name of the GTM script, and paired with changing the content slightly, you won't be able to tell which script is GTM and which is actually important to the functioning of the site.
Re:Google Tag Manager, the new anti-adblock weapon (2020) by c0balt on Monday February 21, 2022 @04:39AM (#30413707)
+It's gonna be very hard to detect once they actually bundle up (which I suspect only a few will do) the tag manager and obfuscate
Re:Google Tag Manager, the new anti-adblock weapon (2020) by dlubarov on Monday February 21, 2022 @04:17PM (#30420735)
Where does Google recommend changing the name of the script? The author claims that they do, but their link just recommends self-hosting the script. In Google's recommended JS, the path is exactly the same, only the hostname is different ("www.googletagmanager.com" replaced with "<DOMAIN NAME>").

Self-hosting by itself might make blocking marginally more difficult, but there are other reasons to do it:

- Browsers these days segment caches by origin, so there's no caching benefit to using Google as a CDN.

- With HTTP2, a first-party request is likely to immediately go through an existing (multiplexed) connection, saving a handshake.

- It's arguably better for privacy, as users and legislators seem to be concerned about links to Google leaking IPs (https://news.ycombinator.com/item?id=30135264).

Re:Google Tag Manager, the new anti-adblock weapon (2020) by gizzlon on Monday February 21, 2022 @02:48AM (#30412994)
If it's 99.99% the same I think we will manage :)
Re:Google Tag Manager, the new anti-adblock weapon (2020) by coffeefirst on Monday February 21, 2022 @12:35PM (#30418376)
This was my exact thought when I wrote that comment. Then I remembered Manifest v3.

ITP, ETP, and plugins that can block requests based on heuristics will make pretty short work of this. In Chrome, come Manifest v3, plugins won't be allowed to.

So... this is all uglier and more complicated than I thought.

Re:Google Tag Manager, the new anti-adblock weapon (2020) by jacquesm on Monday February 21, 2022 @02:26AM (#30412851)
You'll know that after loading the first couple of bytes though.
Re:Google Tag Manager, the new anti-adblock weapon (2020) by _flux on Monday February 21, 2022 @04:57AM (#30413835)
So they need to change the first couple bytes then, automatically.

Essentially I don't understand how possibly could free adblocking lists defeat advertisers or trackers if they truly cared about them: simply have a system running with the latest adblock lists against their test site, and if it is able to filter them, have an engineer make a modification—or have the system automatically pull up a pre-made modification or even generate a new one. In addition, the content-driving JS and the site JS could be bundled in one and obfuscated.

Best functioning filters are secret ones and thus only the technically minded minority has access to them.