# why we never store an ip address

Spookat never writes a visitor's IP address to a database, a log or an error report. Why we made that a rule, where the exact line is, and what it cost us.

2026-11-24 · Kuba

Spookat never writes a visitor's IP address down. It's not in our database, our logs, our error reports, our backups or the exports we give you. The address exists in memory while a connection is open, and then it's gone. This post covers why that's a rule and not a setting, exactly where the line is, and what the rule costs us. [Everything we store about a visitor](/blog/what-we-store-about-a-visitor/) lists the rest, field by field. This one is about the decision.

## why a rule

A chat widget runs on other people's websites. If it logs the IP address of everyone who loads a page, it's a tracking network, whether anyone meant to build one or not. Put the same widget on enough sites and the logs can follow one person across all of them.

We didn't want to be that, even by accident. And "even by accident" is the important part. Most IP addresses that end up stored somewhere weren't collected on purpose. They land in a default access log, an error tracker's context, a debug line someone forgot to remove, or a column an auth library adds for you. Nobody decided to keep them. Nobody decided not to.

So we made it a house rule in the repo: never write an IP address anywhere, in the database, the logs or the errors. It's written down where every contributor reads it before touching the code, human or agent.

In the EU an IP address usually counts as personal data. Keeping one comes with duties: a reason to hold it, a retention period, a way to hand it over or delete it when someone asks. Not keeping it makes all of that disappear.

There's a simpler reason too. Data you never store can't leak, can't be sold and can't be asked for. The safest IP address is the one that isn't on disk.

The rule also keeps us honest with ourselves. Every time a feature would be easier with an address, it forces the question of whether there's another way. Usually there is. Routing chats by country only needed a country. The flood brake only needed to know which site was being hit.

## where the line is

Absolute promises need exact wording. This is what happens to an address, step by step.

**In memory, briefly.** When a visitor opens the chat, the server sees their address, because that's how the internet works. It holds it in memory for the life of the connection, for three jobs: delivering messages, rate limits and a country lookup. When the connection closes, it's gone.

**Country, not address.** When a visitor sends a message, the server looks up the country in an offline database that runs on our own server, DB-IP's free country file. The address never leaves the machine. We store the two-letter country code with the message, and nothing else from the address.

**Logs.** Our web server's access logs are off. The application log has one rule at the top of the file: never pass IPs, tokens or message text into it. When a site gets throttled because of a flood, the log line has the site and the brake level, not the sender.

**Auth.** The sign-in library we use has a column for the session's IP address. It's always empty, and a test checks that.

**Cloudflare.** Cloudflare sits in front of every Spookat host as our network proxy and CDN, so it sees addresses in transit. We don't hide that. It's a listed subprocessor on [/privacy](/privacy/) and in the DPA. Our promise is about what we store, and we word it that way.

**Our own website.** spookat.com runs self-hosted Umami for analytics. It stores no raw IP address, only a salted hash that rotates, so it can't recognise anyone over time. The widget on your site runs no analytics at all.

## how we keep it true

Rules rot unless something checks them. Our end-to-end smoke test runs a visitor through the whole product with a made-up address from the range reserved for documentation. It opens a chat, sends messages, gets replies from Slack, receives an email follow-up, triggers webhooks, exports the site and deletes the conversation. At the end it searches the raw database file and every line the server logged for that address. It finds nothing, and if it ever does, the build fails.

## what it costs

The rule has a price, and we pay it on purpose.

### a block goes by chat, not by address

Most tools block abusive visitors by address. We don't. When you block someone in Spookat, the block goes by their chat. Their chat says it isn't taking messages, and nothing they send reaches you.

That has an upside: a block never catches the wrong person. Offices, schools and mobile carriers put many people behind one address, and an address ban would lock all of them out. Rate limits and a per-site flood brake handle bots, and they don't need to remember anyone.

### geography is coarse

We know a country, captured at the moment a message is sent. No city, no region, no "visitor from the same network as last week". Routing chats by country on agency works on exactly that and nothing finer.

### we know less about our own visitors

Our marketing analytics can't follow a person from one visit to the next. We see traffic, not people. That makes some marketing questions unanswerable. We're fine with that.

## what you can tell your visitors

A rule like this is only useful if you can repeat it to the people on your site without a lawyer rewriting every word. So here's the plain version, and every line of it is true for every plan:

- The chat sets no cookies. The launcher makes 0 requests to our API until someone clicks it.
- Nobody at Spookat, and nothing in Spookat, keeps the visitor's IP address.
- When someone writes, we keep the message, the page they wrote from and the page before it (both without query strings), their browser's language, time zone and local time, the kind of browser and system, the widget's language, and the country.
- If they leave an email so you can answer later, we keep that too, and only use it for your replies.
- Conversations age out after 3, 30, 90 or 365 days, depending on the plan, and leave our backups 30 days after that.

That fits in two sentences of a privacy notice, and our [/privacy](/privacy/) page has the long form with every subprocessor listed. No asterisks you'd have to explain later, and nothing we'd have to walk back if someone asked us to prove it.

## what we got

A sentence on our privacy page that's literally true: "we never store an IP". No asterisk, no "except in logs for 30 days".

A smaller blast radius. If someone ever broke into our database, there would be no addresses in it to take.

A simpler story for you. When you add Spookat to your site, there's one less thing to explain to your own visitors. We won't give legal advice about what that means for your consent banner. We will tell you exactly what we store, and it's on [/privacy](/privacy/).

Read what we keep and what we never touch on [/privacy](/privacy/).

---
source: https://spookat.com/blog/why-we-never-store-an-ip/
