News for hackers. Stuff that matters.
Re:The Problem with Vanity TLDs (2011) by jefftk on Saturday January 01, 2022 @01:39PM (#29761217)
Where is 2K a limit these days?
Re:The Problem with Vanity TLDs (2011) by 7steps2much on Saturday January 01, 2022 @01:47PM (#29761303)
Chromium based browsers!

> The Google Chrome browser supports a maximum length of a web page URL of 2 MB (2048 characters) in size.

taken from [0]. Do note that this is a restriction created by the browser developers. In theory a URL can be of arbitrary length. Some browsers (like Firefox) do comply with this, though they might now show the full URL to the user, cutting it off after a certain number of characters.

[0]: https://mywebshosting.com/what-is-the-maximum-url-length-lim...

Re:The Problem with Vanity TLDs (2011) by eat_veggies on Saturday January 01, 2022 @01:52PM (#29761347)
What's interesting is how 2048 characters is 2 KB (a factor of 1000 difference) but this conversion of 2 MB = 2048 characters seems to have been copy-pasted around the web
Re:The Problem with Vanity TLDs (2011) by hackerbee on Saturday January 01, 2022 @01:54PM (#29761369)
2MB would be 2 million characters - if using ASCII characters, a bit less for special characters in UTF-8
Re:The Problem with Vanity TLDs (2011) by TheDong on Saturday January 01, 2022 @02:25PM (#29761724)
Experimentally, you can easily verify that 2MB is the actual limit, not 2048 characters.

For example, the following domain renders just fine, despite being ~2076 characters long: https://postman-echo.com/get?foo1=aaaaaaaaaaaaaaaaaaaaaaaaaa...

See the upstream chromium docs: https://chromium.googlesource.com/chromium/src/+/refs/heads/...

I don't think adding ~10 or so characters to the TLD meaningfully impacts this limit.

Re:The Problem with Vanity TLDs (2011) by sokoloff on Saturday January 01, 2022 @01:52PM (#29761346)
That would be 2KB (the error is in the reference material; you cited it faithfully).