News for hackers. Stuff that matters.
Re:Search leakage is not FUD. Google et al., please fix it. by jonknee on Monday January 24, 2011 @11:12AM (#2135510)
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.

Re:Search leakage is not FUD. Google et al., please fix it. by benologist on Monday January 24, 2011 @11:39AM (#2135592)
Couldn't the ads access it via JavaScript?

http://www.w3schools.com/jsref/prop_doc_referrer.asp

Edit: AdSense at least does:

    var ua=document

    "&ref=",P(ua.referrer.substring(0,512))
Re:Search leakage is not FUD. Google et al., please fix it. by tghw on Monday January 24, 2011 @11:39AM (#2135594)
While 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.
Re:Search leakage is not FUD. Google et al., please fix it. by kleinsch on Monday January 24, 2011 @12:16PM (#2135729)
In 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.
Re:Search leakage is not FUD. Google et al., please fix it. by rlpb on Monday January 24, 2011 @11:39AM (#2135591)
I 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?

Re:Search leakage is not FUD. Google et al., please fix it. by axod on Monday January 24, 2011 @12:25PM (#2135781)
If the js is running on the main page itself, yes. If it's in an iframe then no.
Re:Search leakage is not FUD. Google et al., please fix it. by phpnode on Monday January 24, 2011 @11:42AM (#2135604)
Javascript exposes document.referrer, so ad networks can and do still grab your search query.