Prevent DNS lookups for CNAME decloaking for adblock for already-blocked requests #15302
Labels
feature/shields/adblock
Blocking ads & trackers with Shields
OS/Desktop
perf
privacy
privacy-pod
Feature work for the Privacy & Web Compatibility pod
QA Pass-Linux
QA Pass-macOS
QA Pass-Win64
QA/Test-All-Platforms
QA/Yes
release-notes/include
Milestone
Brave looks up CNAME information for all requests so that we can make blocking decisions on the entire CNAME chain (when relevant). Currently the CNAME / DNS information is fetched before making any blocking decisions. This results in unnecessary DNS calls when we can make a blocking determination from the initial URL (or at least earlier on before reaching the end of a CNAME chain).
We should optimize our CNAME decloaking, and prevent non-useful DNS requests, by waiting to fetch CNAME records until we need them (i.e., we shouldn't do any checks when we can make a blocking determination from the initial, or middle of the CNAME chain, URL and host information).
The text was updated successfully, but these errors were encountered: