News for hackers. Stuff that matters.
Re:llIlI.lI: a URL shortener using only I/l to encode domains by 9woc on Sunday May 12, 2024 @04:51AM (#40333078)
This gave me a laugh. These are 3 different webpages:

    llIIlIIIlIllIIIIIIlIIIlIllIlIIII.llIlI.lI
    lIllIllllIIllIllIIllllllIIIIIlII.llIlI.lI
    lIlllIIIIlIIlIlIIllllIlIlIlIIlII.llIlI.lI
Re:llIlI.lI: a URL shortener using only I/l to encode domains by smokel on Sunday May 12, 2024 @05:03AM (#40333128)
Some basic detective work led me to the source code for the URL generation [1]. We can all stop reverse engineering the algorithm now: it appears that it uses a random generator to come up with the I's and l's.

[1] https://github.com/chenxuuu/shit-url/blob/llIlI.lI/inc/class...

Re:llIlI.lI: a URL shortener using only I/l to encode domains by ykonstant on Sunday May 12, 2024 @04:55AM (#40333099)
This reminds me of my unary directory hierarchy: a segment in my test suite consisting entirely of unary newline files and subdirectories, i.e. with filenames '\n\n...\n' for some number of newlines. I use it to test if shell script authors understand how to treat filenames correctly.
Re:llIlI.lI: a URL shortener using only I/l to encode domains by ahazred8ta on Sunday May 12, 2024 @06:14AM (#40333328)
You monster!
Re:llIlI.lI: a URL shortener using only I/l to encode domains by Daviey on Sunday May 12, 2024 @10:25AM (#40334728)
Funny yes, but any shell script I write I'd be happy for it to fail (gracefully) this test. Unless you can convince me there is a requirement for something as convulted as this?
Re:llIlI.lI: a URL shortener using only I/l to encode domains by ykonstant on Sunday May 12, 2024 @07:42PM (#40338424)
When you are writing shell scripts to be deployed to systems you do not control, you are required to handle filenames you do not control; i.e. all of them. I don't care about convincing you, I did not write the tests for you in particular.
Re:llIlI.lI: a URL shortener using only I/l to encode domains by beardyw on Sunday May 12, 2024 @05:45AM (#40333247)
Google offers to translate the home page from Finish - ends up with the same.
Re:llIlI.lI: a URL shortener using only I/l to encode domains by cornholio on Sunday May 12, 2024 @04:44AM (#40333056)
The interface seems to be broken on desktop Firefox with uBlock, I can't shorten anything.
Re:llIlI.lI: a URL shortener using only I/l to encode domains by Cyphase on Sunday May 12, 2024 @04:56AM (#40333103)
You can use this in the dev console:

  await fetch('https://llili.li/api/set.php', {method: 'POST', body: JSON.stringify({url: "https://news.ycombinator.com/item?id=40332992"})}).then(r => r.json()).then(d => d.content.url)
Re:llIlI.lI: a URL shortener using only I/l to encode domains by fredthedeadhead on Sunday May 12, 2024 @04:48AM (#40333070)
So, I think this hilarious, but link shorteners have to be stable, right? What happens when link shorteners go offline? Is there a way of decoding shortened links without the server?
Re:llIlI.lI: a URL shortener using only I/l to encode domains by danpalmer on Sunday May 12, 2024 @04:52AM (#40333083)
Link shorteners always depend on the server. They just put the link in a database and map it to some shorter code.

You could have just an encoding and compression scheme, with no storage, but it wouldn’t be able to shorten the urls by much in most cases.

Re:llIlI.lI: a URL shortener using only I/l to encode domains by beardyw on Sunday May 12, 2024 @05:52AM (#40333262)
Thinking about it that is absolutely possible, but only for you personally. A site could store your destination as local storage and translate through a service worker (which runs even if the site is offline). Half a page of JS would do it. Not sure if it is useful though?
Re:llIlI.lI: a URL shortener using only I/l to encode domains by lelag on Sunday May 12, 2024 @04:55AM (#40333096)
All link shorteners, even those that use a readable URL, keep the target URL in a database. It's not possible to decode any of them without the service being available.

The novelty here is that the service deliberately makes itself unusable for comedic effect

Re:llIlI.lI: a URL shortener using only I/l to encode domains by crtasm on Sunday May 12, 2024 @09:17AM (#40334205)
There's at the very least one group working to archive them: https://wiki.archiveteam.org/index.php/URLTeam
Re:llIlI.lI: a URL shortener using only I/l to encode domains by rsync on Sunday May 12, 2024 @01:33PM (#40336089)
"So, I think this hilarious, but link shorteners have to be stable, right?"

Yes, a link shortener does need to be stable but luckily they are extremely simple to operate.

You should be able to run a very popular link shortener on a leftover 1U with very low associated bandwidth and power costs. It's not unrealistic for a person, or group, to commit to this indefinitely.

Re:llIlI.lI: a URL shortener using only I/l to encode domains by haunter on Sunday May 12, 2024 @04:57AM (#40333106)
I first saw barcoding in Starcraft 2, players use this since the game’s release.
Re:llIlI.lI: a URL shortener using only I/l to encode domains by DaSHacka on Sunday May 12, 2024 @08:09AM (#40333780)
Barcode usernames are quite popular in FPS games with cheaters as well.

Not sure why, makes it really easy to differentiate a player who got lucky with timing from one with ESP.

Re:llIlI.lI: a URL shortener using only I/l to encode domains by blackoil on Sunday May 12, 2024 @04:47AM (#40333067)
lIIIIlIlllIIIIIIIIIllIIIIlIIllIl.llIlI.lI
Re:llIlI.lI: a URL shortener using only I/l to encode domains by e38383 on Sunday May 12, 2024 @08:26AM (#40333879)
Thank you, internet. I needed that today :)