Live data from Hacker News

The World's Longest URL “Shortener”

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com

11–20 of 33 posts

Re: The World's Longest URL “Shortener”

#17
Hey All, OP here, contrary to popular belief I did not make this :) I saw it on GitHub when I noticed someone who starred the Prefect repo had the username `programming`, clicked their profile and saw this: https://github.com/programming/aaaaaaaaaaaaaaaaaaaaaaaaaaaaa... and just thought it was hilarious. Knew you all would get a kick out of it!

Re: The World's Longest URL “Shortener”

#19

How does this work?

The source code (JavaScript) is quite readable.

This seems to be the backing store:

https://www.jsonstore.io/9cfa993cd55704f2254949dc21a5f3a7a63...

With the ability to get a specific key from this style of URL:

https://www.jsonstore.io/9cfa993cd55704f2254949dc21a5f3a7a63...

And post to it to set a value.

There's no security though - anyone can overwrite any URL - e.g. in the console on that page:

    pushJSON(endpoint + '/AAAAaaAaAaaAAaaAAAAAaAAAAaAAaAAaaaAAAAaA', 'http://www.example.com/');
Post reply on HN