News for hackers. Stuff that matters.
Re:A URL Lengthener by arghwhat on Saturday May 15, 2021 @06:50AM (#27164102)
How would Microsoft, Google and Facebook otherwise be able to track when and what you click?! Think of the hit to their revenue!
Re:A URL Lengthener by cube00 on Saturday May 15, 2021 @07:09AM (#27164192)
They can use onclick and leave the href attribute alone.
Re:A URL Lengthener by Closi on Saturday May 15, 2021 @08:09AM (#27164486)
I'm sure this is something they have considered as their own analytics program uses onclick to track outbound traffic - I assume it's a mix of speed, reliability and the ability to track without javascript.

Plus, if it was done on OnClick there would definitely be an add-on to disable the tracking on all browsers.

Re:A URL Lengthener by mobjack on Saturday May 15, 2021 @09:24AM (#27164985)
There are some privacy reasons for it.

A direct link from a search page will let websites see the search terms that users entered in to navigate there.

Google still knows everything so it doesn't protect you from them, but websites are more in the dark what users were doing before clicking the link.

Re:A URL Lengthener by simcop2387 on Saturday May 15, 2021 @10:18AM (#27165441)
And then Google aggregates that back to sides that use Google analytics so that they get both sides of the users
Re:A URL Lengthener by niutech on Saturday May 22, 2021 @03:23AM (#27244328)
There is rel="noreferrer" for that.
Re:A URL Lengthener by arghwhat on Saturday May 15, 2021 @10:32AM (#27165553)
Then they can't track if you share the link!
Re:A URL Lengthener by igravious on Saturday May 15, 2021 @08:07AM (#27164480)
But what to do about them JavaScript disabling varmints then?
Re:A URL Lengthener by JimDabell on Saturday May 15, 2021 @08:16AM (#27164515)
That’s what hyperlink auditing with the ping attribute is for:

https://html.spec.whatwg.org/multipage/links.html#hyperlink-...

You put a `ping` attribute on a link, and when the user follows the link, the browser sends a request to the ping URL notifying it of the action.

Firefox disables it by default, which doesn’t seem like much of a privacy win considering JavaScript is enabled by default and can polyfill this functionality.

Re:A URL Lengthener by moshmosh on Saturday May 15, 2021 @11:35AM (#27166132)
Giving Javascript the ability to make requests without asking the user via dialog for each one—if we must allow it at all—was a mistake.
Re:A URL Lengthener by SumBird on Sunday May 16, 2021 @02:47PM (#27175995)
That's the point, How else are we supposed to fight these companies? Take their source of money away and watch them squirm.