IP Quality
Check each agent's egress IP against streaming and AI services, and score it for proxy, VPN, and fraud risk.
IP Quality lets each agent assess its VPS egress IP and report the results back to the server. It does two things:
- Service unlock detection -- the agent issues HTTP requests from its egress IP to determine the unlock status of popular streaming, AI, and social services.
- IP metadata and risk signals -- the server derives country and region from its local GeoIP database, then uses the configured third-party provider for supported network-type flags and, when available, a fraud risk score.
Results appear on a dedicated IP Quality sidebar route (global overview), a per-server detail tab, and -- when enabled on the public status page -- on /status.
Requirements
CAP_IP_QUALITY(bit1024) must be enabled on the agent. It is on by default (part ofCAP_DEFAULT).- A usable GeoIP MMDB is required for local baseline metadata. If no database is loaded, those fields remain unavailable; third-party enrichment can still provide supported risk and network-type fields. See Configuration for
geoip.mmdb_path.
Capability (agent-owned)
CAP_IP_QUALITY is owned by the agent host, like every capability -- the server cannot turn it on or off. It is enabled by default, so no action is needed to use IP Quality. To disable it on a specific host, add ip_quality to the agent's [capabilities] deny list (or pass --deny-cap ip_quality) and restart the agent:
[capabilities]
deny = ["ip_quality"]# Or via the command line
./serverbee-agent --deny-cap ip_qualityIf the agent does not report ip_quality, the agent runs no checks and the UI shows the standard disabled placeholder. See Capabilities.
Built-In Services
Nine services are seeded at startup. Each ships with a hardcoded detector that issues an HTTP request from the agent's egress IP and interprets the response to determine unlock status.
| Service | Category | Notes |
|---|---|---|
| Netflix | Streaming | Detects full unlock vs. originals-only vs. blocked |
| Disney+ | Streaming | |
| YouTube Premium | Streaming | |
| Amazon Prime Video | Streaming | |
| HBO Max | Streaming | |
| Spotify | Social | |
| ChatGPT | AI | |
| Gemini | AI | |
| TikTok | Social |
Each service can be individually enabled or disabled in Settings → IP Quality → Service Catalog. Built-in services cannot be deleted; their detection logic is immutable.
Custom Services
In addition to the built-in set, administrators can define custom services in Settings → IP Quality → Service Catalog → Add service.
Each custom service consists of:
- URL -- the endpoint to probe. When saving a custom service, the server validates that the URL uses
https://orhttp://on port80or443. SSRF validation (blocking private, loopback, link-local, and cloud metadata addresses) runs on the agent at probe time on every request and redirect hop. - Method -- HTTP method (
GET,HEAD, etc.) and optional request headers. - Match rules -- an ordered list of rules evaluated against the response. The first matching rule wins. Each rule matches on one of:
- HTTP status code (exact or range)
- Response body regex
- Redirect target URL pattern
The possible results are unlocked, restricted, blocked, failed, or unsupported.
Agent Execution Limits
The agent enforces the following runtime limits on unlock probes:
- Concurrency cap: up to
5concurrent service checks per agent. - Redirects: at most
5redirect hops per request. - Response body cap:
256 KiBmaximum read per probe. - Minimum timeout floor: per-request timeout is clamped to at least
1000 ms.
Check Cadence
The agent runs checks:
- On initial sync -- runs an automatic check immediately when the agent receives its first
IpQualitySync. - On schedule -- every
12hours by default, configurable in Settings → IP Quality → Settings → Check interval (check_interval_hours, valid range1–168hours). - When the egress IP changes -- the agent automatically reruns on detected IP changes.
- On demand -- click Check now on any server's IP Quality tab.
Check schedules are agent-side. The server only pushes the service catalog and forwards manual triggers.
IP Metadata and Risk Scoring
After receiving unlock results from an agent, the server:
- Derives available baseline metadata from a loaded local GeoIP MMDB, without an external request. The downloadable DB-IP Lite Country database provides country and region. If the MMDB is missing, unreadable, or does not cover the address, local baseline fields remain empty.
- Runs the configured third-party provider unless
risk_providerisnone. Anonymous ipapi.is supplies proxy, VPN, datacenter, Tor, abuse, and mobile flags, which ServerBee also uses to derive IP type, but its minimal response does not contain the nested score fields. A numeric0–100score, risk level, and additional fields (is_mobile,asn_abuser_score,abuse_email) require an ipapi.is API key and its full response. Results are cached by IP for 24 hours, so repeated checks of the same IP do not generate repeated API calls.
Risk level thresholds derived from risk_score:
0–33:low34–66:medium67+:highnull:unknown
If no provider returns a numeric score, risk_score and risk_level are null / unknown. Local metadata appears only when a usable MMDB is loaded.
Configuring a Risk Provider
Set ip_quality.risk_provider in server.toml (or SERVERBEE_IP_QUALITY__RISK_PROVIDER) to one of:
| Provider | Value | Notes |
|---|---|---|
| ipapi.is (default) | ipapi_is | Anonymous: 100 requests per client IP per UTC day with flags but no numeric score. Free account/API key: 1,000 requests per day with the full response required for the 0–100 score. |
| ip-api.com (fallback) | ip-api | Free tier, non-commercial use only. HTTP-only endpoint. No API key. Proxy/hosting flags and a derived IP type, but no numeric risk score. |
| Disabled | none | Local GeoIP metadata only when a usable MMDB is loaded; no risk score. |
Default behavior (no configuration needed): the Server calls ipapi.is anonymously. Anonymous access is limited to 100 requests per client IP per UTC day and returns flags that ServerBee uses for risk signals and a derived IP type, but no numeric risk score. Only a failed primary request, including an HTTP 429 after quota exhaustion, triggers the ip-api fallback; a successful response without a score does not. The fallback can supply proxy/hosting flags and a derived IP type, but not a numeric risk score. See the official ipapi.is developer limits and pricing.
Create a free ipapi.is account and configure its API key for 1,000 requests per day and the full response required for the 0–100 score:
[ip_quality]
risk_provider = "ipapi_is"
risk_provider_fallback = "ip-api" # default; set to "none" to disable
[ip_quality.ipapi_is]
api_key = "your_api_key"
# endpoint = "https://api.ipapi.is" # optional; override for self-hosted instancesTo disable risk scoring entirely:
[ip_quality]
risk_provider = "none"ip-api (ip-api.com) free tier allows non-commercial use only. Its API endpoint is HTTP (not HTTPS). Review its terms of service before using it in production.
Migrating from an older config? Legacy provider names (scamalytics, ipqs, proxycheck, abuseipdb) are no longer supported. If your server.toml or environment variables reference them, the server will log a startup warning and fall back to no-op scoring. Update risk_provider to ipapi_is (or none to opt out).
Full configuration reference: Configuration → IP Quality.
Viewing Results
| Where | What it shows |
|---|---|
IP Quality sidebar route (/ip-quality) | All-servers × services unlock matrix; IP quality card per server (IP type, country/region when GeoIP MMDB is loaded, risk score and level badge, and proxy/VPN/datacenter/Tor/abuser/mobile markers) |
| Server detail → IP Quality tab | Single server's IP quality card, its unlock matrix, status-change history, and a Check now button |
Public status page (/status) | Unlock matrix section, shown only when show_ip_quality is enabled on the status page |
Unlock status updates appear in real time over WebSocket -- no page refresh required.
Unlock Status Values
| Status | Meaning |
|---|---|
unlocked | Service is fully accessible from this egress IP |
restricted | Partial access (e.g. Netflix originals-only) |
blocked | Service is not accessible from this egress IP |
failed | Network error or timeout during the check |
unsupported | Service check not applicable for this IP type |
Public Status Page Exposure
IP Quality is off by default on the public status page (which is a singleton). To enable it:
- Go to Settings → Status Page.
- Toggle on Show IP Quality (
show_ip_quality: true).
The public endpoint GET /api/status/ip-quality is unauthenticated and returns PublicIpQualitySnapshot, which completely omits the egress ip address as well as detailed metadata and flags (asn, as_org, region, city, is_proxy, is_vpn, is_hosting, is_tor, is_abuser, is_mobile, asn_abuser_score, abuse_email, and per-service unlock detail) regardless of whether the viewer is signed in.
Retention
Status-change history events (the unlock_event log) are retained for 90 days by default. Tune with retention.ip_quality_event_days (env: SERVERBEE_RETENTION__IP_QUALITY_EVENT_DAYS). The hourly cleanup task purges expired rows automatically.
The latest unlock result and IP quality snapshot per server are kept indefinitely (they are replaced on each run, not accumulated).
REST API
| Method | Path | Description |
|---|---|---|
| GET | /api/ip-quality/services | List all unlock services (built-in and custom) |
| POST | /api/ip-quality/services | Create a custom unlock service (admin) |
| PUT | /api/ip-quality/services/{id} | Update a service (admin) |
| DELETE | /api/ip-quality/services/{id} | Delete a custom service (admin) |
| GET | /api/ip-quality/settings | Get global IP quality settings |
| PUT | /api/ip-quality/settings | Update global IP quality settings (admin) |
| GET | /api/ip-quality/overview | Fleet-wide unlock matrix and IP quality snapshots |
| GET | /api/ip-quality/servers/{id} | Single server's IP quality snapshot and unlock results |
| POST | /api/ip-quality/servers/{id}/check | Trigger an on-demand check for a server (admin) |
| GET | /api/ip-quality/events | List unlock status-change events (?server_id=...&limit=100) |
Data Flow
Agent
│ (CAP_IP_QUALITY effective)
├─ runs unlock checks on first sync / every interval_hours / on IP change / on RunNow
│ AgentMessage::UnlockResults (WebSocket)
▼
Server
├─ upserts unlock_result + appends unlock_event on status change
├─ broadcasts BrowserMessage::IpQualityUpdate (unlock results, ip_quality: null)
├─ background task: ip_risk scoring (GeoIP + optional third-party provider, cache-first)
├─ upserts ip_quality_snapshot
└─ broadcasts BrowserMessage::IpQualityUpdate (ip_quality: full data)
│
▼
/ip-quality + IP Quality tab + public status page