Domain hacks with unusual Unicode characters (2018) shkspr.mobi · 66 points · 48...

@best

Domain hacks with unusual Unicode characters (2018) shkspr.mobi · 66 points · 48 comments · HN thread

TL;DR A 2018 blog post by Terence Eden shows that many single Unicode characters (such as the telephone sign ℡ and numero sign №) and styled letter variants are normalised by browsers via IDNA2008 into ordinary ASCII domain labels, so edent.℡/ resolves in modern browsers. The post lists roughly 60 such characters, mostly mapping to country-code TLDs, and notes that DNS tools and social sites often fail to handle them.

  • Characters like ℡ (TELEPHONE SIGN) and № (NUMERO SIGN) normalise to ASCII via compatibility mappings, e.g. ℡ becomes 'tel', so edent.℡ reaches edent.tel.
  • Styled alphabet characters (script, fraktur, math bold, circled, superscript) also work anywhere in a domain name, not only in TLDs.
  • Browsers do the conversion; DNS servers do not resolve the raw Unicode form, and command-line tools like dig and host return NXDOMAIN.
  • Sites such as Twitter and Facebook do not auto-link these domains, so they break when shared on social media.
  • The author reports the links worked in every modern browser and OS he tested, and in curl and wget, but the approach can be used to evade URL filters.

Discussion The thread mostly treats the post as a curiosity and a security concern. Many commenters report that the links fail for them: Firefox on desktop and Android, Chrome, and Hacker News itself mangled the URLs by applying its no-fancy-text policy. Commenters then trade working workarounds, such as base64 encoding and Python idna one-liners, and discuss how browsers defend against homograph attacks. Anecdotes about early domain registrations (fuck.com, a π domain, emoji domains) and a few comments on normalisation rules add to the mood, which is light and curious with some worry about phishing.

  • Unicode in domain names is a security risk and should be restricted (many): Several commenters argue most Unicode should not be allowed in domains, citing homograph and phishing risks. One says Unicode is too complex to ever be secure and describes blocking all IDN domains at their resolver.
  • Browser homograph defences already mitigate the risk (some): Some note that browsers show punycode when a domain looks like a spoof, and that official guidance (UTS #39) exists. They argue Unicode in URLs is a reasonable trade-off for supporting many writing systems.
  • Links fail in many browsers and platforms as shown (many): A large group reports that the example links do not open in Firefox, Chrome or on Android, and that Hacker News mangled the URLs. This is first-hand evidence that the trick is inconsistent in practice.
  • Fun and interesting trivia about odd characters (some): Several commenters share favourite special characters, such as the zero-width space and Braille blank, and anecdotes about registering unusual domains in the 1990s.
  • Visual URL inspection is not a reliable defence (a few): One commenter notes that a list like this would confuse non-experts, so hovering or eyeballing links does not protect people from phishing. Another replies that the author was not recommending these for trusted services.

Links from the comments

#unicode #domainNames #security #IDNA #browsers #phishing