Punycode Converter · Tutorial

How to spot lookalike (homograph) domain names

5 min readbeginnerUpdated

A link in an email looks like it points to a well-known site, but something feels off. Attackers can register domains using letters from other alphabets that look identical to Latin ones. This tutorial uses Punycode to expose these lookalikes, so you can tell real domains from fakes.

What you need

  • The Punycode Converter
  • The suspicious domain names (the Try it button loads two lookalikes and two genuine international domains)

Steps

  1. Paste the domains

    Paste one domain per line. The sample contains two xn-- domains, xn--pple-43d.com and xn--80ak6aa92e.com, plus two genuine international names.

  2. Read the decoded forms

    The two xn-- lines decode to what look like аpple.com and аррӏе.com. They look like a famous brand, but they're made from Cyrillic letters, which is why they needed Punycode at all.

    xn--pple-43d.com    →  аpple.com
    xn--80ak6aa92e.com  →  аррӏе.com
  3. Check the genuine international names

    bücher.example and münchen.de are encoded to xn--bcher-kva.example and xn--mnchen-3ya.de. Their decoded form is real German words, and the ü is expected. International domains aren't suspicious in themselves, only ones that imitate other names.

  4. Apply the rule of thumb

    If a domain that should be plain English, like a bank, a shop or a login page, has an xn-- form at all, it isn't the real one. The real apple.com has no Punycode form, because it's pure ASCII.

Try it yourself

Opens the Punycode Converter with this tutorial's sample loaded.

Try it now

Common mistakes

Trusting how a link looks
Email clients and some apps display the Unicode form, so fakes look perfect. Hover over the link, copy the domain and check it here.
Flagging every international domain
Millions of legitimate sites use non-Latin scripts. The warning sign is a domain that imitates a different, well-known name.
Forgetting subdomains
Attackers also use lookalikes in subdomains, such as login.аpple.com.example.net. Read the whole hostname, especially the part just before the last dot.

Next steps

Go back to the Punycode Converter, or keep going with one of these:

FAQ

Do browsers protect against this?

Partly. Modern browsers show the xn-- form for suspicious mixes of scripts, but the rules aren't perfect and other apps vary.