---

title: Network signals
description: What knownprint tells you about the address a visit came from: VPNs, privacy relays, proxies, Tor, datacenters, abuse lists, country and operator.
---

The network signals describe the address a request came from and the path it took: whether it left through a VPN, a privacy relay, a proxy or Tor, whether the address belongs to a datacenter, whether it is a known source of abuse, and which country and operator it belongs to. Together with the event's `network` object, they answer "where did this request come from, and is that where a person's own device would be?"

Many honest people use VPNs and privacy relays. These signals describe the network; whether a given network is acceptable for a given action is your decision.

| Signal                              | `value` | True when                                                                                 |
| ----------------------------------- | ------- | ----------------------------------------------------------------------------------------- |
| [`vpn`](#vpn)                       | boolean | The request did not leave from the device's own line. `detail.kind` says what carried it. |
| [`proxy`](#proxy)                   | boolean | The address is a proxy's exit. `detail.type` says what kind.                              |
| [`tor`](#tor)                       | boolean | The address is a Tor exit.                                                                |
| [`datacenter`](#datacenter)         | boolean | The address belongs to a hosting company or a cloud.                                      |
| [`ip_blocklist`](#ip-blocklist)     | boolean | The address, or its network, is a known recent source of abuse.                           |
| [`ip_geolocation`](#ip-geolocation) | string  | Not a boolean: the country code, or `unknown`.                                            |

`vpn`, `proxy`, `tor`, `datacenter` and `ip_blocklist` are `null` only when knownprint's network data is temporarily unavailable. None of them is capped: they keep their confidence whatever `network.availability` says.

## The network object

Every event has a `network` object beside `signals`:

```json
{
  "network": {
    "availability": "full",
    "reasons": [],
    "ip": "203.0.113.42",
    "ip_prefix": "203.0.113.0/24",
    "asn": 64500,
    "country": "GB"
  }
}
```

This example leaves out the members for knownprint's own use, described at the end of the table.

| Field                                   | Type             | Meaning                                                                                                                                                                                                                        |
| --------------------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `ip`                                    | string or null   | The address the identification came from, as knownprint received it. After 30 days it is shortened to its network address (see [Address retention](#address-retention)).                                                       |
| `ip_prefix`                             | string           | The address's network: the /24 for IPv4 (`203.0.113.0/24`), the /48 for IPv6 (`2001:db8:1234::/48`).                                                                                                                           |
| `asn`                                   | integer or null  | The number of the autonomous system (the network operator) the address belongs to.                                                                                                                                             |
| `country`                               | string or null   | The country the address is used in, as an ISO 3166-1 alpha-2 code in upper case (`GB`, `US`). Null when unknown.                                                                                                               |
| `availability`                          | string           | How the request reached knownprint: `full`, `tls_only`, `hashes_only`, `ip_only` or `none`. Through the standard proxy rule it is `ip_only`, which is normal. See [Connection availability](/signals#connection-availability). |
| `reasons`                               | array of strings | Codes about the address and the request. See [Network reasons](#network-reasons).                                                                                                                                              |
| `tls`, `h2`, `http_order`, `tcp`, `rtt` | object or null   | For knownprint's own use. Do not build rules on them.                                                                                                                                                                          |

The operator's name and the class of its network are in [`ip_geolocation`](#ip-geolocation).

### Network reasons

`network.reasons` can hold these codes, among others:

| Code             | Meaning                                                                                          |
| ---------------- | ------------------------------------------------------------------------------------------------ |
| `tor`            | The address is a Tor exit.                                                                       |
| `datacenter`     | The address belongs to a hosting network and is not a privacy relay's egress.                    |
| `relay_egress`   | The address is a privacy relay's egress, such as iCloud Private Relay.                           |
| `moved_relay`    | The address changed during the identification, within one privacy relay. Normal for relay users. |
| `moved_operator` | The address changed during the identification, within one network operator. Normal.              |
| `moved_network`  | The address changed during the identification, to another operator's network.                    |
| `moved_country`  | The address changed during the identification, to a network in another country.                  |

A `moved_network` or `moved_country` happens with some VPN and mobile setups. It is a hint worth logging beside the other signals rather than a verdict.

Other codes are for knownprint's own use. Ignore codes you do not know.

### Address retention

`network.ip` holds the full address for 30 days. After that knownprint shortens it to the network address of its /24 or /48, written as a plain address without a prefix length (`203.0.113.42` becomes `203.0.113.0`). `ip_prefix` is kept as it was. Events themselves are kept for your environment's retention period. See [Privacy](/privacy) and [Limits](/limits).

## vpn

`signals.vpn` is `true` when the request did not leave from the device's own line: it went through a VPN service, a privacy relay, Tor, or a machine in a datacenter.

```json
{
  "vpn": {
    "value": true,
    "confidence": 0.99,
    "reasons": ["relay"],
    "detail": { "kind": "relay", "provider": "icloud-private-relay" }
  }
}
```

| Field             | Meaning                                                                                                                                                   |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `value`           | `true` when the request left through something other than the device's own line.                                                                          |
| `confidence`      | How sure the value is, at most 0.99.                                                                                                                      |
| `detail.kind`     | What carried the request. See the table below. Can be set when `value` is `false`: the address is of that kind, but this request is not counted as a VPN. |
| `detail.provider` | A lowercase slug naming the service or provider, where known (for example `icloud-private-relay`). Otherwise `null`.                                      |

| `detail.kind` | Meaning                                                                                                           | `value`           |
| ------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------- |
| `vpn`         | An address of a VPN service.                                                                                      | `true`            |
| `relay`       | A privacy relay's egress, such as iCloud Private Relay. The person is real; their traffic is relayed for privacy. | `true`            |
| `tor`         | A Tor exit.                                                                                                       | `true`            |
| `hosting`     | A hosting or cloud address: a VPN server, a proxy, or a machine running in a datacenter.                          | `true` or `false` |
| `gateway`     | A company's web gateway: many employees share the address. The address is shared, not hidden.                     | `false`           |
| `unknown`     | The request did not leave from the device's own line, but what carried it could not be named.                     | `true`            |
| `null`        | Nothing of the above.                                                                                             | `false`           |

What to do: a relay is how a large share of Safari users browse, and should rarely count against anyone on its own. A VPN service is common among privacy-minded customers and among fraudsters alike: weigh it on payment and signup pages, together with the other signals. A `hosting` exit carrying a phone's browser, or a datacenter address carrying a login, deserves more attention than a VPN on a laptop.

## proxy

`signals.proxy` is `true` when the address is a proxy's exit: an open proxy, a block of addresses a proxy seller runs, or a home or mobile line that a proxy network rents out as an exit (a residential proxy).

```json
{
  "proxy": {
    "value": true,
    "confidence": 0.9,
    "reasons": ["residential_proxy_exit"],
    "detail": {
      "type": "residential",
      "listed": true,
      "provider": null,
      "seen": "day",
      "shared": false,
      "request": null
    }
  }
}
```

| Field             | Type                     | Meaning                                                                                                                                                                                                 |
| ----------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `value`           | boolean                  | `true` when the address is a proxy's exit.                                                                                                                                                              |
| `confidence`      | number                   | How sure the value is, at most 0.99.                                                                                                                                                                    |
| `detail.type`     | string or null           | When `value` is `true`: `datacenter` for a proxy on a server, `public` for an open proxy anyone can use, `residential` for a home or mobile line rented out as an exit. `null` when `value` is `false`. |
| `detail.listed`   | boolean                  | `true` when the address is currently known as a proxy exit, whatever the verdict.                                                                                                                       |
| `detail.provider` | string or null           | A lowercase slug of the proxy network or seller, where known.                                                                                                                                           |
| `detail.seen`     | string, optional         | How recently this line was used as a residential proxy exit: `day`, `week` or `month`.                                                                                                                  |
| `detail.shared`   | boolean, optional        | `true` when the address is shared by many subscribers (a mobile carrier's or a satellite operator's), so the request may well be another subscriber's.                                                  |
| `detail.request`  | string or null, optional | `relayed` when this request itself came through a proxy, `direct` when it left from the household's own line, `null` when neither could be told.                                                        |

`seen`, `shared` and `request` appear only for lines known as residential proxy exits.

A residential proxy line is two things at once: the exit of strangers' traffic, and the home line of the people who live there. `detail.request` separates them where it can. A `direct` request is most likely the household's own, from a device or network that also carries strangers' traffic.

What to do: a residential proxy (`type` `residential`, `request` not `direct`) is the most deliberate of the network findings: it is rented to look like a household. Treat it as strong evidence on signups, promotions and payments. A `public` proxy is cheap and noisy; a `datacenter` proxy hides the visitor's own line behind a server, so read it with [`bot`](/signals/bots) and the other signals. A `shared` sighting on a mobile network is a hint, not a verdict.

## tor

`signals.tor` is `true` when the address is a Tor exit.

```json
{ "tor": { "value": true, "confidence": 0.99, "reasons": ["tor_exit"] } }
```

It has no `detail`. A Tor exit also shows as `vpn` with `detail.kind` `tor`, and as `tor` in `network.reasons`. Tor Browser itself shows in [`privacy_settings`](/signals/browser#privacy-settings).

What to do: Tor protects people who need anonymity, and is also a common way to hide abuse. Many sites allow reading and limit writing: require a verified account or a second factor for signups, payments and posts from Tor.

## datacenter

`signals.datacenter` is `true` when the address belongs to a hosting company's or a cloud's address space and to no access network: nobody's home or office line ends there.

```json
{
  "datacenter": {
    "value": true,
    "confidence": 0.97,
    "reasons": ["..."],
    "detail": { "provider": null }
  }
}
```

The codes in `reasons` are informational and elided here.

| Field             | Meaning                                                             |
| ----------------- | ------------------------------------------------------------------- |
| `value`           | `true` for a hosting or cloud address.                              |
| `detail.provider` | A lowercase slug of the hosting provider, where known, else `null`. |

A privacy relay's egress runs on hosting networks but carries real people's browsers, so it is not a datacenter here: `value` is `false` with the reason `relay_egress`, and [`vpn`](#vpn) names the relay.

`datacenter` says what the address is, whoever uses it. [`vpn`](#vpn) says whether this request went through such an exit. A browser in a datacenter is either relayed (a VPN or proxy server) or running there (a cloud desktop or a bot); see also [`virtual_machine`](/signals/browser#virtual-machine) and [`bot`](/signals/bots).

`datacenter` is not part of the [suspect score](/signals/suspect-score); `vpn` is.

## ip_blocklist

`signals.ip_blocklist` is `true` when the address, or the network around it, is a recent source of attacks, spam or malware, strongly enough to count against this request.

```json
{
  "ip_blocklist": {
    "value": true,
    "confidence": 0.72,
    "reasons": ["attack_source"],
    "detail": {
      "listed": true,
      "categories": ["attack"],
      "score": 72,
      "scope": "address",
      "sources": 2,
      "last_seen_days": 0,
      "first_seen_days": 3,
      "first_party": false
    }
  }
}
```

An address nothing is known of:

```json
{
  "ip_blocklist": {
    "value": false,
    "confidence": 0.95,
    "reasons": [],
    "detail": {
      "listed": false,
      "categories": [],
      "score": 5,
      "scope": null,
      "sources": 0,
      "last_seen_days": null,
      "first_seen_days": null,
      "first_party": false
    }
  }
}
```

| Field                    | Type              | Meaning                                                                                                                                                        |
| ------------------------ | ----------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `value`                  | boolean           | `true` when `detail.score` is 50 or more.                                                                                                                      |
| `confidence`             | number            | How sure the value is, from 0.01 to 0.99.                                                                                                                      |
| `detail.listed`          | boolean           | `true` when anything is known of the address or its network, whatever the verdict.                                                                             |
| `detail.categories`      | array of strings  | What the listing is for: `attack` (attacking other machines), `spam`, `malware` (serving malware) and `network` (part of a network held for abuse as a whole). |
| `detail.score`           | integer, 0 to 100 | How likely the address is a source of abuse now, for a threshold of your own. `value` is `true` from 50.                                                       |
| `detail.scope`           | string or null    | `address` when the address itself is listed, `network` when a network around it is. `null` when not listed.                                                    |
| `detail.sources`         | integer           | How many listings agree.                                                                                                                                       |
| `detail.last_seen_days`  | integer or null   | Whole days since the abuse was last recorded, as of this request.                                                                                              |
| `detail.first_seen_days` | integer or null   | Whole days since it was first recorded, as of this request.                                                                                                    |
| `detail.first_party`     | boolean           | `true` when the listing is knownprint's own.                                                                                                                   |

`reasons` names what the listing is for: `attack_source`, `spam_source`, `malware_host`, `abusive_network`. Two more say the address is shared:

| Reason           | Meaning                                                                                                                  |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------ |
| `shared_address` | The address sends for many people by design, such as a privacy relay, a company gateway, a content network or a crawler. |
| `shared_network` | The address is shared by many subscribers, such as a mobile carrier's or a satellite operator's.                         |

What to do: an `attack` listing on a login or password reset is a strong signal of credential stuffing; rate limit or require a second factor. `spam` matters most on signups, comments and messages. For a stricter or looser policy than knownprint's line, use `detail.score` directly.

## ip_geolocation

`signals.ip_geolocation` gives the country the address is used in and the network operator.

```json
{
  "ip_geolocation": {
    "value": "GB",
    "confidence": 1,
    "reasons": ["..."],
    "detail": {
      "country": "GB",
      "asn": 64500,
      "as_org": "Example Broadband Ltd",
      "as_class": "isp"
    }
  }
}
```

| Field             | Type            | Meaning                                                                                                                                                                                    |
| ----------------- | --------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `value`           | string          | The country as an ISO 3166-1 alpha-2 code (`US`, `DE`), or `unknown`.                                                                                                                      |
| `confidence`      | number          | `1`.                                                                                                                                                                                       |
| `detail.country`  | string or null  | The same country code, `null` when unknown.                                                                                                                                                |
| `detail.asn`      | integer or null | The operator's autonomous system number.                                                                                                                                                   |
| `detail.as_org`   | string or null  | The operator's name as registered.                                                                                                                                                         |
| `detail.as_class` | string          | The kind of network: `isp` (an access provider), `mobile` (a mobile carrier), `hosting` (hosting and cloud), `business` (a company's own network), `education`, `government` or `unknown`. |

`reasons` is informational. The signal is `null` only when knownprint's location data is unavailable.

The country is where the address is used, which for a VPN, relay or proxy is the exit's country, not the person's. Read it with `vpn` and `proxy` before comparing it with a billing or shipping country.

## What to do

| Finding                                                     | Common handling                                                                        |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| `vpn` with `kind` `relay`                                   | Treat as an ordinary visitor.                                                          |
| `vpn` with `kind` `vpn`                                     | Allow browsing; weigh on payments, signups and promotions together with other signals. |
| `vpn` with `kind` `hosting`, or `datacenter` true           | Look at `bot`, `tampering` and `virtual_machine`. On a login, a second factor.         |
| `proxy` with `type` `residential`                           | Strong evidence on signups, promotions and payments.                                   |
| `tor`                                                       | Allow reading; limit writing.                                                          |
| `ip_blocklist`                                              | Rate limit and add friction on logins, signups and posts.                              |
| A country that does not match the account's billing country | Only meaningful when `vpn` and `proxy` are `false`.                                    |

A sketch:

```js title="network.js"
const s = event.signals ?? {};
const vpnKind = s.vpn?.value === true ? (s.vpn.detail?.kind ?? 'unknown') : null;
const residentialProxy =
  s.proxy?.value === true &&
  s.proxy.detail?.type === 'residential' &&
  s.proxy.detail?.request !== 'direct';

const directLine = vpnKind === null && s.proxy?.value !== true;
const country = directLine ? (s.ip_geolocation?.detail?.country ?? null) : null;

if (residentialProxy || s.ip_blocklist?.value === true) {
  // add friction: a second factor, an email check, or a manual review
}
if (country !== null && country !== account.billingCountry) {
  // a direct line in another country than the account's: weigh with the rest
}
```

To list visits through a VPN, search with `vpn=true` (see [Search events by signal](/signals#search-events-by-signal)). The events of one network are found with the `ip` filter, which takes an address or a range such as `203.0.113.0/24` (see the [events API reference](/api/events)).
