tidytweet

Guide

How to check where a short link goes before you click

Short answer

To see where a short link goes without opening the page, use the shortener's own preview or info page if it offers one, or ask the shortener for the redirect without following it, for example with curl -I in a terminal, which shows the destination in the Location header. Then check the real domain for look-alike spellings, @ tricks and raw IP addresses before you click or approve the link.

Key takeaways

  • A short link hides its destination until the shortener's server answers, so the check has to ask that server.
  • Some redirect wrappers, such as Google, Facebook and Outlook Safe Links, carry the destination inside the link and can be decoded offline.
  • The registrable domain is what matters: paypal.com.example.net belongs to example.net.
  • Short links can chain through several redirects; follow each hop until you reach a real page.

Short links are everywhere in replies, DMs and comment sections, and they are a favorite tool of scammers for an obvious reason: you can't see where they go. If you moderate a feed, a social wall or a busy account, you often need to approve or remove a link without visiting it. Here are the safe ways to find out where a short link really leads, and what to look for once you know.

A short link only reveals its destination when the shortener's server answers with a redirect, so the destination isn't written anywhere in the link itself.

When you click bit.ly/abc123, your browser asks bit.ly for that address. The server replies with a redirect status code and a Location header holding the real address, and the browser follows it. Until that request happens, the only thing anyone knows is the short code. This is why a tool that runs only in your browser can't expand a bit.ly link on its own: browsers don't let one website read another site's redirects.

Redirect wrappers are different. Links from Google search results, Facebook, Instagram, Outlook Safe Links and similar services carry the destination inside the link, often URL-encoded in a parameter. Those can be decoded without visiting anything. The link inspector does that offline and names the real domain.

Ask the shortener for the redirect without following it, or use the shortener's own preview page when it offers one.

Options, from most to least private:

  1. Preview pages. Some shorteners offer an info or preview page for each link that shows the destination. Check the shortener's help pages for how to open it.
  2. A terminal request. On Windows, macOS or Linux, run curl -I https://bit.ly/abc123. The response includes a Location line with the next address. It contacts the shortener but doesn't load the destination page.
  3. An online expander. These visit the link for you. Fine for public links, but avoid them for anything private.

Repeat step 2 on each Location you get back. Short links are sometimes chained, with one shortener pointing to another before the real page.

What should you check once you see the destination?

Find the registrable domain, the part just before the public suffix such as .com or .co.uk, and make sure it belongs to who the link claims to be.

Trick Example What's really happening
Brand in a subdomain paypal.com.account-check.net The domain is account-check.net
Look-alike spelling rnicrosoft.com "rn" imitating "m"
@ trick https://x.com@evil.example/ Everything before @ is ignored; the host is evil.example
Punycode xn--pple-43d.com Non-Latin letters that look like "apple"
Raw IP address http://203.0.113.7/login No domain name at all
File download .../invoice.zip or .exe Downloads a file instead of opening a page

The link inspector flags all of these. It also strips tracking parameters, which our guide to tracking parameters explains.

Treat unfamiliar short links as suspicious by default, expand the ones you need to approve, and hold the rest.

On a social wall or a moderated feed, short links add risk for little benefit, because the destination can be changed after you approve it. A simple rule works for many teams: links to known domains are allowed, short links from unknown accounts are held, and short links in replies that also mention giveaways, wallets or "support" are rejected. Our overview of spam patterns in X replies covers the fake-support and wallet-drainer replies that rely on hidden links.

On public walls and embedded feeds, blocking or holding short links is usually sensible; in your own replies on X, judge by the account and the context.

A social wall at an event or a feed embedded on your website shows posts to people who didn't choose to follow anyone. There, a hold-by-default rule for shortened links costs little. In replies to your own account, short links are common and often harmless, such as a customer sharing a photo or an article. Look at who posted it, how old the account is, and whether the text around the link matches one of the known scam patterns. If you are unsure, expand the link first. It takes a few seconds and spares your audience from a bad click.

Close the page, don't enter anything, and if you typed a password or downloaded a file, change that password and scan the device.

Opening a page is usually less dangerous than what you do next. If you entered credentials, change the password on the real site at once and turn on two-factor authentication. If a file downloaded, don't open it; delete it and run your security software. Then report the post or account so others don't run into the same link.

Common questions

Is it safe to hover over a short link?

Hovering shows the short address itself, not the final destination, so it tells you little about a shortened link. It is useful for spotting look-alike domains on normal links.

Are online link expander sites safe to use?

They work by visiting the link for you, which is fine for public links. Avoid pasting private links, such as password resets, document shares or unsubscribe links, because the expander's server sees the full address.

Why do links on X start with t.co?

X wraps links in posts with its own t.co shortener, which lets it check links and count clicks. The post usually shows a readable version of the destination, but the link you click goes through t.co first.

Can a short link change where it goes later?

Yes, with many shorteners the owner can edit the destination after sharing it. A link that was safe when you approved it can point somewhere else later, which is one reason moderators remove unfamiliar short links from public walls.

Sources

  1. MDN Web Docs: HTTP redirections
  2. MDN Web Docs: Location header