News for hackers. Stuff that matters.
Re:A URL Lengthener by jfrunyon on Friday May 14, 2021 @02:55PM (#27158306)
Okay, but you can already store web pages in URLs. `data:text/html,<h1>Hi%20there!</h1>`

You can even base64 encode them, if you want to.

Re:A URL Lengthener by jstrieb on Friday May 14, 2021 @02:57PM (#27158334)
This is true, but linking to data URIs no longer works. Many browsers block them for "security reasons." In Firefox, a link to that page is not clickable for me:

https://git.io/JssFK

From a convenience standpoint, it's also far less likely that a URL with an http: scheme will be blocked by a random web application than one with a data: scheme. For example it makes sharing on social media sites and chat applications more feasible.