Whose IP a link or its preview reveals

Opening a link shows your address to whoever runs the page. Sometimes a chat app’s preview does too. Who fetches it in each app, how IP loggers work, and what to do.

Popo
On this page

Two different things can show your address when a link is sent in a chat. Opening it always does: the site has to know where to send the page. The preview, the small card with a picture and a title, may do it too, without anyone having opened anything. Whose address it shows depends on who fetches the page to make the card.

Previews: four ways

In October 2020 the researchers Talal Haj Bakry and Tommy Mysk tested how messaging apps do it:

Who fetches the pageWhose IP the site seesFound in (2020)
No one: no previewNo one’sSignal with previews off, Threema, WeChat, TikTok
The sender’s appThe sender’sWhatsApp, iMessage, Viber, Signal with previews on*
The service’s serversThe service’sDiscord, Facebook Messenger, Instagram, LINE, LinkedIn, Slack, Twitter and others
The recipient’s appThe recipient’sTwo apps; one was fixed by publication
From their report, with an update from February 2021. Apps change, so treat the last column as examples of each method, not as today's state. *Signal goes through a proxy; see below.
  • Sender's app: reasonable, because you presumably trust a link you're sending. But if you pass on a link from someone else, the preview shows your address before anyone has opened it, you included.
  • Service's servers: neither of you is shown. The price is that the service opens a copy of whatever is behind the link. The authors found servers that downloaded large files completely.
  • Recipient's app: the bad one. Anyone can learn your address just by sending you a message. The authors found two apps that did this and reported it. When they published, one was fixed and the other was still working on it.

Signal has the sender's app make the preview, but through a proxy: the site sees the proxy's address, and the connection is encrypted from the app to the site, so that the proxy doesn't see the content.

Slack documents its fetcher openly: it identifies itself as Slackbot-LinkExpanding in the user agent. If you run a website, you'll find it in your log after someone posts your link there. As with AI crawlers, the name alone proves nothing.

Test an app yourself

You don't need to take anyone's word for it, if you have a web server whose log you can read:

  1. Make up a path that nobody has ever used, such as /test-7f3a9c.
  2. Send the link in a chat with someone who knows about the test, and don't let either of you open it.
  3. Look in the log for that path. If there's a request, compare its address with your own and the other person's.

An address that belongs to neither is the service's server or a proxy. Look it up here to see whose it is:

Repeat it in both directions, on a phone and a computer, because the same service can differ between them.

IP loggers

Pages that record visitors on purpose are called IP loggers or grabbers:

  1. 1Someone makes a linkA page that records every visitor
  2. 2They send it to youOften shortened, with a reason to open it
  3. 3You open itYour address and browser are written down
  4. 4It sends you onTo a real page, so nothing looks odd

Any web server can do this. It isn’t hacking, just an ordinary log.

The steps of a typical IP logger.

You can look at where a short link goes without opening it. curl shows the first redirect and doesn't follow it:

Terminal
curl -sI https://example.org/short | grep -i '^location'

On Windows, use curl.exe -sI https://example.org/short. Replace the address with the link's. That still shows your address to the short-link service, which is where many loggers record it. To avoid that, let a service that checks links open it for you, or don't open it at all.

A link that has no reason to exist, for example a "photo of you" from a stranger, isn't worth examining.

What can be done with an address

With your address, someone can

find your provider, and a city that’s often roughly right

tell home from mobile from VPN

compare it with other records of the same address

flood your connection with traffic

And can’t

find your street or your name

see what you do online

read your files or messages

get in, unless something is open and vulnerable

What an IP address is worth to someone else. The left side is why it's worth some care, and the right is why there's no need to panic.

Threats like "I have your IP and know where you live" are nearly always bluff. The city in a lookup is where your provider's equipment is registered or estimated to be. Only your provider knows which customer had the address at a certain time, and as a rule it gives that information to authorities, not to strangers.

What's real: flooding the connections of players or streamers with traffic, and combining the address with other information. If it happens, restart the router to get a new address (with many providers that's enough), and tell your provider.

What to do

  1. Turn previews off for links you pass on, if your app has a setting for it, and look for it among the privacy or chat settings.
  2. Calls reveal addresses too. Direct calls connect two devices with each other, so each sees the other's address. Some messengers have a setting to send calls through their servers instead. Why WebRTC shows another IP explains the mechanism.
  3. Don't open links from strangers, and be careful with short links.
  4. Use a VPN if someone is likely to want your address, and test it.
  5. Remember that email does it as well: what opening an email tells the sender.

A preview made by servers means that a third party opens the link. Don't send links that work without signing in to anything confidential, such as shared documents or password resets, in an app that does this. Links that can be used only once may even be used up by the preview.

More in Privacy & leaks

DNS and WebRTC leaks, fingerprints and what sites see

All 10 articles