3 ms·
Can’t an ad blocker do the CNAME resolution and then not load the URL if it resolves to a 3rd-party hostname? Using an A/AAAA record would be harder, you’d nee
by cobbzilla 7y ago
Can’t an ad blocker do the CNAME resolution and then not load the URL if it resolves to a 3rd-party hostname?
Using an A/AAAA record would be harder, you’d need to have an IP blacklist, and the trackers would probably be constantly shifting IPs, using a low TTL on the record.
This might require giving your tracker programmatic access to your DNS, not sure if many first parties are ready to go there.
- saagarjha 7y agoI have CNAME record for my website that points at GitHub. Would your suggestion block this?
- cobbzilla 7y agoNot likely — only if “github.com” was classified as an ad-tracker by the ad blocker.
- cyborgx7 7y agoThat is one of the proposed solutions in that thread. I think somewhat to that effect is what will have to happen. Though it seems like it's possible, in some browsers, for the adblocker with the right permissions to inject itself in the original DNS resolution process and just stop the process when it encounters a blocked domain.