# Exclusions

> Keep your own visits, internal IPs, private paths, staging hosts, whole countries and referral spam out of your numbers.

Exclusions are rules Reveata applies to every event before it is stored. Excluded events are not saved, not shown anywhere and **never count towards your plan's events**. They live in **Settings → General → Exclusions**. Admins and owners can change them; other roles see them read-only.

Rules apply from the moment you save them. Visits already recorded stay as they are (to remove past data, see [Import, export and delete website data](https://reveata.com/docs/import-export-and-delete-data)).

## IP addresses

**Exclude IP addresses**: one per line, IPv4 or IPv6. Ranges in CIDR notation work too, such as `203.0.113.0/24` or `2001:db8::/32`. Use it for your office, VPN or monitoring service.

The address checked is the visitor's address as Reveata sees it. Behind your own proxy, it is the address your proxy forwards with a valid proxy secret; without one, it is the proxy's own address. See [Proxy through your own server](https://reveata.com/docs/self-hosted-proxy).

## Paths

**Exclude paths**: one per line, starting with `/`. `*` matches any characters, and matching ignores upper and lower case:

| Rule | Leaves out |
| --- | --- |
| `/admin` | exactly `/admin` |
| `/admin/*` | every page under `/admin/` |
| `/*/preview` | `/blog/preview`, `/docs/preview` |
| `/#/settings/*` | hash routes under settings (with `data-hash`) |

A rule can have up to 8 wildcards. You can also exclude paths in the snippet with `data-exclude-paths="/admin/*,/preview"`: those pages send nothing at all, which also keeps their requests off the network.

## Countries

**Exclude countries**: two-letter country codes (`DE`, `US`), one per line. The field shows the country names as you type. A visit whose location is unknown is always counted, so an exclusion never hides traffic by guesswork.

## Host names

**Exclude host names**: one per line, such as `staging.example.com`. Use `*` for many, like `*.preview.example.com`. Every other subdomain of your website stays counted. Handy for preview deployments that load the production snippet. See [Track subdomains](https://reveata.com/docs/subdomains).

## Referral spam

**Filter referral spam** is on by default. Visits whose referrer is a known spam domain (or a subdomain of one) are not counted. The list is the community-maintained Matomo referrer spam list, shipped with Reveata and updated with its releases; it is never fetched while your visitors browse.

## Your own visits

In the same section, **Ignore this browser** opens your site once with `?reveata_ignore=1`. The script stores a flag in that browser and removes the parameter from the address. From then on that browser sends nothing. **Count it again** undoes it. Do it in each browser and device you use.

The same flag can be set from your browser's console on your site:

```js
reveata('optout'); // stop counting this browser
reveata('optin'); // count it again
```

## Limits

Each list takes up to 200 lines. Invalid lines are pointed out when you save, with what is wrong.

## Other things that are never counted

These are left out without any rule:

- Crawlers, AI bots, headless and automated browsers. They are recorded separately in [Bot and AI crawler traffic](https://reveata.com/docs/bot-traffic) and never count as events.
- Pages on `localhost`, `*.localhost` and `127.0.0.1`, unless the snippet has `data-allow-localhost="true"`.
- Pages shown inside an iframe, unless the snippet has `data-allow-iframe="true"`.
- Browsers with Do Not Track or Global Privacy Control, when the snippet has `data-respect-dnt="true"`.

## Check an exclusion

Visit an excluded page or connect from an excluded address, then open the install check on your website's dashboard: when the last thing the server did was drop an event, it says which rule matched (for example "A page matches one of your excluded paths"). See [Why events don't show up](https://reveata.com/docs/events-not-showing).
