A URL Lengthener

by ykdojoon 5/14/2021, 4:28 PMwith 294 comments

by strict9on 5/14/2021, 5:49 PM

Love it.

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

by unnahon 5/15/2021, 7:49 AM

Microsoft also provides a URL lengthener via "Advanced Outlook.com security for Office 365 subscribers". Thanks to them, any URL we send or receive by email at work turns into an unrecognizable monster. At least the links include comforting words like "safelinks" and "protection" so that everyone can feel safe and protected.

by Jorge1o1on 5/14/2021, 5:56 PM

Was posted on Hacker News:

https://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

by hvenevon 5/14/2021, 8:39 PM

This domain uses 56 `a`-s. Interestingly enough 63 `a`-s .com is also a URL lengthener: http://aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

by gumbyon 5/14/2021, 6:56 PM

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

by dangon 5/14/2021, 9:58 PM

We took "Show HN" out of the title because it implies that the project is the submitter's own personal work. Please don't do that if it isn't. The rules are here: https://news.ycombinator.com/showhn.html.

https://news.ycombinator.com/item?id=27157877

by geocrasheron 5/14/2021, 6:28 PM

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 was done in this case).

Then there's

http://llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogog...

by chunkyguyon 5/15/2021, 7:01 AM

Who needs this when you can simply use Google search results URL

https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&c...

by reguson 5/14/2021, 10:07 PM

This reminds me, I did a little investigation into what the actually URL length limits are per browser. Here is the blog post in case you are interested:

https://joelregus.com/posts/url_length_limits/

by google234123on 5/14/2021, 6:06 PM

> Disclaimer: Since there is a maximum letter count to a URL, there is a slight chance your resulting URL will be too long to use. No worries, try running it through a site like bit.ly and then paste that one over here. Every resulting URL ends up having a minimum number of characters, so your URL will still be plenty long!

This seems like something you can trivially solve yourself. Is there any good reason why you push this issue on the user?

by TimLelandon 5/14/2021, 5:54 PM

haha nice! I built the exact opposite the shortest possible URL shortener :) https://t.ly/

by tasson 5/14/2021, 5:52 PM

I lengthened the lengthener URL about 7 times before my browser complained it was too long

by XiSon 5/15/2021, 8:29 AM

I just couldn't resist.

https://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

by nr2xon 5/15/2021, 1:21 AM

Don't forget Total Asshole Compression!

TAC* is the best compression format available for the web today! By using revolutionary scientific methods, research teams at RSG and the Beige Programming ensemble were able to a compose a complex software tool that expels many of the myths that surround modern file compression techniques. The secret of TAC compression is not that it makes files smaller, but that it makes files bigger, much bigger.* This provides the end user with a compression tool to meet almost any need in today's bandwidth and gig overloaded computing world.

http://tac-compression.com

by hotenon 5/14/2021, 7:23 PM

I was inspired by a certain someone's meandering speech patterns to do something similar some years ago: https://www.biglyurl.com/

by chadlavion 5/14/2021, 6:33 PM

"So that's what things would be like if I'd invented the thing longer. Oh, a man can dream though."

by amasadon 5/14/2021, 7:08 PM

Awesome to see a Replit app on top of HN! Our hosted apps proxy requests per second doubled (3k to 6k) by virtue of this being on HN.

This app is fully made and hosted on Replit using Replit DB too:

Frontend: https://replit.com/@piemadd/url-lengthener

Backend: https://replit.com/@piemadd/ax56api

Check out other Replit Apps here (launched yesterday): https://replit.com/apps

by cwmartinon 5/15/2021, 2:56 PM

Related: The longest valid domain name possible http://a.b.c.d.e.f.g.h.i.j.k.l.m.n.oo.pp.qqq.rrrr.ssssss.ttt...

by nayukion 5/15/2021, 2:10 PM

A nice feature is that when you design a URL lengthener, you can make the service stateless. The backend doesn't need to store every URL that it was ever given. This contrasts with URL shortener services, which must store state in order to generate very short URLs. (In theory, shorteners can use stateless compression like zlib, but it wouldn't save enough space to be worth it.)

by engineer_22on 5/14/2021, 7:34 PM

The author is a highschool student

by bscphilon 5/15/2021, 12:16 AM

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 <meta> redirect ends up looking like

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

by david422on 5/14/2021, 6:45 PM

Reminds me of an API I worked on. We had a max length for some token. A client had an incrementing sequence number, so they decided to pad it out to the max length. It looked something like this:

A00000000000000000000000000000000000000000000000000001

A00000000000000000000000000000000000000000000000000002

etc

by nemacolon 5/14/2021, 6:28 PM

Fyi - I posted this link to the sub https://www.reddit.com/r/AAAAAAAAAAAAAAAAA/

It seems to fit very well there.

by rnotaroon 5/15/2021, 8:25 PM

On a related note, I did a client side (really badly coded) link lengthner 5 or 6 years ago. : https://rickynotaro.github.io/B.U.R.N/

It basically just base64 encode the url to generate the link and decode the url arg to do the redirect.

I also own this email address that I made just for fun: JesuisLeProprietaireDeCeNomDeDomaineTresLongBonjourCaVaBienAller@icirickynotarodemontrealetceciestunnomdedomainebeaucouptroplong.club

by Lorinon 5/14/2021, 9:07 PM

I keep http://www.whyisyourdomainnamesolong.com as an email forwarder. Surprisingly memorable.

by gus_massaon 5/14/2021, 6:53 PM

Somewhat related

https://news.ycombinator.com/item?id=19511735 (45 points | March 28, 2019 | 32 comments)

https://news.ycombinator.com/item?id=24229085 (17 points | 8 months | 7 comments)

by yborison 5/14/2021, 5:48 PM

Example result:

https://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

Stellar!

by Zamicolon 5/14/2021, 9:35 PM

For the curious, aaa[...].com is just converting your string to hex, and then replacing the hex with various types of "A"'s.

If you wanted to use an alphabet other than 16 characters, you could do arbitrary base conversion: https://convert.zamicol.com/

This would allow you to use more or less characters.

by quickthrower2on 5/15/2021, 6:43 AM

This can also be done using data urls. You can make a long URL encoding a HTML doc with a meta redirect

by devoutsalsaon 5/14/2021, 6:42 PM

Hehe. Reminds me of Freaking Huge URL, which sadly is no longer with us.

https://lifehacker.com/freaking-huge-url-lengthens-too-short...

by joeblauon 5/14/2021, 7:13 PM

I don’t know why but just seeing this title made spontaneously start laughing.

by kyproon 5/15/2021, 1:44 AM

I guess I'm not the only one drinking tonight. =)

Anyway, cool project. It's okay to build something for a laugh every now then. I know these days sometimes I forget I used to do this for fun. Have a good weekend all.

by andrewmcwatterson 5/14/2021, 6:18 PM

I've never thought about a practical URL that couldn't be accessed by specific browsers based on length as something someone would explicitly want versus something to avoid until this post.

by reputeton 5/15/2021, 12:01 AM

Absolutely irrelevant, but I cannot help but remember the nooooooooooooooo button.

http://www.nooooooooooooooo.com/

by asimon 5/15/2021, 5:25 AM

For anyone who wants to self host a URL lengthener https://github.com/asim/url

by rafaelvascoon 5/15/2021, 12:47 AM

Tried it on https://news.ycombinator.com/. Malwarebytes instantly blocked it. LoL.

by floatingatollon 5/14/2021, 9:46 PM

On iOS, the location bar animates scrolling through the aaaaaas when you navigate to the site. Someone had to design that animation. Thank you, anonymous designer.

by mrkrameron 5/15/2021, 3:41 PM

I don't get it. Is this a joke or it has some real use?

by ellis0non 5/15/2021, 2:42 AM

Chia coin html internet

Interesting where is frontier who can make most long 256+ url shorters & lengther vector hahah

like tiny.cc -> aaaaaaaa...aaa -> goog.gl -> bbb...bb -> etc

by log101on 5/15/2021, 12:54 PM

I'm not an advanced programmer, so can somebody explain me why would you collect "insights" for a such made-as-a-joke service.

by ghkbrewon 5/14/2021, 11:56 PM

Now they need to register every aaaa... domain from ~20-50 characters so all you need to do is hold the "a" key for a little bit.

by sedatkon 5/15/2021, 2:54 PM

Funny, I present a fictional URL shortener called Supercalifragilisticexpialidocious as an example in my book Street Coder :)

by annoyingnoobon 5/14/2021, 8:29 PM

Scraper? Honeypot?

I guess my tinfoil hat is too tight. While its cool and funny I inherently don't trust things like this.

Edit: the concern is about data collection and profiling over time, it could essentially be an advertising model, you get an idea of things a particular cookie/IP/fingerprint does. depending one what is in your original link, all kinds of ids and data can be sitting in the url alone. Does a link to my social media account potentially expose my PII?

by timwison 5/15/2021, 8:40 AM

I’m hiring a head of cyber security at the moment. I think I’ll use this or shadyurl.com to send the zoom link.

by vijayzzon 5/15/2021, 3:47 AM

Hacker News URL Lengthened...

https://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

by trevor-eon 5/14/2021, 8:52 PM

lol neat project, this would get bonus points from me if it made them look like Amazon product URLs :)

by dbishon 5/14/2021, 6:37 PM

Love it. Always looking for new weird side projects. Can’t be too productive on your hobby software

by bmh100on 5/14/2021, 8:19 PM

Slightly off topic, but does anyone know of a good, self-hosted URL shortener?

by finalhackeron 5/17/2021, 8:18 AM

Looks great. But I don't known any scenes we need to use this function.

by ameliuson 5/14/2021, 6:25 PM

Can you use these urls in tweets?

If so, how many of these urls would fit in a tweet?

by soheilon 5/14/2021, 8:06 PM

The problem with this is that when I hold and press "a" in the address bar on mac at least alternate characters menu pops up instead of the key being repeated. I'd suggest this new domain:

1234567890qwertyuiopasdfghjklzxcvbnm.com

by campgroundon 5/15/2021, 3:40 PM

Reminds me of David Rees’ urlshorteningservicefortwitter.com

by nhumrichon 5/14/2021, 10:37 PM

really isn't long enough. was expecting 56 subdomains of 56 a's, with at least 5 times the path length

by colllectorofon 5/14/2021, 7:27 PM

I rarely use Discord these days, but when I need to link something next time, I'll use this service. (Discord still doesn't support hyperlinks.)

by qshamanon 5/14/2021, 7:54 PM

I would love to have a longer url.

by greenshackle2on 5/14/2021, 7:07 PM

I'm a bit disappointed that the lengthened URL for http://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa... itself doesn't work. That is:

https://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

EDIT: Uh, I don't know what I did differently, but this one works:

https://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

EDIT: Looks like the site is actively being updated, there are new option checkboxes, the self-reference link only works with "Use a path instead of an URL" checked

EDIT: I repeatedly lengthened maybe a dozen times, that seems to get it stuck in a loop:

https://aaa.aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

by breckon 5/14/2021, 6:42 PM

I love long URLs and build them into my apps for sharing. You can have powerful apps that are 100% clientside and use just a dumb file web server.

For example, here's a URL that contains both the grammar for a language that compiles to CSS and also example code. Works like a charm.

https://jtree.treenotation.org/designer/#grammar%0A%20toolin...

by bruhhhon 5/14/2021, 7:20 PM

funny project but why are you tracking the people visiting the website??

by grumpleon 5/14/2021, 7:35 PM

Meh... These links could be longer... can we get a URL Lengthener Lengthener?

by marmot777on 5/14/2021, 7:18 PM

Awesome!

by lurkerasdfh8on 5/14/2021, 6:11 PM

fun fact. in the browser wars of 1993(?) i looked at the specs from netscape (mozilla dady for the young folks) and microsoft (what w3c? ha!) and netscape release a browser spec that said "X must support up to Y", as in "url must be up to 1024 chars", "cookies must be up to 1mb", etc...

then microsoft release IE4 (or 6?) web spec. It was literally a copy of netscape's but with "up to" replaced with "at least".

and from this day on, nobody knows about limits on the standard and everything was up in the air, just so sites could work on IE4 and be broken on netscape. Thanks microsoft!

I did some experiments to test the actual URL limit of IE. at the time it was around 4MB, but IE would still go over if you got creative with hostnames levels and odd schemas.

-- quick edit:

keep in mind, in 1993, the money from giving out free browsers where on the servers: netscape server vs microsoft IIS (just like today giving free browsers the money is on makig it easier to access YOUR content --e.g. default search, etc).

Making your browser crash the competitor server mean that server was seen as lower quality. (Same thing with google deliberately crashing performance of firefox on their services today[0])

The point of microsoft making this change was to force netscape to update their server as they increase the URL limit arbitrarily to all IE users.

[0] https://www.zdnet.com/article/former-mozilla-exec-google-has...

by ergot_vacationon 5/14/2021, 8:12 PM

This is the kind of project we need more of. No politics, no perverse economic incentives. Just one human helping other humans utterly obliterate their address bar.

by mdomson 5/15/2021, 7:57 PM

Unfortunately due to the way your service performs redirects(?), link previews give away the game. if I post a shadyurl.com link I get a link preview of the target website, but link previews for a(x56) show a preview for your website. Here's an example from a Messenger conversation where I used both services:

https://imgur.com/a/UPFGLug

by Black101on 5/14/2021, 7:08 PM

Mods complain about people making comments that are "obvious" but they don't complain about URL hiding services?

Here is an example: https://news.ycombinator.com/item?id=27122041