4 ms·
LinkedIn sets X-Frame-Options: sameorigin on requests, so this is likely to only work on old browsers (IE7 and lower, basically).
by ceejayoz 11y ago
LinkedIn sets X-Frame-Options: sameorigin on requests, so this is likely to only work on old browsers (IE7 and lower, basically).
- bkm 11y agoYou could load it as an image, as cross-origin policies are not enforced for images. Not sure if their tracker is server-side or requires loading JS.
- diggan 11y agoAlso, you should be able to have a proxy on your own domain, changing nothing but the `X-Frame-Options` header.
- dangrossman 11y agoIt's cookies in each user's browser that tell LinkedIn who's viewing a profile. They wouldn't be transmitted to your proxy, so this wouldn't work.
- diggan 11y agoOh, that's true. Good point that I didn't think about at all. Just have done this myself in simple cases where cookies aren't involved.
- aidos 11y agoI've looked at the code - there definitely is some tracking done via XHR requests after the page load. This includes CSRF tokens so you can't hit those tracking links directly. Having said that, we still can't know whether or not the profile view information is harvested from the server-side logging of the main page view or not without testing it.
- annnnd 11y agoTo play the devil's advocate: if LinkedIn are smart they should offer this functionality (for premium users, of course). This is really useful info for businesses.
- dangrossman 11y agoPeople don't want every website they visit to automatically know their real identity. This would chase people off their platform.
- jan_g 11y agoLinkedIn also has an option 'Select what others see when you've viewed their profile' in account privacy settings which one can set to 'Anonymous'.
- annnnd 11y agoI think you overestimate how much ordinary people care / know about their online privacy. I think almost nobody would leave. That said, I myself wouldn't be too happy about it, but I would try to find some other solution instead of leaving LinkedIn.
- manigandham 11y agoNot sure why you're downvoted - because they already do this for businesses, just not private users. There's no money in it outside of selling data to businesses but LinkedIn, Facebook and tons of other major internet properties all share login data specifically to identify users across the web. (I work in digital advertising)
- username223 11y agoWhat kind of data for each profile? Sites? URLs? What types of "selectors" are available, e.g. "profile number X" or various demographics? And roughly what does it cost?
- 11y ago
- barkbark 11y agoFor what it's worth, this technique used to work by loading profiles as a 1x1 pixel image. That technique may still be effective.
- ishener 11y agobut the request has already been sent. Yes, the browsers will respect this header and not display the page and not run javascript, BUT what if the user tracking is done on the server in the first request? In that case, this technique might work...
- deleted 11y ago[deleted]
- orf 11y agoI assume they make a preflight HEAD request the same as CORS, in which case they would have to be very sloppy to make that count towards the stats.
- realityking 11y agoNope. There's no preflight for X-Frame-Options, as it was designed as a click jacking prevention.
- joshuahutt 11y agoI just tried it with Chrome. It works -- the view showed up, even though Chrome refused to load the page in the frame.