NetSecTools

Home / Guides / How to check if a link is safe before you click it

How to check if a link is safe before you click it

ยท 9 min read

Most phishing and scam links share a trait: they are written to look like something they are not. You can recognise most of them if you know how a web address is built and where to look.

The parts of a web address

Take this address:

https://user:[email protected]:8443/account/reset?token=abc#top
Part Example What it means
Scheme https:// How the connection is made. https is encrypted, http is not
Credentials user:secret@ An optional username and password. Almost never used on real sites
Host login.example.com The server you connect to. This is the part that matters
Port :8443 Optional. Normal sites do not show one
Path /account/reset Which page on that server
Query ?token=abc Extra data passed to the page
Fragment #top A position inside the page, handled by your browser

The only part that tells you who runs the site is the host, and inside the host the key piece is the registrable domain: the name just before the ending (.com, .org, .co.uk).

Read the host from right to left

In login.example.com, the owner is example.com. Everything to the left (login) is a label that the owner chose. So these two addresses belong to completely different people:

  • https://accounts.google.com belongs to Google.
  • https://accounts.google.com.security-check.example belongs to whoever owns security-check.example.

When the real name is pushed to the middle, someone is trying to hide it.

Common tricks

Look-alike names

Replacing letters with similar ones: paypa1.com (a one instead of an L), rnicrosoft.com (โ€œrnโ€ looks like โ€œmโ€), g00gle.com. Another variant adds a word: paypal-secure-login.net is not PayPal.

Letters from other alphabets

Some alphabets contain letters that look identical to Latin ones. A Cyrillic โ€œะฐโ€ is not the same character as a Latin โ€œaโ€, but the screen shows them the same. Browsers convert such names to a form starting with xn--, which you can decode. This is called a homograph attack.

Hidden destinations behind a username

Anything before an โ€@โ€ in a web address is treated as a login, not as the site. In https://[email protected]/login, the page really comes from evil.example. The trusted name is only there to fool a quick glance.

Disguised IP addresses

http://2130706433/ and http://0x7f.0.0.1/ are other ways to write an IP address. Real services use names, so a link made of numbers deserves suspicion.

Services such as bit.ly hide the destination on purpose. They are perfectly normal, but you cannot judge the final address until you follow them.

Open redirects

A trusted site that can be made to send you elsewhere: https://trusted.example/out?url=https://evil.example. The link starts with a name you trust but ends somewhere else.

Dangerous files

Links to .exe, .scr, .js, .iso or double extensions such as invoice.pdf.exe run code instead of showing a document.

Padlock myths

The padlock means the connection is encrypted. It says nothing about who is on the other end. Phishing sites use HTTPS too.

  1. Preview it. On a computer, hover over the link to see the real address at the bottom of the window. On a phone, press and hold the link.
  2. Analyse the address. Paste it into the Suspicious URL Analyzer. It decodes internationalised names, compares the domain with commonly imitated brands, and flags hidden usernames, disguised IP addresses, shorteners and risky files. It never opens the link.
  3. Follow the redirects safely. If it is a shortened link or the destination is unclear, use the HTTP Redirect Checker. A server follows each hop and shows you every step and the final address. You can read more about this in HTTP redirects explained.
  4. Examine the message itself. A suspicious link often comes with a suspicious sender. The Email Header Analyzer shows whether the sender passed authentication. For more clues, see how to read email headers.

What these tools cannot tell you

No tool of this kind can promise that a link is safe. They read the address, not the page behind it.

  • A new, clean-looking address can host a fake page today.
  • A legitimate site can be hacked.
  • A warning may be a false alarm, for example on a harmless shortened link.

Treat the result as one signal. The context matters as much: did you expect this message, and does the request make sense?

QR codes

A QR code is just a link you cannot read. Treat it the same way: look at the address your phone shows before you open it, be careful with codes stuck over other codes on posters, parking meters or menus, and do not enter payment details on a page you reached from a code unless you are sure it is the right one.

A simple routine

  1. Do you expect this? If not, do not click.
  2. Who is the real owner of the domain? Read it from right to left.
  3. Does the address use tricks? Check it with an analyzer.
  4. Can you go there another way? Type the address yourself or use the official app.
  5. Never enter a password on a page you reached through a message, unless you are certain.

If you did click and entered something, our guide on what phishing is and how to protect yourself explains exactly what to do next.