Skip to content

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.

  • 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.

Take a link apart