News for hackers. Stuff that matters.
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.