Live data from Hacker News

A URL Lengthener

aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com

201–210 of 313 posts

Re: A URL Lengthener

#201
Dumb question: the lengthener prepends the URL with "\x20\x0b" strings which are then not removed on the other end. So the link inserted in the redirect ends up looking like

    " \x0b \x0b \x0bhttps://www.example.org"
But this apparently works! Why does it work?

Re: A URL Lengthener

#202

Earlier quoted context omitted.

Wait could you explain a bit more how replit let you fix it so quickly

Well, I use Replit as an ide and just hitting the run button meant my fix was immediately deployed. didn't have to push to git or wait ssh into a machine to pull from master and restart

Ahhh I didn’t realize replit let you deploy, that clears things up, thanks.

Re: A URL Lengthener

#203
post #3

Love it. This is going in the toolbox along with http://shadyurl.com

Below is a link I generated for https://twitter.com/home http://www.5z8.info/winamp-cracked.exe_x8c5se_how2pipebomb Thank you for this, I laughed hard.

That totally reminds me of this story:

http://www.5z8.info/awesome-real-life-headshots_q2h6fv_linke...

Re: A URL Lengthener

#206
post #42

Earlier quoted context omitted.

I spent some time looking at similar specs for more recent browsers, but wasn't able to find anything useful. This was for a proof-of-concept I made that stores entire web pages in URLs (creatively named "URL Pages") by base64-encoding them and putting them in the URL fragment (the part after the "#"). https://github.com/jstrieb/urlpages The URLs this thing generates get pretty damn big sometimes, since I never got a…

I needed to send data over GET in 2012/2013 and built my own tiny LZW-alike compression to squeeze as much as possible into the 100kb which seemed to be the safe limit for non-ie browsers at the time

That's really interesting, I'd wondered if that was feasible! A few years ago I needed to send myself notes and URLs from a work computer to look at later, so I put it into the browser as https://.com/index.html?saveforlater=note%20to%20myself

When I got home I'd search the server logs for "saveforlater" and retrieve my note. Though it might have been faster to just write it on a slip of paper.

Re: A URL Lengthener

#207

Back in the early days of web hosting I recall that a customer had a domain name that was literally as long as ICANN would allow at the time. It was very nearly a full sentence. I don't recall the limit but this domain aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa.com is 57 characters (not including .com) and I think that sounds familiar. One could have a lot of fun with that if they wanted to (and such as…

> Back in the early days of web hosting I recall that a customer had a domain name that was literally as long as ICANN would allow at the time. It was very nearly a full sentence. I don't recall the limit

RFC 1034 specifies:

"Each node has a label, which is zero to 63 octets in length."

And:

"To simplify implementations, the total number of octets that represent domain name (i.e., the sum of all label octets and label lengths) is limited to 255."

https://datatracker.ietf.org/doc/html/rfc1034

If that's been extended, I'm not aware of it.

Re: A URL Lengthener

#208
post #117
post #66

A handy link to this discussion: https://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

I clicked on your link, half expecting to get rick-rolled, and was pleasantly surprised to find myself back on this same page.... but also kinda disappointed. :) +1 for avoiding the temptation.

Honestly that's probably the only thing I would use either of these for.

Re: A URL Lengthener

#209

Earlier quoted context omitted.

It's been years since I've seen or heard an ad for dontbeaweekendparent.com, but I still remember it, even though there's zero chance I'll ever need their services. Sometimes a long domain name can be useful.

howmanypeopleareinspacerightnow.com doesthemailruntoday.com Are the two I like.

I'm partial to penisland.net ... they make the best pens.

Re: A URL Lengthener

#210
post #155

Earlier quoted context omitted.

I made a service to store arbitrary files as URLs that is similar. The hard part is files that are too large, I can handle files up to 5mb if you click on them all via local storage. Compression helps a lot as making them base64 increases the size quite a bit. https://podje.li

Could you make whole webpages just through urls? Such as they will completely portable? Portable being taken with a grain of sand ofc.

[deleted]
Post reply on HN