[{"data":1,"prerenderedAt":503},["ShallowReactive",2],{"blog-cname-cloaking-en":3,"blog-ad-banners-en":476},{"id":4,"title":5,"excerpt":6,"content":7,"coverImage":418,"meta":426,"site":430,"status":451,"slug":452,"author":453,"category":461,"publishDate":470,"featured":286,"updatedAt":471,"createdAt":472,"contentHtml":473,"previewUrl":474,"localeSlugs":475},836,"CNAME Cloaking: How It Works and Why Browsers Limit It","CNAME cloaking hides a third-party tracker behind your own subdomain: how it works, how Safari, Firefox and Brave respond, the consent risks, compliant options.",{"root":8},{"children":9,"direction":19,"format":15,"indent":13,"type":417,"version":18},[10,22,34,38,42,89,97,101,206,210,214,218,224,233,239,243,247,275,299,303,307,351,355,359,364,368,372,376,380,384,388,392,396,409,413],{"children":11,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":21},[12],{"detail":13,"format":13,"mode":14,"style":15,"text":16,"type":17,"version":18},0,"normal","","What CNAME cloaking is","text",1,null,"heading","h2",{"children":23,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":18,"textStyle":15},[24,26,29,31],{"detail":13,"format":18,"mode":14,"style":15,"text":25,"type":17,"version":18},"CNAME cloaking is a tracking setup in which a website points one of its own subdomains, such as ",{"detail":13,"format":27,"mode":14,"style":15,"text":28,"type":17,"version":18},17,"metrics.example.com",{"detail":13,"format":18,"mode":14,"style":15,"text":30,"type":17,"version":18},", at a third-party tracking vendor through a DNS CNAME record.",{"detail":13,"format":13,"mode":14,"style":15,"text":32,"type":17,"version":18}," To the browser, requests to that subdomain look first-party, so the vendor's server can read and set first-party cookies and is not caught by rules that only look for third-party tracker domains.","paragraph",{"children":35,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[36],{"detail":13,"format":13,"mode":14,"style":15,"text":37,"type":17,"version":18},"The name comes from the fact that the third party is \"cloaked\" behind the site's own domain. The technique has nothing to do with ad cloaking (showing reviewers different content from users); it is a measurement and privacy topic. It matters to advertisers because it affects how long click IDs and visitor cookies survive, and because regulators and browsers treat it as tracking, not as a neutral DNS choice.",{"children":39,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":21},[40],{"detail":13,"format":13,"mode":14,"style":15,"text":41,"type":17,"version":18},"How CNAME cloaking works, step by step",{"children":43,"direction":19,"format":15,"indent":13,"type":86,"version":18,"listType":87,"start":18,"tag":88},[44,54,61,69,81],{"children":45,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":18},[46,48,51],{"detail":13,"format":13,"mode":14,"style":15,"text":47,"type":17,"version":18},"The site owner creates a DNS record: ",{"detail":13,"format":49,"mode":14,"style":15,"text":50,"type":17,"version":18},16,"metrics.example.com CNAME customer123.tracker-vendor.net",{"detail":13,"format":13,"mode":14,"style":15,"text":52,"type":17,"version":18},".","listitem",{"children":55,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":60},[56,58,59],{"detail":13,"format":13,"mode":14,"style":15,"text":57,"type":17,"version":18},"The page loads a script or pixel from ",{"detail":13,"format":49,"mode":14,"style":15,"text":28,"type":17,"version":18},{"detail":13,"format":13,"mode":14,"style":15,"text":52,"type":17,"version":18},2,{"children":62,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":68},[63,65,67],{"detail":13,"format":13,"mode":14,"style":15,"text":64,"type":17,"version":18},"DNS resolves the subdomain to the vendor's servers, but the browser still sees the request as same-site with ",{"detail":13,"format":49,"mode":14,"style":15,"text":66,"type":17,"version":18},"example.com",{"detail":13,"format":13,"mode":14,"style":15,"text":52,"type":17,"version":18},3,{"children":70,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":80},[71,73,74,76,78],{"detail":13,"format":13,"mode":14,"style":15,"text":72,"type":17,"version":18},"The vendor's response sets a cookie on ",{"detail":13,"format":49,"mode":14,"style":15,"text":66,"type":17,"version":18},{"detail":13,"format":13,"mode":14,"style":15,"text":75,"type":17,"version":18}," through an HTTP ",{"detail":13,"format":49,"mode":14,"style":15,"text":77,"type":17,"version":18},"Set-Cookie",{"detail":13,"format":13,"mode":14,"style":15,"text":79,"type":17,"version":18}," header, which the browser treats as a first-party cookie.",4,{"children":82,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":85},[83],{"detail":13,"format":13,"mode":14,"style":15,"text":84,"type":17,"version":18},"Because the cookie is first-party and server-set, it historically escaped the limits browsers apply to third-party cookies and to cookies written by JavaScript.",5,"list","number","ol",{"children":90,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[91,93,95],{"detail":13,"format":13,"mode":14,"style":15,"text":92,"type":17,"version":18},"WebKit's 2020 description of the technique is a good primary source: a first-party subresource \"resolves through a CNAME that differs from the first-party domain\", giving ",{"detail":13,"format":49,"mode":14,"style":15,"text":94,"type":17,"version":18},"thirdParty.example",{"detail":13,"format":13,"mode":14,"style":15,"text":96,"type":17,"version":18}," \"the same powers as the true first party\".",{"children":98,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":21},[99],{"detail":13,"format":13,"mode":14,"style":15,"text":100,"type":17,"version":18},"How browsers and blockers respond",{"children":102,"direction":19,"format":15,"indent":13,"type":205,"version":18},[103,125,145,165,185],{"children":104,"direction":19,"format":15,"indent":13,"type":124,"version":18},[105,112,118],{"children":106,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":18,"rowSpan":18},[107],{"children":108,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[109],{"detail":13,"format":13,"mode":14,"style":15,"text":110,"type":17,"version":18}," Defence ","tablecell",{"children":113,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":18,"rowSpan":18},[114],{"children":115,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[116],{"detail":13,"format":13,"mode":14,"style":15,"text":117,"type":17,"version":18}," What it does ",{"children":119,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":18,"rowSpan":18},[120],{"children":121,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[122],{"detail":13,"format":13,"mode":14,"style":15,"text":123,"type":17,"version":18}," Scope ","tablerow",{"children":126,"direction":19,"format":15,"indent":13,"type":124,"version":18},[127,133,139],{"children":128,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[129],{"children":130,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[131],{"detail":13,"format":13,"mode":14,"style":15,"text":132,"type":17,"version":18}," Safari Intelligent Tracking Prevention ",{"children":134,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[135],{"children":136,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[137],{"detail":13,"format":13,"mode":14,"style":15,"text":138,"type":17,"version":18}," Detects third-party CNAME (and third-party IP) cloaking and caps cookies set in those responses to 7 days ",{"children":140,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[141],{"children":142,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[143],{"detail":13,"format":13,"mode":14,"style":15,"text":144,"type":17,"version":18}," Safari on macOS and iOS since late 2020 ",{"children":146,"direction":19,"format":15,"indent":13,"type":124,"version":18},[147,153,159],{"children":148,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[149],{"children":150,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[151],{"detail":13,"format":13,"mode":14,"style":15,"text":152,"type":17,"version":18}," Firefox + uBlock Origin ",{"children":154,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[155],{"children":156,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[157],{"detail":13,"format":13,"mode":14,"style":15,"text":158,"type":17,"version":18}," Resolves the real canonical name with the browser DNS API and blocks it if the vendor is on a filter list ",{"children":160,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[161],{"children":162,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[163],{"detail":13,"format":13,"mode":14,"style":15,"text":164,"type":17,"version":18}," Firefox only; \"Uncloak canonical names\" is on by default ",{"children":166,"direction":19,"format":15,"indent":13,"type":124,"version":18},[167,173,179],{"children":168,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[169],{"children":170,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[171],{"detail":13,"format":13,"mode":14,"style":15,"text":172,"type":17,"version":18}," Brave ",{"children":174,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[175],{"children":176,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[177],{"detail":13,"format":13,"mode":14,"style":15,"text":178,"type":17,"version":18}," Uncloaks CNAMEs natively and applies its tracker lists ",{"children":180,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[181],{"children":182,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[183],{"detail":13,"format":13,"mode":14,"style":15,"text":184,"type":17,"version":18}," Brave browser ",{"children":186,"direction":19,"format":15,"indent":13,"type":124,"version":18},[187,193,199],{"children":188,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[189],{"children":190,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[191],{"detail":13,"format":13,"mode":14,"style":15,"text":192,"type":17,"version":18}," Chrome extensions ",{"children":194,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[195],{"children":196,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[197],{"detail":13,"format":13,"mode":14,"style":15,"text":198,"type":17,"version":18}," Cannot see CNAME targets, because Chromium does not expose a DNS API to extensions ",{"children":200,"direction":19,"format":15,"indent":13,"type":111,"version":18,"backgroundColor":19,"colSpan":18,"headerState":13,"rowSpan":18},[201],{"children":202,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[203],{"detail":13,"format":13,"mode":14,"style":15,"text":204,"type":17,"version":18}," Chrome-based browsers ","table",{"children":207,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[208],{"detail":13,"format":13,"mode":14,"style":15,"text":209,"type":17,"version":18},"Safari's rule is specific. Its documentation says ITP caps cookie expiry to 7 days when a first-party subresource resolves through a CNAME that differs from both the first-party domain and the top frame host's own CNAME. A whole site served through an edge network or CDN is not penalised on that basis, and a subdomain pointing to the same edge as the main site is treated as first-party.",{"children":211,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[212],{"detail":13,"format":13,"mode":14,"style":15,"text":213,"type":17,"version":18},"One recent change is worth knowing. In Safari 27.2 (October 2026), WebKit fixed a bug that had also capped cookies set by the page's own top-level response when the site's hostname was a CNAME to its host, a common setup on hosted stores and static hosting. That fix only covers the page's own response. Third-party CNAME cloaking stays capped at 7 days.",{"children":215,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":21},[216],{"detail":13,"format":13,"mode":14,"style":15,"text":217,"type":17,"version":18},"Why CNAME cloaking is a compliance issue, not just a technical one",{"children":219,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":18,"textStyle":15},[220,222],{"detail":13,"format":18,"mode":14,"style":15,"text":221,"type":17,"version":18},"Consent rules do not depend on the domain name.",{"detail":13,"format":13,"mode":14,"style":15,"text":223,"type":17,"version":18}," Under GDPR and the ePrivacy rules in Europe, and under comparable laws elsewhere, what matters is whether you store or read identifiers on a user's device and share data with a third party. Disguising a vendor as a subdomain does not change either fact. If the tracking needs consent, it still needs consent.",{"children":225,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":18,"textStyle":15},[226,228,230,231],{"detail":13,"format":18,"mode":14,"style":15,"text":227,"type":17,"version":18},"It can leak cookies you did not intend to share.",{"detail":13,"format":13,"mode":14,"style":15,"text":229,"type":17,"version":18}," Because the vendor's server sits on your domain, it can receive every cookie scoped to ",{"detail":13,"format":49,"mode":14,"style":15,"text":66,"type":17,"version":18},{"detail":13,"format":13,"mode":14,"style":15,"text":232,"type":17,"version":18},", which may include session or login cookies. Security researchers have documented cases where CNAME-cloaked trackers received authentication cookies.",{"children":234,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":18,"textStyle":15},[235,237],{"detail":13,"format":18,"mode":14,"style":15,"text":236,"type":17,"version":18},"It undermines user choice.",{"detail":13,"format":13,"mode":14,"style":15,"text":238,"type":17,"version":18}," Users who install a blocker or pick a privacy-focused browser have stated a preference. Engineering around that preference is the kind of practice regulators and platform reviewers read as deceptive.",{"children":240,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":21},[241],{"detail":13,"format":13,"mode":14,"style":15,"text":242,"type":17,"version":18},"Legitimate alternatives for first-party measurement",{"children":244,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[245],{"detail":13,"format":13,"mode":14,"style":15,"text":246,"type":17,"version":18},"You can keep accurate attribution without disguising third parties:",{"children":248,"direction":19,"format":15,"indent":13,"type":86,"version":18,"listType":273,"start":18,"tag":274},[249,255,261,267],{"children":250,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":18},[251,253],{"detail":13,"format":18,"mode":14,"style":15,"text":252,"type":17,"version":18},"Server-side tagging on infrastructure you control.",{"detail":13,"format":13,"mode":14,"style":15,"text":254,"type":17,"version":18}," Run the collection endpoint on your own servers or a cloud project you own, apply consent decisions before forwarding events, and disclose the processors you forward to.",{"children":256,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":60},[257,259],{"detail":13,"format":18,"mode":14,"style":15,"text":258,"type":17,"version":18},"Conversion APIs.",{"detail":13,"format":13,"mode":14,"style":15,"text":260,"type":17,"version":18}," Meta's Conversions API, Google's enhanced conversions and TikTok's Events API send consented conversion data server-to-server instead of relying on long-lived browser cookies.",{"children":262,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":68},[263,265],{"detail":13,"format":18,"mode":14,"style":15,"text":264,"type":17,"version":18},"Short, honest cookie lifetimes.",{"detail":13,"format":13,"mode":14,"style":15,"text":266,"type":17,"version":18}," Design attribution windows around the cookie lifetimes browsers actually allow, rather than around ways to extend them.",{"children":268,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":80},[269,271],{"detail":13,"format":18,"mode":14,"style":15,"text":270,"type":17,"version":18},"Clear disclosure.",{"detail":13,"format":13,"mode":14,"style":15,"text":272,"type":17,"version":18}," List every vendor that receives data in your privacy notice and consent banner, including any that operate behind a subdomain.","bullet","ul",{"children":276,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[277,279,289,291,298],{"detail":13,"format":13,"mode":14,"style":15,"text":278,"type":17,"version":18},"For the broader picture of how attribution tools collect and match data, see our ",{"children":280,"direction":19,"format":15,"indent":13,"type":283,"version":68,"fields":284,"id":288},[281],{"detail":13,"format":13,"mode":14,"style":15,"text":282,"type":17,"version":18},"mobile ad attribution guide","link",{"linkType":285,"newTab":286,"url":287},"custom",false,"https://deepclick.com/resources/blog/mobile-ad-attribution-guide-2026/","6b08f08a692b2300c882cc64",{"detail":13,"format":13,"mode":14,"style":15,"text":290,"type":17,"version":18}," and ",{"children":292,"direction":19,"format":15,"indent":13,"type":283,"version":68,"fields":295,"id":297},[293],{"detail":13,"format":13,"mode":14,"style":15,"text":294,"type":17,"version":18},"link tracking for ad campaigns",{"linkType":285,"newTab":286,"url":296},"https://deepclick.com/resources/blog/link-tracking-for-ad-campaigns-2026/","6b08f08a692b2300c882cc65",{"detail":13,"format":13,"mode":14,"style":15,"text":52,"type":17,"version":18},{"children":300,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":21},[301],{"detail":13,"format":13,"mode":14,"style":15,"text":302,"type":17,"version":18},"How to check whether your own site uses CNAME cloaking",{"children":304,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[305],{"detail":13,"format":13,"mode":14,"style":15,"text":306,"type":17,"version":18},"Marketing teams often inherit a CNAME set up by a previous vendor. To audit:",{"children":308,"direction":19,"format":15,"indent":13,"type":86,"version":18,"listType":87,"start":18,"tag":88},[309,331,339,343,347],{"children":310,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":18},[311,313,315,317,319,320,322,323,325,327,329],{"detail":13,"format":13,"mode":14,"style":15,"text":312,"type":17,"version":18},"List your DNS records and look for subdomains such as ",{"detail":13,"format":49,"mode":14,"style":15,"text":314,"type":17,"version":18},"metrics.",{"detail":13,"format":13,"mode":14,"style":15,"text":316,"type":17,"version":18},", ",{"detail":13,"format":49,"mode":14,"style":15,"text":318,"type":17,"version":18},"data.",{"detail":13,"format":13,"mode":14,"style":15,"text":316,"type":17,"version":18},{"detail":13,"format":49,"mode":14,"style":15,"text":321,"type":17,"version":18},"t.",{"detail":13,"format":13,"mode":14,"style":15,"text":316,"type":17,"version":18},{"detail":13,"format":49,"mode":14,"style":15,"text":324,"type":17,"version":18},"stats.",{"detail":13,"format":13,"mode":14,"style":15,"text":326,"type":17,"version":18}," or ",{"detail":13,"format":49,"mode":14,"style":15,"text":328,"type":17,"version":18},"smetrics.",{"detail":13,"format":13,"mode":14,"style":15,"text":330,"type":17,"version":18}," that are CNAMEs to a domain you do not own.",{"children":332,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":60},[333,335,337],{"detail":13,"format":13,"mode":14,"style":15,"text":334,"type":17,"version":18},"Run ",{"detail":13,"format":49,"mode":14,"style":15,"text":336,"type":17,"version":18},"dig +short CNAME metrics.example.com",{"detail":13,"format":13,"mode":14,"style":15,"text":338,"type":17,"version":18}," for each one to see the real target.",{"children":340,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":68},[341],{"detail":13,"format":13,"mode":14,"style":15,"text":342,"type":17,"version":18},"Open your site in Firefox with uBlock Origin and check the logger for requests that are blocked after uncloaking.",{"children":344,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":80},[345],{"detail":13,"format":13,"mode":14,"style":15,"text":346,"type":17,"version":18},"Check which cookies those subdomains set, and whether any are scoped to your root domain.",{"children":348,"direction":19,"format":15,"indent":13,"type":53,"version":18,"value":85},[349],{"detail":13,"format":13,"mode":14,"style":15,"text":350,"type":17,"version":18},"Confirm each vendor appears in your consent tool and privacy notice, and that no session or login cookies are exposed to it.",{"children":352,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[353],{"detail":13,"format":13,"mode":14,"style":15,"text":354,"type":17,"version":18},"If you find a cloaked tracker you no longer need, remove the DNS record and the tag. If you still need the vendor, move it behind a consent-gated server-side setup and disclose it.",{"children":356,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":21},[357],{"detail":13,"format":13,"mode":14,"style":15,"text":358,"type":17,"version":18},"FAQ",{"children":360,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":363},[361],{"detail":13,"format":13,"mode":14,"style":15,"text":362,"type":17,"version":18},"What is CNAME cloaking?","h3",{"children":365,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[366],{"detail":13,"format":13,"mode":14,"style":15,"text":367,"type":17,"version":18},"It is a setup where a site's subdomain is pointed at a third-party tracker through a DNS CNAME record, so the tracker's requests and cookies look first-party to the browser.",{"children":369,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":363},[370],{"detail":13,"format":13,"mode":14,"style":15,"text":371,"type":17,"version":18},"Is CNAME cloaking illegal?",{"children":373,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[374],{"detail":13,"format":13,"mode":14,"style":15,"text":375,"type":17,"version":18},"The DNS record itself is not illegal. Using it to track users without the consent required by laws such as GDPR, or to share cookies users did not agree to share, can be. Hiding the vendor does not remove the consent requirement.",{"children":377,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":363},[378],{"detail":13,"format":13,"mode":14,"style":15,"text":379,"type":17,"version":18},"Does Safari block CNAME cloaking?",{"children":381,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[382],{"detail":13,"format":13,"mode":14,"style":15,"text":383,"type":17,"version":18},"Safari does not block the request. Its Intelligent Tracking Prevention caps cookies set by third-party CNAME-cloaked responses to 7 days.",{"children":385,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":363},[386],{"detail":13,"format":13,"mode":14,"style":15,"text":387,"type":17,"version":18},"Can uBlock Origin detect CNAME cloaking?",{"children":389,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[390],{"detail":13,"format":13,"mode":14,"style":15,"text":391,"type":17,"version":18},"Yes in Firefox, where it can resolve the real canonical name and block listed trackers. Not in Chrome, because Chromium does not give extensions a DNS API.",{"children":393,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":363},[394],{"detail":13,"format":13,"mode":14,"style":15,"text":395,"type":17,"version":18},"What is the difference between CNAME cloaking and ad cloaking?",{"children":397,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[398,400,407],{"detail":13,"format":13,"mode":14,"style":15,"text":399,"type":17,"version":18},"CNAME cloaking disguises a tracking vendor as part of your domain. Ad cloaking shows platform reviewers different content from users, which every major ad platform prohibits. They share a word, not a mechanism. See ",{"children":401,"direction":19,"format":15,"indent":13,"type":283,"version":68,"fields":404,"id":406},[402],{"detail":13,"format":13,"mode":14,"style":15,"text":403,"type":17,"version":18},"domain cloaking explained",{"linkType":285,"newTab":286,"url":405},"https://deepclick.com/resources/blog/domain-cloaking/","6b08f08a692b2300c882cc66",{"detail":13,"format":13,"mode":14,"style":15,"text":408,"type":17,"version":18}," for how the cloaking terms differ.",{"children":410,"direction":19,"format":15,"indent":13,"type":20,"version":18,"tag":21},[411],{"detail":13,"format":13,"mode":14,"style":15,"text":412,"type":17,"version":18},"Summary",{"children":414,"direction":19,"format":15,"indent":13,"type":33,"version":18,"textFormat":13,"textStyle":15},[415],{"detail":13,"format":13,"mode":14,"style":15,"text":416,"type":17,"version":18},"CNAME cloaking makes a third-party tracker look like part of your own site by routing a subdomain to it through DNS. Safari caps its cookies at 7 days, Firefox and Brave can uncloak it, and privacy law treats it as tracking regardless of the domain name. If you need durable measurement, use consented server-side collection and conversion APIs on infrastructure you control, and disclose every vendor that receives data.","root",{"id":419,"alt":420,"updatedAt":421,"createdAt":421,"url":422,"thumbnailURL":19,"filename":423,"mimeType":424,"filesize":425,"width":19,"height":19},1008,"Address bar showing one domain while a framed page from a different site loads behind it","2026-08-22T02:15:17.710Z","https://cms-r2.deepclick.com/cover-domain-cloaking-20ad3975e882.jpg","cover-domain-cloaking-20ad3975e882.jpg","application/octet-stream",173403,{"title":427,"description":428,"image":429},"CNAME Cloaking Explained: Tracking, ITP and Consent","CNAME cloaking explained: how a DNS CNAME makes trackers look first-party, Safari's 7-day cookie cap, uBlock uncloaking, GDPR consent risks and safer options.",{"id":419,"alt":420,"updatedAt":421,"createdAt":421,"url":422,"thumbnailURL":19,"filename":423,"mimeType":424,"filesize":425,"width":19,"height":19},{"id":18,"key":431,"name":432,"prodHost":433,"testHost":434,"blogPath":435,"docPath":436,"zhPrefix":437,"deployHookTest":438,"deployHookProd":439,"brandAuthor":440,"brandKit":444,"enabled":448,"updatedAt":449,"createdAt":450},"deepclick","DeepClick","https://deepclick.com","https://www-test-deepclick.qiliangjia.one","/resources/blog/{slug}","/docs/{slug}","/zh-CN","https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/60a9adef-153b-4c89-8d07-7118e91e9522","https://api.cloudflare.com/client/v4/pages/webhooks/deploy_hooks/05323321-f694-4ce8-a5af-173c507b8bae",{"id":60,"name":432,"avatar":441,"updatedAt":442,"createdAt":443},25,"2026-04-22T08:09:35.299Z","2026-04-22T06:42:49.116Z",{"logoLight":19,"logoDark":19,"primaryColor":445,"accentColor":446,"tagline":447,"wechatName":19,"xhsHandle":19,"wechatQr":19},"#1a73e8","#ff6600","一次点击，多重价值",true,"2026-08-25T06:40:57.663Z","2026-07-14T06:26:38.962Z","published","cname-cloaking",{"id":60,"name":432,"avatar":454,"updatedAt":442,"createdAt":443},{"id":441,"alt":432,"updatedAt":455,"createdAt":455,"url":456,"thumbnailURL":19,"filename":457,"mimeType":458,"filesize":459,"width":460,"height":460},"2026-04-22T08:09:22.606Z","https://cms-r2.deepclick.com/头像-白.png","头像-白.png","image/png",26626,1024,{"id":462,"site":463,"titleZh":465,"titleEn":466,"slug":467,"order":85,"updatedAt":468,"createdAt":469},7,{"id":18,"key":431,"name":432,"prodHost":433,"testHost":434,"blogPath":435,"docPath":436,"zhPrefix":437,"deployHookTest":438,"deployHookProd":439,"brandAuthor":60,"brandKit":464,"enabled":448,"updatedAt":449,"createdAt":450},{"logoLight":19,"logoDark":19,"primaryColor":445,"accentColor":446,"tagline":447,"wechatName":19,"xhsHandle":19,"wechatQr":19},"技术导航","Tech Guides","tech-guides","2026-04-27T08:37:10.576Z","2026-04-23T02:59:13.436Z","2026-11-27T02:53:09.219Z","2026-11-27T03:17:24.881Z","2026-11-27T02:52:58.758Z","\u003Cdiv class=\"payload-richtext\">\u003Ch2>What CNAME cloaking is\u003C/h2>\u003Cp>\u003Cstrong>CNAME cloaking is a tracking setup in which a website points one of its own subdomains, such as \u003C/strong>\u003Ccode>\u003Cstrong>metrics.example.com\u003C/strong>\u003C/code>\u003Cstrong>, at a third-party tracking vendor through a DNS CNAME record.\u003C/strong> To the browser, requests to that subdomain look first-party, so the vendor&#39;s server can read and set first-party cookies and is not caught by rules that only look for third-party tracker domains.\u003C/p>\u003Cp>The name comes from the fact that the third party is &quot;cloaked&quot; behind the site&#39;s own domain. The technique has nothing to do with ad cloaking (showing reviewers different content from users); it is a measurement and privacy topic. It matters to advertisers because it affects how long click IDs and visitor cookies survive, and because regulators and browsers treat it as tracking, not as a neutral DNS choice.\u003C/p>\u003Ch2>How CNAME cloaking works, step by step\u003C/h2>\u003Col class=\"list-number\">\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"1\"\n        >The site owner creates a DNS record: \u003Ccode>metrics.example.com CNAME customer123.tracker-vendor.net\u003C/code>.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"2\"\n        >The page loads a script or pixel from \u003Ccode>metrics.example.com\u003C/code>.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"3\"\n        >DNS resolves the subdomain to the vendor&#39;s servers, but the browser still sees the request as same-site with \u003Ccode>example.com\u003C/code>.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"4\"\n        >The vendor&#39;s response sets a cookie on \u003Ccode>example.com\u003C/code> through an HTTP \u003Ccode>Set-Cookie\u003C/code> header, which the browser treats as a first-party cookie.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"5\"\n        >Because the cookie is first-party and server-set, it historically escaped the limits browsers apply to third-party cookies and to cookies written by JavaScript.\u003C/li>\u003C/ol>\u003Cp>WebKit&#39;s 2020 description of the technique is a good primary source: a first-party subresource &quot;resolves through a CNAME that differs from the first-party domain&quot;, giving \u003Ccode>thirdParty.example\u003C/code> &quot;the same powers as the true first party&quot;.\u003C/p>\u003Ch2>How browsers and blockers respond\u003C/h2>\u003Cdiv class=\"lexical-table-container\">\n        \u003Ctable class=\"lexical-table\" style=\"border-collapse: collapse;\">\n          \u003Ctbody>\u003Ctr class=\"lexical-table-row\">\n        \u003Cth\n        class=\"lexical-table-cell lexical-table-cell-header-1\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Defence \u003C/p>\n      \u003C/th>\n    \u003Cth\n        class=\"lexical-table-cell lexical-table-cell-header-1\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> What it does \u003C/p>\n      \u003C/th>\n    \u003Cth\n        class=\"lexical-table-cell lexical-table-cell-header-1\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Scope \u003C/p>\n      \u003C/th>\n    \n      \u003C/tr>\u003Ctr class=\"lexical-table-row\">\n        \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Safari Intelligent Tracking Prevention \u003C/p>\n      \u003C/td>\n    \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Detects third-party CNAME (and third-party IP) cloaking and caps cookies set in those responses to 7 days \u003C/p>\n      \u003C/td>\n    \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Safari on macOS and iOS since late 2020 \u003C/p>\n      \u003C/td>\n    \n      \u003C/tr>\u003Ctr class=\"lexical-table-row\">\n        \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Firefox + uBlock Origin \u003C/p>\n      \u003C/td>\n    \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Resolves the real canonical name with the browser DNS API and blocks it if the vendor is on a filter list \u003C/p>\n      \u003C/td>\n    \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Firefox only; &quot;Uncloak canonical names&quot; is on by default \u003C/p>\n      \u003C/td>\n    \n      \u003C/tr>\u003Ctr class=\"lexical-table-row\">\n        \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Brave \u003C/p>\n      \u003C/td>\n    \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Uncloaks CNAMEs natively and applies its tracker lists \u003C/p>\n      \u003C/td>\n    \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Brave browser \u003C/p>\n      \u003C/td>\n    \n      \u003C/tr>\u003Ctr class=\"lexical-table-row\">\n        \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Chrome extensions \u003C/p>\n      \u003C/td>\n    \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Cannot see CNAME targets, because Chromium does not expose a DNS API to extensions \u003C/p>\n      \u003C/td>\n    \u003Ctd\n        class=\"lexical-table-cell lexical-table-cell-header-0\"\n        \n        \n        style=\"border: 1px solid #ccc; padding: 8px;\"\n      >\n        \u003Cp> Chrome-based browsers \u003C/p>\n      \u003C/td>\n    \n      \u003C/tr>\u003C/tbody>\n        \u003C/table>\n      \u003C/div>\u003Cp>Safari&#39;s rule is specific. Its documentation says ITP caps cookie expiry to 7 days when a first-party subresource resolves through a CNAME that differs from both the first-party domain and the top frame host&#39;s own CNAME. A whole site served through an edge network or CDN is not penalised on that basis, and a subdomain pointing to the same edge as the main site is treated as first-party.\u003C/p>\u003Cp>One recent change is worth knowing. In Safari 27.2 (October 2026), WebKit fixed a bug that had also capped cookies set by the page&#39;s own top-level response when the site&#39;s hostname was a CNAME to its host, a common setup on hosted stores and static hosting. That fix only covers the page&#39;s own response. Third-party CNAME cloaking stays capped at 7 days.\u003C/p>\u003Ch2>Why CNAME cloaking is a compliance issue, not just a technical one\u003C/h2>\u003Cp>\u003Cstrong>Consent rules do not depend on the domain name.\u003C/strong> Under GDPR and the ePrivacy rules in Europe, and under comparable laws elsewhere, what matters is whether you store or read identifiers on a user&#39;s device and share data with a third party. Disguising a vendor as a subdomain does not change either fact. If the tracking needs consent, it still needs consent.\u003C/p>\u003Cp>\u003Cstrong>It can leak cookies you did not intend to share.\u003C/strong> Because the vendor&#39;s server sits on your domain, it can receive every cookie scoped to \u003Ccode>example.com\u003C/code>, which may include session or login cookies. Security researchers have documented cases where CNAME-cloaked trackers received authentication cookies.\u003C/p>\u003Cp>\u003Cstrong>It undermines user choice.\u003C/strong> Users who install a blocker or pick a privacy-focused browser have stated a preference. Engineering around that preference is the kind of practice regulators and platform reviewers read as deceptive.\u003C/p>\u003Ch2>Legitimate alternatives for first-party measurement\u003C/h2>\u003Cp>You can keep accurate attribution without disguising third parties:\u003C/p>\u003Cul class=\"list-bullet\">\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"1\"\n        >\u003Cstrong>Server-side tagging on infrastructure you control.\u003C/strong> Run the collection endpoint on your own servers or a cloud project you own, apply consent decisions before forwarding events, and disclose the processors you forward to.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"2\"\n        >\u003Cstrong>Conversion APIs.\u003C/strong> Meta&#39;s Conversions API, Google&#39;s enhanced conversions and TikTok&#39;s Events API send consented conversion data server-to-server instead of relying on long-lived browser cookies.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"3\"\n        >\u003Cstrong>Short, honest cookie lifetimes.\u003C/strong> Design attribution windows around the cookie lifetimes browsers actually allow, rather than around ways to extend them.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"4\"\n        >\u003Cstrong>Clear disclosure.\u003C/strong> List every vendor that receives data in your privacy notice and consent banner, including any that operate behind a subdomain.\u003C/li>\u003C/ul>\u003Cp>For the broader picture of how attribution tools collect and match data, see our \u003Ca href=\"https://deepclick.com/resources/blog/mobile-ad-attribution-guide-2026/\">mobile ad attribution guide\u003C/a> and \u003Ca href=\"https://deepclick.com/resources/blog/link-tracking-for-ad-campaigns-2026/\">link tracking for ad campaigns\u003C/a>.\u003C/p>\u003Ch2>How to check whether your own site uses CNAME cloaking\u003C/h2>\u003Cp>Marketing teams often inherit a CNAME set up by a previous vendor. To audit:\u003C/p>\u003Col class=\"list-number\">\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"1\"\n        >List your DNS records and look for subdomains such as \u003Ccode>metrics.\u003C/code>, \u003Ccode>data.\u003C/code>, \u003Ccode>t.\u003C/code>, \u003Ccode>stats.\u003C/code> or \u003Ccode>smetrics.\u003C/code> that are CNAMEs to a domain you do not own.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"2\"\n        >Run \u003Ccode>dig +short CNAME metrics.example.com\u003C/code> for each one to see the real target.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"3\"\n        >Open your site in Firefox with uBlock Origin and check the logger for requests that are blocked after uncloaking.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"4\"\n        >Check which cookies those subdomains set, and whether any are scoped to your root domain.\u003C/li>\u003Cli\n          class=\"\"\n          style=\"\"\n          value=\"5\"\n        >Confirm each vendor appears in your consent tool and privacy notice, and that no session or login cookies are exposed to it.\u003C/li>\u003C/ol>\u003Cp>If you find a cloaked tracker you no longer need, remove the DNS record and the tag. If you still need the vendor, move it behind a consent-gated server-side setup and disclose it.\u003C/p>\u003Ch2>FAQ\u003C/h2>\u003Ch3>What is CNAME cloaking?\u003C/h3>\u003Cp>It is a setup where a site&#39;s subdomain is pointed at a third-party tracker through a DNS CNAME record, so the tracker&#39;s requests and cookies look first-party to the browser.\u003C/p>\u003Ch3>Is CNAME cloaking illegal?\u003C/h3>\u003Cp>The DNS record itself is not illegal. Using it to track users without the consent required by laws such as GDPR, or to share cookies users did not agree to share, can be. Hiding the vendor does not remove the consent requirement.\u003C/p>\u003Ch3>Does Safari block CNAME cloaking?\u003C/h3>\u003Cp>Safari does not block the request. Its Intelligent Tracking Prevention caps cookies set by third-party CNAME-cloaked responses to 7 days.\u003C/p>\u003Ch3>Can uBlock Origin detect CNAME cloaking?\u003C/h3>\u003Cp>Yes in Firefox, where it can resolve the real canonical name and block listed trackers. Not in Chrome, because Chromium does not give extensions a DNS API.\u003C/p>\u003Ch3>What is the difference between CNAME cloaking and ad cloaking?\u003C/h3>\u003Cp>CNAME cloaking disguises a tracking vendor as part of your domain. Ad cloaking shows platform reviewers different content from users, which every major ad platform prohibits. They share a word, not a mechanism. See \u003Ca href=\"https://deepclick.com/resources/blog/domain-cloaking/\">domain cloaking explained\u003C/a> for how the cloaking terms differ.\u003C/p>\u003Ch2>Summary\u003C/h2>\u003Cp>CNAME cloaking makes a third-party tracker look like part of your own site by routing a subdomain to it through DNS. Safari caps its cookies at 7 days, Firefox and Brave can uncloak it, and privacy law treats it as tracking regardless of the domain name. If you need durable measurement, use consented server-side collection and conversion APIs on infrastructure you control, and disclose every vendor that receives data.\u003C/p>\u003C/div>","https://deepclick.com/resources/blog/cname-cloaking",{"en":452,"zh-CN":452},[477],{"id":68,"title":478,"site":479,"image":481,"mobileImage":490,"targetUrl":498,"enabled":448,"postDateFrom":499,"postDateTo":500,"updatedAt":501,"createdAt":502},"2026.10.20 Jakarta summit (deepclick)",{"id":18,"key":431,"name":432,"prodHost":433,"testHost":434,"blogPath":435,"docPath":436,"zhPrefix":437,"deployHookTest":438,"deployHookProd":439,"brandAuthor":60,"brandKit":480,"enabled":448,"updatedAt":449,"createdAt":450},{"logoLight":19,"logoDark":19,"primaryColor":445,"accentColor":446,"tagline":447,"wechatName":19,"xhsHandle":19,"wechatQr":19},{"id":482,"alt":483,"updatedAt":484,"createdAt":484,"url":485,"thumbnailURL":19,"filename":486,"mimeType":458,"filesize":487,"width":488,"height":489},1068,"TrafficTalking Jakarta summit 2026.10.20 (en)","2026-09-04T10:44:12.868Z","https://cms-r2.deepclick.com/traffictalking-jakarta-banner-en-9f7ee22f6562.png","traffictalking-jakarta-banner-en-9f7ee22f6562.png",1565832,2000,400,{"id":491,"alt":492,"updatedAt":493,"createdAt":493,"url":494,"thumbnailURL":19,"filename":495,"mimeType":458,"filesize":496,"width":497,"height":489},1070,"TrafficTalking Jakarta summit 2026.10.20 (mobile-en)","2026-09-04T10:44:23.791Z","https://cms-r2.deepclick.com/traffictalking-jakarta-banner-mobile-en-3ef8e652bbac.png","traffictalking-jakarta-banner-mobile-en-3ef8e652bbac.png",580158,1200,"https://luma.com/g4tnhetc","2026-09-03T00:00:00.000Z","2026-10-04T00:00:00.000Z","2026-09-22T01:42:15.402Z","2026-09-04T10:45:03.031Z",1795749626721]