Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to avoid showing "xn--" for IDN domains?

If I use a domain such as www.äöü.com, is there any way to avoid it being displayed as www.xn--4ca0bs.com in users’ browsers?

Domains such as www.xn--4ca0bs.com cause a lot of confusion with average internet users, I guess.

like image 270
user1360250 Avatar asked Jun 13 '12 05:06

user1360250


People also ask

What does XN mean in a URL?

By default, many web browsers use the xn-- prefix known as an ASCII compatible encoding prefix to indicate to the web browser that the domain uses punycode to represent unicode characters. This is a measure to defend against Homograph phishing attacks.

Which browser should you use for preventing IDN?

Chrome and other browsers try to balance these needs by implementing IDN policies in a way that allows IDN to be shown for valid domains, but protects against confusable homograph attacks. Chrome's IDN policy is one of several tools that aim to protect users.

Are IDN domains supported?

Yes! Internationalized Domain Names (IDN) allow people worldwide to use domain names in local languages and scripts, and Hostinger does support them!

What is IDN encoding?

Internationalised Domain Names (IDNs) is the term used for Internet domain names written using local languages and scripts. All characters which are not one of the 26 letters of the English alphabet, the numbers 0-9 or a hyphen (minus sign) are treated as IDN characters.


2 Answers

This is entirely up to the browser. In fact, IDNs are pretty much a browser-only technology. Domain names cannot contain non-ASCII characters, so the actual domain name is always the Punycode encoded xn--... form. It's up to the browser to prettify this, but many choose to not do so to avoid domain name spoofing using lookalike Unicode characters.

like image 171
deceze Avatar answered Oct 05 '22 12:10

deceze


From a security perspective, Unicode domains can be problematic because many Unicode characters are difficult to distinguish from common ASCII characters (or indeed other Unicode characters).

It is possible to register domains such as "xn–pple-43d.com", which is equivalent to "аpple.com". It may not be obvious at first glance, but "аpple.com" uses the Cyrillic "а" (U+0430) rather than the ASCII "a" (U+0061). This is known as a homograph attack.

Fortunately modern browsers have mechanisms in place to limit IDN homograph attacks. The page IDN Policy on chrome highlights the conditions under which an IDN is displayed in its native Unicode form. Generally speaking, the Unicode form will be hidden if a domain label contains characters from multiple different languages. The "аpple.com" domain as described above will appear in its Punycode form as "xn–pple-43d.com" to limit confusion with the real "apple.com".

For more information see this blog post by Xudong Zheng.

like image 37
learner Avatar answered Oct 05 '22 11:10

learner