Blog

Download statistics without tracking the people who download

You want to know if the file you sent arrived. The person opening it doesn't want to be followed around the web. A Nemi share link records a timestamp and a salted, shortened IP hash, and nothing about the browser or device unless you enable Trace for that link. Hash an address below and try to reverse it.

PrivacyUpdated 7 min read

Fig. 00 raw IP addresses written per open

When you send someone a file, you want to know one thing: did it arrive? The person on the other end wants something too: not to be followed around the internet just for opening a link. Both can be true at once, and this post explains how a Nemi share link does it.

What does Nemi record when someone opens a shared link?

Less than you might expect, and the same for everyone who opens it. Each open or download records a timestamp, which file it was, and whether it was a preview or a download. It also records a salted, shortened hash of the IP address so ten opens from one person count as one visitor, and increments the file's download count. That's the whole list: no browser, no device, no location, and no referrer.

A sender can choose to collect more detail for a single link by turning on Trace. That changes the list considerably, and the toggle below shows exactly how.

What one visit leaves behind

4 things kept per visit

Recorded

  • When

    The time of each open and each download.

  • Which file, and how

    Whether it was previewed in the browser or downloaded.

  • A salted, shortened hash of the address

    So two opens from one place count as one visitor. Never the address itself.

  • A download count

    On the file, and a download record with no address and no browser in it.

Never recorded

  • The IP address itself
  • Browser, device or system
  • Location
  • Where they came from
  • How long they read

This is every share link unless the sender chose otherwise. The sender sees counts and times, never who. Either way it is deleted with the link.

Each line matches our privacy policy, which is what recipients are told. If the two ever differ, the policy is the source of truth.

How do you count visitors without storing their address?

To tell the difference between "three people opened this" and "this was opened eleven times", you need a way to distinguish visitors. The obvious identifier is the IP address, and the obvious mistake is storing it. An IP address is personal data: it can point to a household, and paired with a timestamp and a file it reveals who looked at what.

So Nemi doesn't store raw IP addresses for opens or downloads. As soon as a request arrives, the server prepends a secret salt to the address, runs both through SHA-256, keeps the first 40 hex characters, and discards the rest. Two opens from the same address produce the same hash so they count as one visitor, while nothing written to disk says what the address was.

From an address to a hash, on every open

Address203.0.113.42Salteds3cr3t|203.0.113.42SHA-2569c41e07b...a2f6 (64)Stored9c41e07b...d18e (40)

1/4A request arrives

Every request to a server carries the address it came from. That cannot be avoided; the reply has to go somewhere.
This happens inside the request, before anything is written. The address itself is held in memory only as long as the request, and our rate limits, need it.

Try it. Type an address, change the salt, and then play the attacker.

Hash an address, then try to get it back

SHA-256 of salt, a bar, and the address

The first 40 characters are kept, 160 of the 256 bits. The rest is thrown away, and so is the address.

Now try to reverse it

A hash cannot be run backwards, but an attacker can run it forwards on every likely input and look for a match. This tries the 65,536 addresses that start with the same two numbers.

The same construction our server uses, rebuilt on your browser's WebCrypto with a salt this page made up. The search really runs, in your browser, and nothing you type leaves this page. 203.0.113.42 is an address reserved for examples.

Does shortening the hash make it anonymous?

No, and it's worth being exact about why, because descriptions of hashed analytics often get fuzzy here. Trimming a SHA-256 hash to 40 characters still keeps 160 bits. There are about 4.3 billion IPv4 addresses (232). Spread across 2160 possible values, the chance of any two addresses colliding is about one in 297, a 30-digit number. In practice, every address still gets its own unique hash. Shortening only saves database space; it protects no one.

What actually protects the address is the salt. As the demo above shows, an attacker who knows the salt can hash every possible IPv4 address and look up matches: 4.3 billion is huge for a person, but modest for a computer. Without the salt, every guess at an address also needs a guess at a secret that isn't stored anywhere they can read. That's why the salt lives in configuration outside the code and database, and is never published.

The honest term for the result is pseudonymous, not anonymous. On a single link, we can still tell when the same visitor returns, which is the point of counting unique visitors. What a stored hash can't do without the secret is tell anyone who that visitor was.

0

raw IP addresses stored today for an open or a download

160 bits

of the hash kept, of 256

4.3 billion

IPv4 addresses: few enough to try them all, if the salt were known

How do I see who downloaded my file?

On a standard link, you see how often it was opened and downloaded, when, and by roughly how many visitors, but not who they were. When knowing matters for a specific delivery, like a contract, pitch, or proposal, you can turn on Trace. It's off by default, enabled per link rather than per account, and the share panel states plainly what it will record before you create the link.

With Trace on, a visit also records the country and city resolved from the IP, the device type, browser, and OS, and the referring site. It adds estimated reading time per page from the visitor's browser, a short code on every download to trace leaked copies, and the visitor's email address if you typed it for that link.

Even with Trace on, three rules keep it from becoming cross-web tracking:

  • The raw address still isn't stored. We use the same salted hash, and location comes from the network rather than a browser location prompt.
  • Repeat visits are grouped per link. The key tying a viewer's visits together includes the link ID, so opening two of your links produces two unrelated keys. The only way a sender sees one person across links is via an email address they typed themselves, and never across different senders.
  • Facts and estimates stay separate. Opens and downloads are recorded by our server and are exact. Reading time is measured in the visitor's browser while the file is visible, and is clearly labelled as an estimate.

A share link should tell you the file arrived, not who the person is.

How long is any of this kept?

Only as long as the link itself. Share statistics, including everything Trace records, live with the share and are deleted alongside it. Revoking a link erases its trace immediately, so nothing about the people who opened it outlives the link.

For the full breakdown written for recipients, read our privacy policy. You can learn how to use Trace in the help centre or on the Trace page, and see everything else a link can do on the Files page.

If you're sending a big delivery, our guide to sending large files securely covers the settings worth choosing. And links served from your own domain follow the exact same recording rules as any other link.

Questions people ask

Can I see who downloaded my shared file?

On a standard Nemi share link, you see how many times it was opened and downloaded, when, and roughly how many different visitors there were, but not who they were. If you need more detail for a specific link, you can turn on Trace, which adds location, device, browser, reading time, and a download code. A person is only named if you typed their email address for that link.

Is a hashed IP address anonymous?

No. A hashed address is pseudonymous: the same IP always produces the same hash, which lets us count unique visitors, and anyone who knows the salt can test every possible IPv4 address to find a match. Keeping the salt secret is what protects it. Nemi stores the salt outside the code and database and never publishes it.

Is an IP address personal data?

In the EU, an IP address is generally treated as personal data because it can point to a household or person, especially alongside a timestamp and a file. That's why Nemi doesn't store raw IP addresses for opens or downloads, only a salted, shortened hash. Our privacy policy lists everything recorded when someone opens a link.

What does Trace record about the people who open my link?

With Trace enabled, a visit to that link also records the country and city resolved from the IP, device type, browser and OS, referring site, estimated reading time per page reported by the browser, a code on every download, and the email address if you typed it for that link. The raw IP is still never stored, and visits are grouped by a per-link key.

Does the person who opened my link know about Trace?

Nemi's privacy policy explains to anyone opening a link exactly what Trace can record. Turning it on is the sender's choice about someone else's data, so our Terms require senders to have a lawful basis, inform their recipients, and never use it covertly where the law requires notice.

How long are download statistics kept?

Only as long as the link exists. In Nemi, share statistics, including everything Trace records, are deleted with the share they belong to. Revoking a link erases its trace immediately.

Will I be told when somebody opens my link?

Yes. Nemi sends you an in-app notification the first time each of your links is opened. That notification only tells you the link was opened, never who opened it.

Where the numbers come from

  • The salted hash, cut to 40 hex characterslib/share-open-tracking.ts (hashViewerIpForShareAnalytics, recordShareContentOpen)
  • What a download records without Traceapp/api/download/file/[fileId]/route.ts
  • What Trace adds, and the per link viewer keylib/share-trace.ts (traceViewerKey, traceCoarseLocation, traceReferrer)
  • What recipients are told/privacy
  • Share statistics, not tracking/security

Use the thing we write about.

Files, docs, sheets, mail, photos, calendar and meetings in one account, built the way this post describes. Nemi is opening in groups: put your name down and we tell you when yours is up.

15 GB free when you get in. No card needed.