5 ms·
Images are loaded with the cookies of their own site. Example: go to google.com, then open the console and type the following: var i = document.createElement(
by fenwick67 10y ago
Images are loaded with the cookies of their own site. Example: go to google.com, then open the console and type the following:
var i = document.createElement('img');
i.src= "http://news.ycombinator.com/y18.gif"; http://news.ycombinator.com/y18.gif";
Then look at the cookies sent over the network.
- shiv86 10y agoWhere do I type it ?
- artursapek 10y agoThis is how FB & others track everyone on the web through ad frames, like buttons, etc.
- hoschicz 10y agoDo they get info about from which page they got requested when one includes just an image?
- fulldecent 10y agoJust FYI, I use the uBlock Origin extension for Chrome and I believe it solves all this for me.
- cynwoody 10y agoI just tried it using Chrome 57: var i = document.createElement('img'); i.src= "https://news.ycombinator.com/y18.gif"; document.body.insertBefore(i, document.body.firstChild); The image appeared in the upper left of the Google home page. So, I clicked over to the Network tab and viewed the headers. The request headers do not include any cookies. If Hacker News were a broker using GET requests to buy shares, and the image URL was such a request, HN would not have known whose account to buy the shares for, even though I'm logged in in another tab. So, presumably, the hack does not work in Chrome 57. Edit: Never mind. It's because I have third-party cookies blocked. If I unblock third-party cookies, my HN cookie does get sent.
- deleted 10y ago[deleted]
- Pxtl 10y agoImho this is a complete misfeature of the web. It facilitates invasive tracking in exchange for very marginal utility.