Forum Moderators: Robert Charlton & goodroi
I'm not using any pre-fetch software, but have set my browsers to ask about cookies.
How can a site try to set a PHPSESSID cookie from just being listed in Google's SERPS?
Since the request is identified as X-moz: prefetch, one could count it as a Google SERPS listing, decide what to actually give the prefetching browser, opt out of displaying certain ads on such a page...
Google has a pretty detailed description of how to prevent pages from being prefetched, but I wonder, will it actually work?
from [google.com...]
To block or ignore prefetch requests (from Google and other web sites), you should configure your web server to return a 404 HTTP response code for requests that contain the "X-moz: prefetch" header.
Wouldn't that actually serve up a 404 page to the user who has prefetched the page and then click on the link?