The parts of a web address
Updated
A link looks like one long word, but it is a set of parts with strict rules. Knowing the parts is the single most useful skill for telling a real link from a fake one, because the tricks all depend on people reading the address left to right.
https://login.example.com:8443/account/settings?tab=security#top
The parts
- Scheme (https): how to talk to the site. https is encrypted, http is not
- Website name (login.example.com): where to connect
- Port (:8443): which door on that server. It is left out when it is the standard one
- Path (/account/settings): which page or file the site should return
- Query (?tab=security): extra values handed to the page, joined with &
- Fragment (#top): a place inside the page, which the browser keeps and never sends to the site
Read the name from the right
The website name is read from right to left. The last part is the ending, such as .com or .co.uk. The part just before it is the registered domain: the one name an owner actually paid for. Everything to the left of that is a subdomain, which the owner can invent freely and which proves nothing. In login.example.com the registered domain is example.com, and login is only a label the owner chose.
How a bad link uses this
- A familiar name in front: paypal.com.secure-login.example.net really belongs to example.net
- A fake name before an @: in https://paypal.com@example.net/ everything before the @ is a username, and the link goes to example.net
- Lookalike letters: some letters from other alphabets are drawn exactly like English ones, so a name can read as apple and not be
- A number instead of a name, sometimes written in a form browsers still understand
- A link inside the query: ?redirect=https://other.example sends the visitor on from a site they trust
Good to know. A well-written address proves nothing about the page behind it. The address tells you who will answer, not whether they are honest. To find out where a link goes, look it up, do not click it.
Related
- Spotting a dangerous link before you clickThe common ways a link in an email, text or call is made to deceive, and a safe way to check one without opening it.
- DNS records explainedWhat the common DNS record types (A, AAAA, CNAME, MX, NS, SOA and TXT) do, and what a TTL means for changes.
- WHOIS and RDAP: who registered a domainWhat a registration record shows, how RDAP replaced WHOIS, and why you rarely see the owner's name any more.
- Spotting a scam text messageThe wording and tricks that text messages use to rush or fool you, and what to do instead of replying or tapping a link.
- Lookalike domains and typosquattingHow a name is made to look like another, why scammers register them, and what you can check and do about the ones that imitate yours.