3 ms·
Referrers aren't passed on to all the elements loading on the page. If you click to nytimes.com from a Google search, the referrer is sent once in the HTTP requ
by jonknee 16y ago
Referrers aren't passed on to all the elements loading on the page. If you click to nytimes.com from a Google search, the referrer is sent once in the HTTP request to nytimes.com and then your browser makes all the other required requests separately once it gets back the HTML page. When the ads are loaded they don't get your Google referrer, they'll either get nothing or a nytimes.com referrer. You can work around this with JS (which is how Google Analytics works), but it's completely unnecessary for the problems Gabe's talking about...
Referrers aren't needed for targeting. On that Gout example, Google knows you researched gout so they can target you with gout ads on sites that run AdSense or DoubleClick (which is a lot of ads). If you visited another site about gout that ran ads from a different network, then they too could target you. The referrer has nothing to do with it, it's what you're requesting.
If you don't want targeted advertisements, it's far more effective to use adblock or modify your /etc/hosts file than it is to use DDG.
- rlpb 16y agoI know that Javascript can pick up referrers, since Google Analytics gets referrers and uses Javascript and nothing else. Can't advertising networks insert code to pick up referrers in the same way?
- axod 16y agoIf the js is running on the main page itself, yes. If it's in an iframe then no.
- benologist 16y agoCouldn't the ads access it via JavaScript? http://www.w3schools.com/jsref/prop_doc_referrer.asp http://www.w3schools.com/jsref/prop_doc_referrer.asp Edit: AdSense at least does: var ua=document "&ref=",P(ua.referrer.substring(0,512))
- tghw 16y agoWhile it is true that the requests that load the ads don't include the referrer, any Javascript loaded directly into the page can access the referrer (window.location.orgin). A lot of ad networks work this way, meaning they do have access to those search terms.
- kleinsch 16y agoIn many cases, ads are loaded in iframes, which hide the referrer from the ad network. It's not in all cases, but most big publishers don't want malformed ad network JavaScript to destroy their entire page, so they wrap ad calls in iframes to protect against that.
- phpnode 16y agoJavascript exposes document.referrer, so ad networks can and do still grab your search query.