vpndetection-fastapi 2.1.26__tar.gz → 2.1.28__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,6 +2,18 @@
2
2
 
3
3
  What each release changed for you, newest first. Each line is a commit's summary, linked to its full description and diff. Releases before 2.0.5 are described by their release commits.
4
4
 
5
+ ## 2.1.28 - 2026-11-20
6
+
7
+ ### Features
8
+
9
+ - Require vpndetection 5.19.0: the network, service, company and abuse members ([`66c0b08`](https://github.com/vpndetection-io/sdk-python-fastapi/commit/66c0b080a273e783c306e546c3bca48f31532123))
10
+
11
+ ## 2.1.27 - 2026-11-19
12
+
13
+ ### Fixes
14
+
15
+ - Require vpndetection 5.18.1: re-pinned to spec 2026.11.18 ([`08cf64c`](https://github.com/vpndetection-io/sdk-python-fastapi/commit/08cf64c199c9c5a6cb2438e77b562580f371e084))
16
+
5
17
  ## 2.1.26 - 2026-11-18
6
18
 
7
19
  ### Fixes
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: vpndetection-fastapi
3
- Version: 2.1.26
3
+ Version: 2.1.28
4
4
  Summary: Official FastAPI and Starlette middleware for the VPNDetection API. Detect VPNs, proxies, Tor, hosting and CDN visitors on every request.
5
5
  Project-URL: Homepage, https://vpndetection.io
6
6
  Project-URL: Source, https://github.com/vpndetection-io/sdk-python-fastapi
@@ -20,7 +20,7 @@ Classifier: Topic :: Security
20
20
  Classifier: Typing :: Typed
21
21
  Requires-Python: >=3.11
22
22
  Requires-Dist: starlette>=0.37
23
- Requires-Dist: vpndetection<6,>=5.18.0
23
+ Requires-Dist: vpndetection<6,>=5.19.0
24
24
  Provides-Extra: dev
25
25
  Requires-Dist: fastapi>=0.115; extra == 'dev'
26
26
  Requires-Dist: mypy>=1.11; extra == 'dev'
@@ -33,9 +33,9 @@ Description-Content-Type: text/markdown
33
33
  [![PyPI](https://img.shields.io/pypi/v/vpndetection-fastapi.svg)](https://pypi.org/project/vpndetection-fastapi/)
34
34
  [![license](https://img.shields.io/pypi/l/vpndetection-fastapi.svg)](LICENSE)
35
35
 
36
- The official FastAPI middleware for the [VPNDetection](https://vpndetection.io) API.
36
+ The official FastAPI middleware for the [VPNDetection](https://vpndetection.io) API: it checks each visitor's IP for VPN, Tor and proxy use, and can block them with a 403.
37
37
 
38
- It classifies the visitor behind each request — VPN, residential proxy, Tor, hosting, CDN, relay — and hands the answer to your code. Blocking is opt-in.
38
+ It classifies the visitor behind each request: VPN, residential proxy, Tor, hosting, CDN or relay. Then it hands the answer to your code. Blocking is opt-in.
39
39
 
40
40
  ## Getting Started
41
41
 
@@ -45,7 +45,7 @@ pip install vpndetection-fastapi
45
45
 
46
46
  Requires Python 3.11 or newer.
47
47
 
48
- You need an API key on a paid plan. Create one in the [console](https://app.vpndetection.io); without one a lookup is on Unlimited, the free plan, and leaves out the hosting, CDN and proxy flags, so a paid plan is what makes this usable in production rather than optional. A free account tries every field, 100 lookups a day.
48
+ No API key needed to start. Without one, a lookup is on Unlimited, the free plan, which answers VPN, Tor and relay detection with no daily or monthly cap. A paid plan's key adds the hosting, CDN and proxy flags and the provider behind each flag: create one in the [console](https://app.vpndetection.io). A free account tries every field.
49
49
 
50
50
  ```python
51
51
  from fastapi import FastAPI
@@ -70,7 +70,7 @@ async def index(request: Request):
70
70
 
71
71
  A request your `skip` claims gets no answer, and `lookup(request)` is `None` for it.
72
72
 
73
- By default nothing is blocked. Every request gets an answer and your own code decides what that means — which is usually what you want, because whether a VPN visitor is a problem depends entirely on what they are doing.
73
+ By default nothing is blocked. Every request gets an answer and your own code decides what to do with it, since whether a VPN visitor is a problem depends on what they're doing.
74
74
 
75
75
  ## Blocking
76
76
 
@@ -110,7 +110,7 @@ A refused request gets an `HTTPException`, `403` with `{"detail": "access denied
110
110
 
111
111
  ## Where the client address comes from
112
112
 
113
- This is the setting that decides whether any of the above works, and it is the one thing only you can get right.
113
+ Get this setting right, or none of the above works.
114
114
 
115
115
  By default the middleware uses `request.client.host`. uvicorn, and `fastapi run` with it, reads proxy headers by default, but only from a peer that `--forwarded-allow-ips` trusts, and that defaults to `127.0.0.1,::1` (or `$FORWARDED_ALLOW_IPS`). So behind a proxy on the same machine, the visitor's address arrives with no setup. Behind one anywhere else, such as nginx in its own container or a load balancer in a VPC, every visitor looks like the proxy. That address is usually a private one, which the middleware answers locally: nobody is flagged, nothing is blocked, and the private-address warning below is the only sign. Name your proxy, by its address or its subnet: `--forwarded-allow-ips=172.28.5.0/28`. gunicorn's own `--forwarded-allow-ips` works the same way. Never pass `*`. It trusts every peer, so the left-most `X-Forwarded-For` entry wins, and that is whatever the visitor sent: someone on a VPN who sends `X-Forwarded-For: 1.1.1.1` is looked up as `1.1.1.1`.
116
116
 
@@ -122,7 +122,7 @@ from vpndetection_fastapi import header_ip_selector
122
122
  ip_selector = header_ip_selector("CF-Connecting-IP") # or True-Client-IP, or your own
123
123
  ```
124
124
 
125
- `xff_ip_selector()` reads `X-Forwarded-For` directly. Be aware that the left-most entry is whatever the caller sent, because proxies append to that header — it is only trustworthy when an edge you control overwrites it. If you know how many proxies sit in front, count from the right instead: `xff_ip_selector(1)` is the address your nearest proxy saw.
125
+ `xff_ip_selector()` reads `X-Forwarded-For` directly. The left-most entry is whatever the caller sent, since proxies append to that header, so trust it only when an edge you control overwrites it. If you know how many proxies sit in front, count from the right instead: `xff_ip_selector(1)` is the address your nearest proxy saw.
126
126
 
127
127
  Anything else, pass your own callable. It receives the request and returns an address.
128
128
 
@@ -134,7 +134,7 @@ The request is let through, and the reason is recorded on the answer's `error`.
134
134
 
135
135
  ## Cost and latency
136
136
 
137
- Answers are cached for an hour, so a returning visitor costs nothing, and private addresses never leave the process. A cache miss is one request to our API, bounded at 2.5 seconds by default and not retried — on a request path, failing open quickly beats holding a visitor while we try again. Both are adjustable, as is the cache, through a `vpndetection` client you build yourself and pass as `client`.
137
+ Answers are cached for an hour, so a returning visitor costs nothing, and private addresses never leave the process. A cache miss is one request to our API, bounded at 2.5 seconds by default and not retried: on a request path, failing open fast beats holding a visitor while we retry. Both are adjustable, as is the cache, through a `vpndetection` client you build yourself and pass as `client`.
138
138
 
139
139
  Skip what you do not care about:
140
140
 
@@ -146,7 +146,7 @@ Beyond a few million distinct visitors a day, stop calling the API per request:
146
146
 
147
147
  ## Absent is not false
148
148
 
149
- Unlimited, with a key or without one, leaves out `is_hosting`, `is_cdn` and the four proxy flags, and of the detail behind each flag it answers only Tor's and relay's. A field your plan does not include is `None`, which means "not in your plan" rather than "checked, and no".
149
+ Unlimited, with a key or without one, leaves out `is_hosting`, `is_cdn`, the four proxy flags, the carrier, satellite and service flags, `company` and `abuse`, and of the detail behind each flag it answers only Tor's and relay's. A field your plan does not include is `None`, which means "not in your plan" rather than "checked, and no".
150
150
 
151
151
  ```python
152
152
  lookup(request).result.is_hosting # None when your plan does not include it
@@ -3,9 +3,9 @@
3
3
  [![PyPI](https://img.shields.io/pypi/v/vpndetection-fastapi.svg)](https://pypi.org/project/vpndetection-fastapi/)
4
4
  [![license](https://img.shields.io/pypi/l/vpndetection-fastapi.svg)](LICENSE)
5
5
 
6
- The official FastAPI middleware for the [VPNDetection](https://vpndetection.io) API.
6
+ The official FastAPI middleware for the [VPNDetection](https://vpndetection.io) API: it checks each visitor's IP for VPN, Tor and proxy use, and can block them with a 403.
7
7
 
8
- It classifies the visitor behind each request — VPN, residential proxy, Tor, hosting, CDN, relay — and hands the answer to your code. Blocking is opt-in.
8
+ It classifies the visitor behind each request: VPN, residential proxy, Tor, hosting, CDN or relay. Then it hands the answer to your code. Blocking is opt-in.
9
9
 
10
10
  ## Getting Started
11
11
 
@@ -15,7 +15,7 @@ pip install vpndetection-fastapi
15
15
 
16
16
  Requires Python 3.11 or newer.
17
17
 
18
- You need an API key on a paid plan. Create one in the [console](https://app.vpndetection.io); without one a lookup is on Unlimited, the free plan, and leaves out the hosting, CDN and proxy flags, so a paid plan is what makes this usable in production rather than optional. A free account tries every field, 100 lookups a day.
18
+ No API key needed to start. Without one, a lookup is on Unlimited, the free plan, which answers VPN, Tor and relay detection with no daily or monthly cap. A paid plan's key adds the hosting, CDN and proxy flags and the provider behind each flag: create one in the [console](https://app.vpndetection.io). A free account tries every field.
19
19
 
20
20
  ```python
21
21
  from fastapi import FastAPI
@@ -40,7 +40,7 @@ async def index(request: Request):
40
40
 
41
41
  A request your `skip` claims gets no answer, and `lookup(request)` is `None` for it.
42
42
 
43
- By default nothing is blocked. Every request gets an answer and your own code decides what that means — which is usually what you want, because whether a VPN visitor is a problem depends entirely on what they are doing.
43
+ By default nothing is blocked. Every request gets an answer and your own code decides what to do with it, since whether a VPN visitor is a problem depends on what they're doing.
44
44
 
45
45
  ## Blocking
46
46
 
@@ -80,7 +80,7 @@ A refused request gets an `HTTPException`, `403` with `{"detail": "access denied
80
80
 
81
81
  ## Where the client address comes from
82
82
 
83
- This is the setting that decides whether any of the above works, and it is the one thing only you can get right.
83
+ Get this setting right, or none of the above works.
84
84
 
85
85
  By default the middleware uses `request.client.host`. uvicorn, and `fastapi run` with it, reads proxy headers by default, but only from a peer that `--forwarded-allow-ips` trusts, and that defaults to `127.0.0.1,::1` (or `$FORWARDED_ALLOW_IPS`). So behind a proxy on the same machine, the visitor's address arrives with no setup. Behind one anywhere else, such as nginx in its own container or a load balancer in a VPC, every visitor looks like the proxy. That address is usually a private one, which the middleware answers locally: nobody is flagged, nothing is blocked, and the private-address warning below is the only sign. Name your proxy, by its address or its subnet: `--forwarded-allow-ips=172.28.5.0/28`. gunicorn's own `--forwarded-allow-ips` works the same way. Never pass `*`. It trusts every peer, so the left-most `X-Forwarded-For` entry wins, and that is whatever the visitor sent: someone on a VPN who sends `X-Forwarded-For: 1.1.1.1` is looked up as `1.1.1.1`.
86
86
 
@@ -92,7 +92,7 @@ from vpndetection_fastapi import header_ip_selector
92
92
  ip_selector = header_ip_selector("CF-Connecting-IP") # or True-Client-IP, or your own
93
93
  ```
94
94
 
95
- `xff_ip_selector()` reads `X-Forwarded-For` directly. Be aware that the left-most entry is whatever the caller sent, because proxies append to that header — it is only trustworthy when an edge you control overwrites it. If you know how many proxies sit in front, count from the right instead: `xff_ip_selector(1)` is the address your nearest proxy saw.
95
+ `xff_ip_selector()` reads `X-Forwarded-For` directly. The left-most entry is whatever the caller sent, since proxies append to that header, so trust it only when an edge you control overwrites it. If you know how many proxies sit in front, count from the right instead: `xff_ip_selector(1)` is the address your nearest proxy saw.
96
96
 
97
97
  Anything else, pass your own callable. It receives the request and returns an address.
98
98
 
@@ -104,7 +104,7 @@ The request is let through, and the reason is recorded on the answer's `error`.
104
104
 
105
105
  ## Cost and latency
106
106
 
107
- Answers are cached for an hour, so a returning visitor costs nothing, and private addresses never leave the process. A cache miss is one request to our API, bounded at 2.5 seconds by default and not retried — on a request path, failing open quickly beats holding a visitor while we try again. Both are adjustable, as is the cache, through a `vpndetection` client you build yourself and pass as `client`.
107
+ Answers are cached for an hour, so a returning visitor costs nothing, and private addresses never leave the process. A cache miss is one request to our API, bounded at 2.5 seconds by default and not retried: on a request path, failing open fast beats holding a visitor while we retry. Both are adjustable, as is the cache, through a `vpndetection` client you build yourself and pass as `client`.
108
108
 
109
109
  Skip what you do not care about:
110
110
 
@@ -116,7 +116,7 @@ Beyond a few million distinct visitors a day, stop calling the API per request:
116
116
 
117
117
  ## Absent is not false
118
118
 
119
- Unlimited, with a key or without one, leaves out `is_hosting`, `is_cdn` and the four proxy flags, and of the detail behind each flag it answers only Tor's and relay's. A field your plan does not include is `None`, which means "not in your plan" rather than "checked, and no".
119
+ Unlimited, with a key or without one, leaves out `is_hosting`, `is_cdn`, the four proxy flags, the carrier, satellite and service flags, `company` and `abuse`, and of the detail behind each flag it answers only Tor's and relay's. A field your plan does not include is `None`, which means "not in your plan" rather than "checked, and no".
120
120
 
121
121
  ```python
122
122
  lookup(request).result.is_hosting # None when your plan does not include it
@@ -24,7 +24,7 @@ classifiers = [
24
24
  "Topic :: Security",
25
25
  "Typing :: Typed",
26
26
  ]
27
- dependencies = ["vpndetection>=5.18.0,<6", "starlette>=0.37"]
27
+ dependencies = ["vpndetection>=5.19.0,<6", "starlette>=0.37"]
28
28
 
29
29
  [project.urls]
30
30
  Homepage = "https://vpndetection.io"
@@ -45,7 +45,7 @@ __all__ = [
45
45
  "xff_ip_selector",
46
46
  ]
47
47
 
48
- __version__ = "2.1.26"
48
+ __version__ = "2.1.28"
49
49
 
50
50
  # Set on a request ``skip`` claimed, so block_if can tell it from one the middleware
51
51
  # never saw.
@@ -1431,7 +1431,7 @@
1431
1431
  }
1432
1432
  ],
1433
1433
  "bogonResponse": {
1434
- "why": "A bogon is answered locally in the full shape. Every flag is present and false, every detail object is present and empty, location and asn carry every key empty as the API answers a bogon (asn 0, strings empty), and is_bogon is true, as the API answers reserved space; the SDK computes it rather than asking.",
1434
+ "why": "A bogon is answered locally in the full shape. Every flag is present and false, every detail object is present and empty, web is an empty list, location, asn, company and abuse carry every key empty or zero as the API answers a bogon (asn 0, latitude 0, strings empty, validated false), hostname is an empty string, and is_bogon is true, as the API answers reserved space; the SDK computes it rather than asking.",
1435
1435
  "flagsFalse": [
1436
1436
  "is_vpn",
1437
1437
  "is_hosting",
@@ -1441,7 +1441,15 @@
1441
1441
  "is_resproxy",
1442
1442
  "is_dcproxy",
1443
1443
  "is_mobproxy",
1444
- "is_pubproxy"
1444
+ "is_pubproxy",
1445
+ "is_anycast",
1446
+ "is_carrier",
1447
+ "is_satellite",
1448
+ "is_ssh",
1449
+ "is_smtp",
1450
+ "is_web",
1451
+ "is_dns_resolver",
1452
+ "is_bittorrent"
1445
1453
  ],
1446
1454
  "emptyObjects": [
1447
1455
  "vpn",
@@ -1452,7 +1460,13 @@
1452
1460
  "resproxy",
1453
1461
  "dcproxy",
1454
1462
  "mobproxy",
1455
- "pubproxy"
1463
+ "pubproxy",
1464
+ "carrier",
1465
+ "satellite",
1466
+ "ssh",
1467
+ "smtp",
1468
+ "dns_resolver",
1469
+ "bittorrent"
1456
1470
  ],
1457
1471
  "location": {
1458
1472
  "continent": "",
@@ -1464,14 +1478,44 @@
1464
1478
  "currency_name": "",
1465
1479
  "currency_symbol": "",
1466
1480
  "flag_emoji": "",
1467
- "flag_unicode": ""
1481
+ "flag_unicode": "",
1482
+ "region": "",
1483
+ "region_code": "",
1484
+ "city": "",
1485
+ "postal_code": "",
1486
+ "latitude": 0,
1487
+ "longitude": 0,
1488
+ "accuracy_radius": 0,
1489
+ "geoname_id": "",
1490
+ "dma_code": "",
1491
+ "last_changed": ""
1468
1492
  },
1469
1493
  "asn": {
1470
1494
  "asn": 0,
1471
1495
  "name": "",
1472
1496
  "domain": "",
1473
1497
  "type": "",
1474
- "prefix": ""
1498
+ "prefix": "",
1499
+ "country": "",
1500
+ "rpki_status": ""
1501
+ },
1502
+ "web": [],
1503
+ "hostname": "",
1504
+ "company": {
1505
+ "name": "",
1506
+ "domain": "",
1507
+ "type": "",
1508
+ "country": ""
1509
+ },
1510
+ "abuse": {
1511
+ "email": "",
1512
+ "name": "",
1513
+ "phone": "",
1514
+ "address": "",
1515
+ "country": "",
1516
+ "network": "",
1517
+ "validated": false,
1518
+ "unvalidated_since": ""
1475
1519
  }
1476
1520
  },
1477
1521
  "lookup": [
@@ -1959,7 +2003,7 @@
1959
2003
  },
1960
2004
  {
1961
2005
  "name": "trial-full-answer",
1962
- "why": "A free-plan key within its UTC day's trial, the first 100 lookups: every field, as a paid plan answers it, and trial_expired false. trial_expired maps on presence like any flag.",
2006
+ "why": "A free-plan key within its trial: every field, as a paid plan answers it, and trial_expired false. trial_expired maps on presence like any flag.",
1963
2007
  "status": 200,
1964
2008
  "body": {
1965
2009
  "ip": "146.70.116.130",
@@ -2062,7 +2106,7 @@
2062
2106
  },
2063
2107
  {
2064
2108
  "name": "trial-expired-answer",
2065
- "why": "A free-plan key past its UTC day's trial: Unlimited's answer, and trial_expired true. What the day no longer answers is absent, never false.",
2109
+ "why": "A free-plan key past its trial: Unlimited's answer, and trial_expired true. What the trial no longer answers is absent, never false.",
2066
2110
  "status": 200,
2067
2111
  "body": {
2068
2112
  "ip": "146.70.116.130",
@@ -2222,6 +2266,759 @@
2222
2266
  "prefix": "146.70.116.0/24"
2223
2267
  }
2224
2268
  }
2269
+ },
2270
+ {
2271
+ "name": "unlimited-anycast-hostname",
2272
+ "why": "Unlimited's answer, with a key or without one, also carries is_anycast, hostname, and the AS's country and RPKI status. The paid members stay absent, never false or empty.",
2273
+ "status": 200,
2274
+ "body": {
2275
+ "ip": "1.1.1.1",
2276
+ "is_bogon": false,
2277
+ "is_vpn": false,
2278
+ "is_relay": false,
2279
+ "is_tor": false,
2280
+ "is_anycast": true,
2281
+ "relay": {},
2282
+ "tor": {},
2283
+ "location": {
2284
+ "continent": "OC",
2285
+ "continent_name": "Oceania",
2286
+ "country": "AU",
2287
+ "country_name": "Australia",
2288
+ "timezone": "Australia/Sydney",
2289
+ "currency_code": "AUD",
2290
+ "currency_name": "Australian Dollar",
2291
+ "currency_symbol": "$",
2292
+ "flag_emoji": "🇦🇺",
2293
+ "flag_unicode": "U+1F1E6 U+1F1FA"
2294
+ },
2295
+ "asn": {
2296
+ "asn": 13335,
2297
+ "name": "Cloudflare, Inc.",
2298
+ "domain": "cloudflare.com",
2299
+ "type": "hosting",
2300
+ "prefix": "1.1.1.0/24",
2301
+ "country": "US",
2302
+ "rpki_status": "valid"
2303
+ },
2304
+ "hostname": "one.one.one.one"
2305
+ },
2306
+ "expect": {
2307
+ "ip": "1.1.1.1",
2308
+ "isBogon": false,
2309
+ "present": {
2310
+ "is_vpn": false,
2311
+ "is_relay": false,
2312
+ "is_tor": false,
2313
+ "is_anycast": true
2314
+ },
2315
+ "absent": [
2316
+ "is_hosting",
2317
+ "is_cdn",
2318
+ "is_resproxy",
2319
+ "is_dcproxy",
2320
+ "is_mobproxy",
2321
+ "is_pubproxy",
2322
+ "is_carrier",
2323
+ "is_satellite",
2324
+ "is_ssh",
2325
+ "is_smtp",
2326
+ "is_web",
2327
+ "is_dns_resolver",
2328
+ "is_bittorrent",
2329
+ "vpn",
2330
+ "hosting",
2331
+ "cdn",
2332
+ "resproxy",
2333
+ "dcproxy",
2334
+ "mobproxy",
2335
+ "pubproxy",
2336
+ "carrier",
2337
+ "satellite",
2338
+ "ssh",
2339
+ "smtp",
2340
+ "dns_resolver",
2341
+ "bittorrent",
2342
+ "web",
2343
+ "company",
2344
+ "abuse"
2345
+ ],
2346
+ "emptyPresent": [
2347
+ "relay",
2348
+ "tor"
2349
+ ],
2350
+ "location": {
2351
+ "continent": "OC",
2352
+ "continent_name": "Oceania",
2353
+ "country": "AU",
2354
+ "country_name": "Australia",
2355
+ "timezone": "Australia/Sydney",
2356
+ "currency_code": "AUD",
2357
+ "currency_name": "Australian Dollar",
2358
+ "currency_symbol": "$",
2359
+ "flag_emoji": "🇦🇺",
2360
+ "flag_unicode": "U+1F1E6 U+1F1FA"
2361
+ },
2362
+ "asn": {
2363
+ "asn": 13335,
2364
+ "name": "Cloudflare, Inc.",
2365
+ "domain": "cloudflare.com",
2366
+ "type": "hosting",
2367
+ "prefix": "1.1.1.0/24",
2368
+ "country": "US",
2369
+ "rpki_status": "valid"
2370
+ },
2371
+ "hostname": "one.one.one.one"
2372
+ }
2373
+ },
2374
+ {
2375
+ "name": "paid-anycast-web-dns-resolver",
2376
+ "why": "A paid answer carries the network and service flags with their detail, the finer location, the company, the hostname and the abuse contact. web is a row per port that answered, lowest first; a false flag's detail is {} and a false is_web's is [].",
2377
+ "status": 200,
2378
+ "body": {
2379
+ "ip": "1.1.1.1",
2380
+ "is_bogon": false,
2381
+ "is_vpn": false,
2382
+ "is_hosting": false,
2383
+ "is_relay": false,
2384
+ "is_tor": false,
2385
+ "is_cdn": false,
2386
+ "is_resproxy": false,
2387
+ "is_dcproxy": false,
2388
+ "is_mobproxy": false,
2389
+ "is_pubproxy": false,
2390
+ "is_anycast": true,
2391
+ "is_carrier": false,
2392
+ "is_satellite": false,
2393
+ "is_ssh": false,
2394
+ "is_smtp": false,
2395
+ "is_web": true,
2396
+ "is_dns_resolver": true,
2397
+ "is_bittorrent": false,
2398
+ "vpn": {},
2399
+ "hosting": {},
2400
+ "relay": {},
2401
+ "tor": {},
2402
+ "cdn": {},
2403
+ "resproxy": {},
2404
+ "dcproxy": {},
2405
+ "mobproxy": {},
2406
+ "pubproxy": {},
2407
+ "carrier": {},
2408
+ "satellite": {},
2409
+ "ssh": {},
2410
+ "smtp": {},
2411
+ "web": [
2412
+ {
2413
+ "port": 80,
2414
+ "tls_ok": false,
2415
+ "session_ok": true,
2416
+ "status_code": 301,
2417
+ "server": "cloudflare",
2418
+ "location": "https://one.one.one.one/",
2419
+ "title": "",
2420
+ "cert_subject_cn": "",
2421
+ "cert_subject_o": "",
2422
+ "cert_issuer_dn": "",
2423
+ "cert_browser_trusted": false,
2424
+ "tls_version": "",
2425
+ "first_seen": "2026-08-04",
2426
+ "last_seen": "2026-11-15"
2427
+ },
2428
+ {
2429
+ "port": 443,
2430
+ "tls_ok": true,
2431
+ "session_ok": true,
2432
+ "status_code": 200,
2433
+ "server": "cloudflare",
2434
+ "location": "",
2435
+ "title": "1.1.1.1 | The free app that makes your Internet faster.",
2436
+ "cert_subject_cn": "cloudflare-dns.com",
2437
+ "cert_subject_o": "Cloudflare, Inc.",
2438
+ "cert_issuer_dn": "CN=DigiCert Global G2 TLS RSA SHA256 2020 CA1,O=DigiCert Inc,C=US",
2439
+ "cert_browser_trusted": true,
2440
+ "tls_version": "TLS 1.3",
2441
+ "first_seen": "2026-08-04",
2442
+ "last_seen": "2026-11-15"
2443
+ }
2444
+ ],
2445
+ "dns_resolver": {
2446
+ "port": 53,
2447
+ "recursion_available": true,
2448
+ "rcode": 0,
2449
+ "answer_correct": true,
2450
+ "first_seen": "2026-08-04",
2451
+ "last_seen": "2026-11-15"
2452
+ },
2453
+ "bittorrent": {},
2454
+ "location": {
2455
+ "continent": "OC",
2456
+ "continent_name": "Oceania",
2457
+ "country": "AU",
2458
+ "country_name": "Australia",
2459
+ "timezone": "Australia/Sydney",
2460
+ "currency_code": "AUD",
2461
+ "currency_name": "Australian Dollar",
2462
+ "currency_symbol": "$",
2463
+ "flag_emoji": "🇦🇺",
2464
+ "flag_unicode": "U+1F1E6 U+1F1FA",
2465
+ "region": "New South Wales",
2466
+ "region_code": "AU-NSW",
2467
+ "city": "Sydney",
2468
+ "postal_code": "2000",
2469
+ "latitude": -33.86785,
2470
+ "longitude": 151.20732,
2471
+ "accuracy_radius": 20000,
2472
+ "geoname_id": "2147714",
2473
+ "dma_code": "",
2474
+ "last_changed": "2026-09-30"
2475
+ },
2476
+ "asn": {
2477
+ "asn": 13335,
2478
+ "name": "Cloudflare, Inc.",
2479
+ "domain": "cloudflare.com",
2480
+ "type": "hosting",
2481
+ "prefix": "1.1.1.0/24",
2482
+ "country": "US",
2483
+ "rpki_status": "valid"
2484
+ },
2485
+ "company": {
2486
+ "name": "Cloudflare, Inc.",
2487
+ "domain": "cloudflare.com",
2488
+ "type": "hosting",
2489
+ "country": "US"
2490
+ },
2491
+ "hostname": "one.one.one.one",
2492
+ "abuse": {
2493
+ "email": "abuse@cloudflare.com",
2494
+ "name": "Abuse",
2495
+ "phone": "+1-650-319-8930",
2496
+ "address": "101 Townsend Street, San Francisco, CA 94107",
2497
+ "country": "US",
2498
+ "network": "1.1.1.0-1.1.1.255",
2499
+ "validated": true,
2500
+ "unvalidated_since": ""
2501
+ },
2502
+ "cap_reached": false
2503
+ },
2504
+ "expect": {
2505
+ "ip": "1.1.1.1",
2506
+ "isBogon": false,
2507
+ "present": {
2508
+ "is_anycast": true,
2509
+ "is_carrier": false,
2510
+ "is_satellite": false,
2511
+ "is_ssh": false,
2512
+ "is_smtp": false,
2513
+ "is_web": true,
2514
+ "is_dns_resolver": true,
2515
+ "is_bittorrent": false,
2516
+ "cap_reached": false
2517
+ },
2518
+ "absent": [
2519
+ "trial_expired"
2520
+ ],
2521
+ "emptyPresent": [
2522
+ "carrier",
2523
+ "satellite",
2524
+ "ssh",
2525
+ "smtp",
2526
+ "bittorrent"
2527
+ ],
2528
+ "web": [
2529
+ {
2530
+ "port": 80,
2531
+ "tls_ok": false,
2532
+ "session_ok": true,
2533
+ "status_code": 301,
2534
+ "server": "cloudflare",
2535
+ "location": "https://one.one.one.one/",
2536
+ "title": "",
2537
+ "cert_subject_cn": "",
2538
+ "cert_subject_o": "",
2539
+ "cert_issuer_dn": "",
2540
+ "cert_browser_trusted": false,
2541
+ "tls_version": "",
2542
+ "first_seen": "2026-08-04",
2543
+ "last_seen": "2026-11-15"
2544
+ },
2545
+ {
2546
+ "port": 443,
2547
+ "tls_ok": true,
2548
+ "session_ok": true,
2549
+ "status_code": 200,
2550
+ "server": "cloudflare",
2551
+ "location": "",
2552
+ "title": "1.1.1.1 | The free app that makes your Internet faster.",
2553
+ "cert_subject_cn": "cloudflare-dns.com",
2554
+ "cert_subject_o": "Cloudflare, Inc.",
2555
+ "cert_issuer_dn": "CN=DigiCert Global G2 TLS RSA SHA256 2020 CA1,O=DigiCert Inc,C=US",
2556
+ "cert_browser_trusted": true,
2557
+ "tls_version": "TLS 1.3",
2558
+ "first_seen": "2026-08-04",
2559
+ "last_seen": "2026-11-15"
2560
+ }
2561
+ ],
2562
+ "dns_resolver": {
2563
+ "port": 53,
2564
+ "recursion_available": true,
2565
+ "rcode": 0,
2566
+ "answer_correct": true,
2567
+ "first_seen": "2026-08-04",
2568
+ "last_seen": "2026-11-15"
2569
+ },
2570
+ "location": {
2571
+ "continent": "OC",
2572
+ "continent_name": "Oceania",
2573
+ "country": "AU",
2574
+ "country_name": "Australia",
2575
+ "timezone": "Australia/Sydney",
2576
+ "currency_code": "AUD",
2577
+ "currency_name": "Australian Dollar",
2578
+ "currency_symbol": "$",
2579
+ "flag_emoji": "🇦🇺",
2580
+ "flag_unicode": "U+1F1E6 U+1F1FA",
2581
+ "region": "New South Wales",
2582
+ "region_code": "AU-NSW",
2583
+ "city": "Sydney",
2584
+ "postal_code": "2000",
2585
+ "latitude": -33.86785,
2586
+ "longitude": 151.20732,
2587
+ "accuracy_radius": 20000,
2588
+ "geoname_id": "2147714",
2589
+ "dma_code": "",
2590
+ "last_changed": "2026-09-30"
2591
+ },
2592
+ "asn": {
2593
+ "asn": 13335,
2594
+ "name": "Cloudflare, Inc.",
2595
+ "domain": "cloudflare.com",
2596
+ "type": "hosting",
2597
+ "prefix": "1.1.1.0/24",
2598
+ "country": "US",
2599
+ "rpki_status": "valid"
2600
+ },
2601
+ "company": {
2602
+ "name": "Cloudflare, Inc.",
2603
+ "domain": "cloudflare.com",
2604
+ "type": "hosting",
2605
+ "country": "US"
2606
+ },
2607
+ "abuse": {
2608
+ "email": "abuse@cloudflare.com",
2609
+ "name": "Abuse",
2610
+ "phone": "+1-650-319-8930",
2611
+ "address": "101 Townsend Street, San Francisco, CA 94107",
2612
+ "country": "US",
2613
+ "network": "1.1.1.0-1.1.1.255",
2614
+ "validated": true,
2615
+ "unvalidated_since": ""
2616
+ },
2617
+ "hostname": "one.one.one.one"
2618
+ }
2619
+ },
2620
+ {
2621
+ "name": "paid-carrier-ssh-smtp-bittorrent",
2622
+ "why": "A paid answer for a carrier's address with SSH, SMTP and BitTorrent seen on it: each detail maps whole, BitTorrent's clients a list. No web server answered, so is_web is false and web is [], and an unvalidated abuse contact keeps validated false with the date it lapsed.",
2623
+ "status": 200,
2624
+ "body": {
2625
+ "ip": "172.56.10.20",
2626
+ "is_bogon": false,
2627
+ "is_vpn": false,
2628
+ "is_hosting": false,
2629
+ "is_relay": false,
2630
+ "is_tor": false,
2631
+ "is_cdn": false,
2632
+ "is_resproxy": false,
2633
+ "is_dcproxy": false,
2634
+ "is_mobproxy": false,
2635
+ "is_pubproxy": false,
2636
+ "is_anycast": false,
2637
+ "is_carrier": true,
2638
+ "is_satellite": false,
2639
+ "is_ssh": true,
2640
+ "is_smtp": true,
2641
+ "is_web": false,
2642
+ "is_dns_resolver": false,
2643
+ "is_bittorrent": true,
2644
+ "vpn": {},
2645
+ "hosting": {},
2646
+ "relay": {},
2647
+ "tor": {},
2648
+ "cdn": {},
2649
+ "resproxy": {},
2650
+ "dcproxy": {},
2651
+ "mobproxy": {},
2652
+ "pubproxy": {},
2653
+ "carrier": {
2654
+ "name": "T-Mobile US",
2655
+ "mcc": "310",
2656
+ "mnc": "260",
2657
+ "country": "US",
2658
+ "confidence": "high"
2659
+ },
2660
+ "satellite": {},
2661
+ "ssh": {
2662
+ "port": 22,
2663
+ "banner": "SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.5",
2664
+ "host_key_fp": "SHA256:9Bq3Jrm6pVJ7QqV2c8l0pE6f8wJ4sZ4u5tYyH9cXo1E",
2665
+ "session_ok": true,
2666
+ "first_seen": "2026-08-04",
2667
+ "last_seen": "2026-11-15"
2668
+ },
2669
+ "smtp": {
2670
+ "port": 25,
2671
+ "banner": "220 mail.example.com ESMTP Postfix",
2672
+ "session_ok": false,
2673
+ "first_seen": "2026-08-04",
2674
+ "last_seen": "2026-11-15"
2675
+ },
2676
+ "web": [],
2677
+ "dns_resolver": {},
2678
+ "bittorrent": {
2679
+ "verified": true,
2680
+ "id_matches_ip": false,
2681
+ "first_seen": "2026-08-21",
2682
+ "last_seen": "2026-11-15",
2683
+ "last_reachable": "2026-11-14",
2684
+ "days_seen": 37,
2685
+ "num_ports": 4,
2686
+ "peak_num_ports": 2,
2687
+ "indexer": false,
2688
+ "clients": [
2689
+ "qB",
2690
+ "TR"
2691
+ ]
2692
+ },
2693
+ "location": {
2694
+ "continent": "NA",
2695
+ "continent_name": "North America",
2696
+ "country": "US",
2697
+ "country_name": "United States",
2698
+ "timezone": "America/Chicago",
2699
+ "currency_code": "USD",
2700
+ "currency_name": "US Dollar",
2701
+ "currency_symbol": "$",
2702
+ "flag_emoji": "🇺🇸",
2703
+ "flag_unicode": "U+1F1FA U+1F1F8",
2704
+ "region": "Texas",
2705
+ "region_code": "US-TX",
2706
+ "city": "Dallas",
2707
+ "postal_code": "75201",
2708
+ "latitude": 32.78306,
2709
+ "longitude": -96.80667,
2710
+ "accuracy_radius": 100,
2711
+ "geoname_id": "4684888",
2712
+ "dma_code": "623",
2713
+ "last_changed": "2026-10-12"
2714
+ },
2715
+ "asn": {
2716
+ "asn": 21928,
2717
+ "name": "T-Mobile USA, Inc.",
2718
+ "domain": "t-mobile.com",
2719
+ "type": "isp",
2720
+ "prefix": "172.56.0.0/14",
2721
+ "country": "US",
2722
+ "rpki_status": "not_found"
2723
+ },
2724
+ "company": {
2725
+ "name": "T-Mobile USA, Inc.",
2726
+ "domain": "t-mobile.com",
2727
+ "type": "isp",
2728
+ "country": "US"
2729
+ },
2730
+ "hostname": "",
2731
+ "abuse": {
2732
+ "email": "abuse@t-mobile.com",
2733
+ "name": "T-Mobile Abuse",
2734
+ "phone": "",
2735
+ "address": "Bellevue, WA, US",
2736
+ "country": "US",
2737
+ "network": "172.56.0.0-172.59.255.255",
2738
+ "validated": false,
2739
+ "unvalidated_since": "2025-03-01"
2740
+ },
2741
+ "cap_reached": false
2742
+ },
2743
+ "expect": {
2744
+ "ip": "172.56.10.20",
2745
+ "isBogon": false,
2746
+ "present": {
2747
+ "is_anycast": false,
2748
+ "is_carrier": true,
2749
+ "is_satellite": false,
2750
+ "is_ssh": true,
2751
+ "is_smtp": true,
2752
+ "is_web": false,
2753
+ "is_dns_resolver": false,
2754
+ "is_bittorrent": true
2755
+ },
2756
+ "absent": [],
2757
+ "emptyPresent": [
2758
+ "satellite",
2759
+ "dns_resolver"
2760
+ ],
2761
+ "carrier": {
2762
+ "name": "T-Mobile US",
2763
+ "mcc": "310",
2764
+ "mnc": "260",
2765
+ "country": "US",
2766
+ "confidence": "high"
2767
+ },
2768
+ "ssh": {
2769
+ "port": 22,
2770
+ "banner": "SSH-2.0-OpenSSH_9.6p1 Ubuntu-3ubuntu13.5",
2771
+ "host_key_fp": "SHA256:9Bq3Jrm6pVJ7QqV2c8l0pE6f8wJ4sZ4u5tYyH9cXo1E",
2772
+ "session_ok": true,
2773
+ "first_seen": "2026-08-04",
2774
+ "last_seen": "2026-11-15"
2775
+ },
2776
+ "smtp": {
2777
+ "port": 25,
2778
+ "banner": "220 mail.example.com ESMTP Postfix",
2779
+ "session_ok": false,
2780
+ "first_seen": "2026-08-04",
2781
+ "last_seen": "2026-11-15"
2782
+ },
2783
+ "bittorrent": {
2784
+ "verified": true,
2785
+ "id_matches_ip": false,
2786
+ "first_seen": "2026-08-21",
2787
+ "last_seen": "2026-11-15",
2788
+ "last_reachable": "2026-11-14",
2789
+ "days_seen": 37,
2790
+ "num_ports": 4,
2791
+ "peak_num_ports": 2,
2792
+ "indexer": false,
2793
+ "clients": [
2794
+ "qB",
2795
+ "TR"
2796
+ ]
2797
+ },
2798
+ "web": [],
2799
+ "location": {
2800
+ "continent": "NA",
2801
+ "continent_name": "North America",
2802
+ "country": "US",
2803
+ "country_name": "United States",
2804
+ "timezone": "America/Chicago",
2805
+ "currency_code": "USD",
2806
+ "currency_name": "US Dollar",
2807
+ "currency_symbol": "$",
2808
+ "flag_emoji": "🇺🇸",
2809
+ "flag_unicode": "U+1F1FA U+1F1F8",
2810
+ "region": "Texas",
2811
+ "region_code": "US-TX",
2812
+ "city": "Dallas",
2813
+ "postal_code": "75201",
2814
+ "latitude": 32.78306,
2815
+ "longitude": -96.80667,
2816
+ "accuracy_radius": 100,
2817
+ "geoname_id": "4684888",
2818
+ "dma_code": "623",
2819
+ "last_changed": "2026-10-12"
2820
+ },
2821
+ "asn": {
2822
+ "asn": 21928,
2823
+ "name": "T-Mobile USA, Inc.",
2824
+ "domain": "t-mobile.com",
2825
+ "type": "isp",
2826
+ "prefix": "172.56.0.0/14",
2827
+ "country": "US",
2828
+ "rpki_status": "not_found"
2829
+ },
2830
+ "company": {
2831
+ "name": "T-Mobile USA, Inc.",
2832
+ "domain": "t-mobile.com",
2833
+ "type": "isp",
2834
+ "country": "US"
2835
+ },
2836
+ "abuse": {
2837
+ "email": "abuse@t-mobile.com",
2838
+ "name": "T-Mobile Abuse",
2839
+ "phone": "",
2840
+ "address": "Bellevue, WA, US",
2841
+ "country": "US",
2842
+ "network": "172.56.0.0-172.59.255.255",
2843
+ "validated": false,
2844
+ "unvalidated_since": "2025-03-01"
2845
+ },
2846
+ "hostname": ""
2847
+ }
2848
+ },
2849
+ {
2850
+ "name": "paid-satellite",
2851
+ "why": "A paid answer for a satellite operator's address: satellite maps whole, its asn an integer, and every other new detail is empty.",
2852
+ "status": 200,
2853
+ "body": {
2854
+ "ip": "98.97.0.1",
2855
+ "is_bogon": false,
2856
+ "is_vpn": false,
2857
+ "is_hosting": false,
2858
+ "is_relay": false,
2859
+ "is_tor": false,
2860
+ "is_cdn": false,
2861
+ "is_resproxy": false,
2862
+ "is_dcproxy": false,
2863
+ "is_mobproxy": false,
2864
+ "is_pubproxy": false,
2865
+ "is_anycast": false,
2866
+ "is_carrier": false,
2867
+ "is_satellite": true,
2868
+ "is_ssh": false,
2869
+ "is_smtp": false,
2870
+ "is_web": false,
2871
+ "is_dns_resolver": false,
2872
+ "is_bittorrent": false,
2873
+ "vpn": {},
2874
+ "hosting": {},
2875
+ "relay": {},
2876
+ "tor": {},
2877
+ "cdn": {},
2878
+ "resproxy": {},
2879
+ "dcproxy": {},
2880
+ "mobproxy": {},
2881
+ "pubproxy": {},
2882
+ "carrier": {},
2883
+ "satellite": {
2884
+ "provider": "starlink",
2885
+ "provider_name": "Starlink",
2886
+ "orbit": "leo",
2887
+ "segment": "consumer",
2888
+ "country": "US",
2889
+ "asn": 14593,
2890
+ "confidence": "high"
2891
+ },
2892
+ "ssh": {},
2893
+ "smtp": {},
2894
+ "web": [],
2895
+ "dns_resolver": {},
2896
+ "bittorrent": {},
2897
+ "location": {
2898
+ "continent": "NA",
2899
+ "continent_name": "North America",
2900
+ "country": "US",
2901
+ "country_name": "United States",
2902
+ "timezone": "America/Los_Angeles",
2903
+ "currency_code": "USD",
2904
+ "currency_name": "US Dollar",
2905
+ "currency_symbol": "$",
2906
+ "flag_emoji": "🇺🇸",
2907
+ "flag_unicode": "U+1F1FA U+1F1F8",
2908
+ "region": "California",
2909
+ "region_code": "US-CA",
2910
+ "city": "Los Angeles",
2911
+ "postal_code": "90001",
2912
+ "latitude": 34.05223,
2913
+ "longitude": -118.24368,
2914
+ "accuracy_radius": 500,
2915
+ "geoname_id": "5368361",
2916
+ "dma_code": "803",
2917
+ "last_changed": "2026-10-20"
2918
+ },
2919
+ "asn": {
2920
+ "asn": 14593,
2921
+ "name": "Space Exploration Technologies Corporation",
2922
+ "domain": "spacex.com",
2923
+ "type": "isp",
2924
+ "prefix": "98.97.0.0/20",
2925
+ "country": "US",
2926
+ "rpki_status": "valid"
2927
+ },
2928
+ "company": {
2929
+ "name": "Starlink",
2930
+ "domain": "starlink.com",
2931
+ "type": "isp",
2932
+ "country": "US"
2933
+ },
2934
+ "hostname": "customer.lsancax1.isp.starlinkisp.net",
2935
+ "abuse": {
2936
+ "email": "abuse@spacex.com",
2937
+ "name": "SpaceX Abuse",
2938
+ "phone": "",
2939
+ "address": "Hawthorne, CA, US",
2940
+ "country": "US",
2941
+ "network": "98.97.0.0-98.97.15.255",
2942
+ "validated": true,
2943
+ "unvalidated_since": ""
2944
+ },
2945
+ "cap_reached": false
2946
+ },
2947
+ "expect": {
2948
+ "ip": "98.97.0.1",
2949
+ "isBogon": false,
2950
+ "present": {
2951
+ "is_satellite": true,
2952
+ "is_carrier": false,
2953
+ "is_web": false
2954
+ },
2955
+ "absent": [],
2956
+ "emptyPresent": [
2957
+ "carrier",
2958
+ "ssh",
2959
+ "smtp",
2960
+ "dns_resolver",
2961
+ "bittorrent"
2962
+ ],
2963
+ "satellite": {
2964
+ "provider": "starlink",
2965
+ "provider_name": "Starlink",
2966
+ "orbit": "leo",
2967
+ "segment": "consumer",
2968
+ "country": "US",
2969
+ "asn": 14593,
2970
+ "confidence": "high"
2971
+ },
2972
+ "web": [],
2973
+ "location": {
2974
+ "continent": "NA",
2975
+ "continent_name": "North America",
2976
+ "country": "US",
2977
+ "country_name": "United States",
2978
+ "timezone": "America/Los_Angeles",
2979
+ "currency_code": "USD",
2980
+ "currency_name": "US Dollar",
2981
+ "currency_symbol": "$",
2982
+ "flag_emoji": "🇺🇸",
2983
+ "flag_unicode": "U+1F1FA U+1F1F8",
2984
+ "region": "California",
2985
+ "region_code": "US-CA",
2986
+ "city": "Los Angeles",
2987
+ "postal_code": "90001",
2988
+ "latitude": 34.05223,
2989
+ "longitude": -118.24368,
2990
+ "accuracy_radius": 500,
2991
+ "geoname_id": "5368361",
2992
+ "dma_code": "803",
2993
+ "last_changed": "2026-10-20"
2994
+ },
2995
+ "asn": {
2996
+ "asn": 14593,
2997
+ "name": "Space Exploration Technologies Corporation",
2998
+ "domain": "spacex.com",
2999
+ "type": "isp",
3000
+ "prefix": "98.97.0.0/20",
3001
+ "country": "US",
3002
+ "rpki_status": "valid"
3003
+ },
3004
+ "company": {
3005
+ "name": "Starlink",
3006
+ "domain": "starlink.com",
3007
+ "type": "isp",
3008
+ "country": "US"
3009
+ },
3010
+ "abuse": {
3011
+ "email": "abuse@spacex.com",
3012
+ "name": "SpaceX Abuse",
3013
+ "phone": "",
3014
+ "address": "Hawthorne, CA, US",
3015
+ "country": "US",
3016
+ "network": "98.97.0.0-98.97.15.255",
3017
+ "validated": true,
3018
+ "unvalidated_since": ""
3019
+ },
3020
+ "hostname": "customer.lsancax1.isp.starlinkisp.net"
3021
+ }
2225
3022
  }
2226
3023
  ],
2227
3024
  "errors": [
@@ -2313,7 +3110,7 @@
2313
3110
  "Retry-After": "1"
2314
3111
  },
2315
3112
  "body": {
2316
- "error": "per-minute limit for Unlimited lookups exceeded; retry shortly, or use a paid plan"
3113
+ "error": "rate limit for Unlimited lookups exceeded; retry shortly, or use a paid plan"
2317
3114
  },
2318
3115
  "expect": {
2319
3116
  "kind": "rate_limited",