Lookalike domains and homograph attacks: how paypa1.com fools you
Updated · PasteName team
Some fake links are written to be misread. Your eyes see apple.com or paypal.com. Your computer sees a completely different address. This is how it works, and how to catch it.
Two kinds of lookalike
1. Typosquatting: swapped or extra characters
The attacker registers a name that differs by one character or two:
paypa1.com— the digit 1 instead of the letter lrnicrosoft.com— “r” + “n” look like “m” in many fontsgoggle.com,amazon-support.com,paypal-secure.net— a typo, or a real brand plus a word
These use only normal Latin letters, so the browser shows them as they are. You have to read carefully.
2. IDN homograph attacks: letters from other alphabets
Domain names can contain letters from Cyrillic, Greek and other scripts (internationalized domain names, or IDNs). Several of them look identical to Latin letters: Cyrillic а е о р с х versus Latin a e o p c x. A domain spelled entirely in Cyrillic lookalikes can appear as “apple.com” while being a different site.
In 2017 a researcher showed this with a domain that rendered as apple.com in some browsers. Browsers responded by showing suspicious mixed-script names in their raw form instead.
What punycode is
Under the hood, every non-Latin domain is stored as ASCII starting with xn--. This is called punycode. For example, the Cyrillic lookalike of “apple” is stored as xn--80ak6aa92e.com. When a browser is unsure, it shows you that xn-- form, which is your cue to stop.
Real non-English sites use IDNs too (for example, Russian or Chinese company names), so xn-- alone isn’t proof of a scam. A familiar brand name that turns out to be xn-- is a strong warning.
How to spot a lookalike on Mac
- Hover over the link and read the domain in the status bar, slowly.
- Compare it to how you normally reach the site. If you usually type
paypal.com, why does this one look different? - Paste the link into a plain-text place (like the Spotlight bar or TextEdit in plain text mode) and zoom in. A “1” and an “l” differ in most monospace fonts.
- Look for
xn--after pasting into a text field. - Use a password manager. It won’t offer your saved password on a lookalike domain, which is a very reliable signal.
How PasteName flags lookalikes
When you copy a link, PasteName compares its domain against a bundled list of about 200 well-known brands (plus local banks and payment apps in Uzbekistan) using edit distance, so paypa1.com is caught as one character away from PayPal. It also flags punycode and mixed-alphabet names. All of this runs on your Mac, with no network request. A flagged link is pasted as ⚠️ paypa1.com | Account update, so the person you send it to sees the warning too.
Like any heuristic, it can miss a brand that isn’t on its list, and it can flag a harmless site that happens to look similar. Treat the ⚠️ as a reason to look closer, and the absence of one as “no signals found”, not as a guarantee.