SpoofLens API: a risk score for sign-ups, checkouts and promo codes
Ask one question when a form is sent: does this visitor look like an honest person in a normal browser? The answer is a score from 0 to 100, a verdict, the reasons in plain words, the network (VPN, data center, Tor, proxy) and a device ID that shows how many of your accounts were created on the same device. It is the same engine as the browser check: about 30 consistency rules plus the TLS handshake, the TCP signature of the system, DNS and WebRTC seen by our own server.
Get a free key 1,000 checks a month free, no card. A live key needs a confirmed email, a test key does not.
Quick start
- Add the collector and a hidden field to the page with your form. The script fills the field with the browser signals by itself.
- When the form is sent, your server passes the field, the visitor's IP address and request headers to
POST /v1/assesswith your key. - Decide what to do with the answer: let the user in, ask for extra verification or block.
<script src="https://spooflens.com/v1/sl.js" data-field="sl_blob" async></script> <input type="hidden" name="sl_blob">
If you build the request yourself, call SpoofLens.collect(): it resolves to the same string.
PHP
$res = file_get_contents('https://spooflens.com/v1/assess', false, stream_context_create(['http' => [
'method' => 'POST',
'header' => "Authorization: Bearer " . getenv('SPOOFLENS_KEY') . "\r\nContent-Type: application/json\r\n",
'content' => json_encode([
'blob' => $_POST['sl_blob'] ?? '',
'on_missing' => 'assess', // no browser data (a bot without JavaScript, a blocker): still an answer
'ip' => $_SERVER['REMOTE_ADDR'],
'headers' => [
'user_agent' => $_SERVER['HTTP_USER_AGENT'] ?? '',
'accept_language' => $_SERVER['HTTP_ACCEPT_LANGUAGE'] ?? '',
'sec_ch_ua' => $_SERVER['HTTP_SEC_CH_UA'] ?? '',
'sec_ch_ua_platform' => $_SERVER['HTTP_SEC_CH_UA_PLATFORM'] ?? '',
'sec_ch_ua_mobile' => $_SERVER['HTTP_SEC_CH_UA_MOBILE'] ?? '',
],
'user_ref' => (string)$userId, // optional: enables "seen"
'event' => 'signup', // optional: login, checkout, coupon, …, for thresholds per event
]),
'timeout' => 5,
]]));
$risk = json_decode($res, true);
$action = $risk['decision']['action'] ?? 'allow'; // on our errors: let the user in
if ($action === 'block') {
// block or ask for verification
} elseif ($action === 'review') {
// let in, but watch: limit promo codes, delay payouts
}
Node.js
const r = await fetch('https://spooflens.com/v1/assess', {
method: 'POST',
headers: { Authorization: `Bearer ${process.env.SPOOFLENS_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({
blob: req.body.sl_blob || '',
on_missing: 'assess',
ip: req.ip,
headers: {
user_agent: req.get('user-agent') || '',
accept_language: req.get('accept-language') || '',
sec_ch_ua: req.get('sec-ch-ua') || '',
sec_ch_ua_platform: req.get('sec-ch-ua-platform') || '',
sec_ch_ua_mobile: req.get('sec-ch-ua-mobile') || '',
},
user_ref: String(user.id),
event: 'signup',
}),
signal: AbortSignal.timeout(5000),
});
const risk = await r.json(); // risk.decision.action: allow, review or block
Python
import os, requests
risk = requests.post("https://spooflens.com/v1/assess", timeout=5,
headers={"Authorization": f"Bearer {os.environ['SPOOFLENS_KEY']}"},
json={
"blob": request.form.get("sl_blob", ""),
"on_missing": "assess",
"ip": request.remote_addr,
"headers": {
"user_agent": request.headers.get("User-Agent", ""),
"accept_language": request.headers.get("Accept-Language", ""),
"sec_ch_ua": request.headers.get("Sec-CH-UA", ""),
"sec_ch_ua_platform": request.headers.get("Sec-CH-UA-Platform", ""),
"sec_ch_ua_mobile": request.headers.get("Sec-CH-UA-Mobile", ""),
},
"user_ref": str(user.id),
"event": "signup",
}).json() Behind a proxy or load balancer, send the visitor's real IP, not the proxy's. In X-Forwarded-For take the right-most value your own proxy added: anything to the left of it can be written by the visitor.
WordPress, WooCommerce and contact forms
No code needed: the plugin adds the collector to registration, checkout and contact forms, keeps the score with each user and order, shows a Risk column in the Users and Orders lists and a note on each order. It works with the WordPress registration form, WooCommerce My Account registration, both the classic and the block checkout, Contact Form 7 and WPForms, and supports High-Performance Order Storage. Blocking is off by default: you can block automated browsers, scores below a threshold, whatever your rules say to block, and form submissions sent without browser data, which is how most spam bots post. A blocked form submission is treated as spam: Contact Form 7 marks it as spam, WPForms shows an error and does not save it. If our API cannot be reached, nobody is blocked and the order is marked "not checked".
Get it on WordPress.org WordPress 6.0+, PHP 7.4+, WooCommerce 7.0+, Contact Form 7 or WPForms optional. Install: Plugins, Add New, search for "SpoofLens Fraud Check"; then Settings, SpoofLens, paste your key. The plugin takes a live key (sl_live_…), which needs a confirmed email on the account; a test key does not work there.
The plugin is in the WordPress.org directory, so WordPress shows its updates like those of any other plugin. A copy you installed from our zip (0.1.1 or 0.2.0) gets them too, and your settings stay. Had version 0.1.0? Its folder had a different name, so newer versions install next to it: deactivate and delete 0.1.0 first, then install the plugin from the directory and paste your key again (deleting 0.1.0 also removes the scores kept with users; the scores and notes on orders stay).
Recipes against abuse
Ready code in PHP, Node.js and Python, with the rules to set and the false alarms to avoid: repeated free trials, welcome coupons used under new emails and self-invites in referral programs. All recipes.
Authentication
Create a key in your account and send it as Authorization: Bearer sl_live_… (or X-API-Key). A live key needs a confirmed email on the account: if you signed up with an access key, add an address in the settings first. Keep the key on your server: never put it into page code. A key can be revoked at any time. To change a key (after a leak or when someone leaves), press Replace next to it: the new key keeps what the old one learned (device IDs, seen, the device lists in your rules), and the old key keeps working for 7 more days so your site can switch without a gap. Paid packages with more checks open after the beta on the pricing page.
Machine-readable description for tools and code generators: OpenAPI 3 (openapi.json).
Test keys
Next to the live keys, the account can make up to two test keys (sl_test_…). They need no email on the account. A test key answers like the live API, with real reason codes and texts, and your own rules give the decision, but it assesses nobody: the blob is not read, nothing counts toward the quota, the summary or the request log, and every answer has "test": true. Webhook events from a test key carry "test": true too. Use it to test every branch of your integration before it meets real visitors. The input is checked as on a live key (bad_json, bad_blob, bad_ip).
user_ref | Answer |
|---|---|
| anything else, or none | honest, score 100 |
test:contradictions | contradictions, 76: time zone against the IP country, Client Hints against the User-Agent |
test:vpn | contradictions, 76: a data center address and the time zone, network.type hosting |
test:spoofed | spoofed, 40: a TLS handshake of another browser and a graphics card of another system |
test:automation | automation, 70: navigator.webdriver |
test:tor | honest, 88: a Tor exit node, network.type tor |
test:replay | honest, 100, with the information reason blob_replayed |
test:agent | honest, 100, with agent ChatGPT-User, verified |
test:fakebot | automation, 70, with agent Googlebot, spoofed, and the reason agent_spoofed |
test:nodata | honest, 96, browser_data false with the reason no_browser_data: what a request without a blob gets with on_missing assess (also the answer to such a request when user_ref names no case) |
test:tool | automation, 66, without browser data: curl, the reason ua_tool |
test:accounts=N | honest, with seen.accounts_on_device_30d = N (1 to 999) |
test:error=400, 401, 429, 500, 503 | That HTTP status with the error your code would get (bad_signals, unauthorized, quota_exceeded, server, busy) |
test:timeout | The honest answer after 10 seconds, to test your timeout and fallback; once a minute per key |
GET /v1/ip/{ip} with a test key answers with documentation values (asn 64496, country ZZ).
POST /v1/assess
| Field | Type | |
|---|---|---|
blob | string | The value from sl.js. When it is empty or broken the answer is 400 bad_blob, unless on_missing says otherwise. |
on_missing | string | Optional. assess: without browser data, check the network and the headers and answer as usual (see without browser data). error: answer 400. Without the field the setting of your account decides (400 by default). |
ip | string | Required. The visitor's IP address (IPv4 or IPv6). |
headers | object | The visitor's user_agent, accept_language, sec_ch_ua, sec_ch_ua_platform, sec_ch_ua_mobile. Without them the header checks are skipped. Send every key even when the value is empty: an empty value says the visitor did not send that header, a missing key says you do not forward it. |
user_ref | string | Optional. Your own ID for the account (any string up to 200 characters). Enables seen, which keeps only its hash; the request log shows the first 64 characters, so prefer an opaque ID to an email. |
event | string | Optional. What happens on your site: signup, login, checkout, payout, coupon, password_reset, contact, comment, or your own custom:<name>. Each event can have its own thresholds (see events). |
event_status | string | Optional. How the event ended: attempted, succeeded, failed (for example a failed sign-in). Kept in the request log. |
proxy_headers | array | Optional. Names (not values) of forwarding headers your server received, such as Via. |
Response:
{
"ok": true,
"score": 58,
"verdict": "spoofed",
"reasons": [
{"code": "tls_ua", "severity": "high",
"title": "TLS handshake from another browser",
"text": "The User-Agent names Firefox, but the TLS handshake the server sees is typical of Chrome / Chromium. ..."},
{"code": "tz_ip", "severity": "medium",
"title": "Time zone does not match the IP country",
"text": "..."}
],
"device": {"id": "d_3f9c0a71b2e4d85c6a1f0e93", "browser": "Firefox", "os": "Windows",
"tls": "chromium", "ja4": "t13d1516h2_8daaf6152771_e2d80978ab2e"},
"network": {"ip": "203.0.113.42", "asn": 64500, "org": "Example Broadband", "country": "RO",
"type": "regular", "tor": false, "dns_leak": false, "webrtc_ip_mismatch": false},
"seen": {"accounts_on_device_30d": 3},
"edge": true,
"edge_ip": "same",
"agent": null,
"request_id": "r_5c2e8f1a9b0d3e47",
"ts": "2026-10-21T21:30:00+00:00",
"decision": {"action": "review", "rule": "score", "score": 58}
} score | 100 means nothing contradicts. Each finding lowers it: high by 30, medium by 12, low by 4; privacy and info by 0. |
verdict | honest (85 and above), contradictions (60 to 84), spoofed (below 60), automation (a controlled or headless browser, whatever the score). |
reasons | Findings, strongest first. severity: high, medium, low, privacy (Brave, Tor Browser, Firefox resistFingerprinting: protection, not a lie), info. |
device.id | A hash of stable traits (canvas, WebGL, audio, fonts, screen, hardware) keyed with your own salt. Stable across visits of the same browser profile; different on every other client's site, so it cannot be used to follow people between sites. null without browser data. |
network | The network number (asn), the provider (org) and the country come from the DB-IP Lite databases kept on our server, so the address is not sent anywhere else. The country is where the database places the address, not where the network is registered. type is hosting for data center, hosting and VPN networks. If you show these values to people, credit DB-IP with a link to db-ip.com (licence CC BY 4.0). |
seen | Only with user_ref: how many of your accounts used this device in the last 30 days, the current one included. Several accounts on one device is the classic sign of promo and trial abuse. |
edge | Whether the TLS, DNS and WebRTC checks of our server reached the visitor. If not (blocked, slow network), the other checks still run. |
edge_ip | Where our server saw the visitor: same (the ip you sent) or network (another address of the same network, usually the IPv4 address of a visitor who reached your site over IPv6). null when the checks of our server did not reach the visitor. |
event, event_status | What the request named, as kept (null when it named nothing). |
browser_data | true when the data of sl.js came with the request. false: only the network and the headers were checked (without browser data). |
agent | Who is behind the request when it is a bot or an agent, null when nothing says so. See agents and bots. |
decision | What your rules say: action is allow, review or block, rule names what decided (score, automation, allow_ip, block_device, …), score is the score the thresholds saw (ignored findings taken out). |
Suggested use: follow decision. With the default rules a score below 30 or automation gives block (block or require extra verification) and a score below 70 gives review (allow, but watch: limit promo codes, delay payouts); seen above 2 on sign-up or trial: treat as the same person. Tune the thresholds on your own traffic in the account.
Agents and bots
The agent object tells AI agents, AI crawlers, search crawlers and plain automation apart, so a site can let ChatGPT agent or Googlebot through and stop a scraper that only borrows their names. It comes from the User-Agent, the address lists the operators publish (OpenAI, Anthropic, Google, Perplexity, Microsoft, Apple, DuckDuckGo, Common Crawl; we refresh them daily), the Signature-Agent header if you forward it (headers.signature_agent) and our own automation findings.
"agent": {"kind": "ai_agent", "identity": "verified", "name": "ChatGPT-User", "operator": "OpenAI",
"via": ["user_agent", "ip_list"]} kind | ai_agent (acts for a person: ChatGPT-User, Claude-User, Perplexity-User, Google-Agent), ai_crawler (collects for AI training: GPTBot, ClaudeBot, CCBot), search_crawler (Googlebot, bingbot, OAI-SearchBot, PerplexityBot and others), fetcher (ads checks, previews and similar fetches), automation (a controlled or headless browser without a name). |
identity | verified: the IP is on the list its operator publishes. claimed: named in the User-Agent or in Signature-Agent, but there is nothing to check it against. spoofed: a known name from an address that is not on its operator's lists (also the information reason agent_spoofed). unknown: automation without a name. |
via | What it is based on: user_agent, ip_list, signature_agent, automation. |
HTTP message signatures (Web Bot Auth) are not verified yet: a Signature-Agent header alone gives claimed. Nothing is blocked by default. In Rules you can allow verified agents (before the automation rule, rule agent_verified) and block spoofed bots (rule agent_spoofed). The summary counts requests by kind and identity. Crawlers that do not run JavaScript never produce a blob, so on forms you mostly meet agents that drive a real browser.
Events: thresholds for sign-up, sign-in, checkout
A score of 65 is fine for a contact form and worrying for a payout. Send event with the request, and in Rules give each event its own review and block thresholds and its own action for requests without browser data. What an event leaves empty comes from the account values; lists, automation, agents and ignored findings are the same for every event.
signup | A new account |
login | A sign-in |
checkout | An order or a payment |
payout | Money going out: a withdrawal, a cash-out |
coupon | A coupon, a promo code, a welcome bonus |
password_reset | A request to reset a password |
contact | A contact or lead form |
comment | A review, a comment, a post |
custom:<name> | Your own event: a-z, 0-9, _ and -, up to 32 characters. All of them use the row "Your own events" of the rules; the log keeps the name. |
event_status is attempted, succeeded or failed. Both fields come back in the answer, go to the request log (with a filter by event), to the webhook (data.event, data.event_status) and to the summary of checks. Another value is an error: 400 bad_event or 400 bad_event_status with a hint, so a typo shows up in the first test.
Without browser data
The field of sl.js stays empty when the script did not run: a bot that does not execute JavaScript (a lot of form spam), an ad blocker, a strict Content Security Policy on your site. Send "on_missing": "assess" (or choose it once in Rules) and such a request gets a real answer from what your server still has: the network and the request headers.
- Checked: Tor, data center and VPN addresses, forwarding headers, iCloud Private Relay; a User-Agent of a program (curl, python-requests, Go, Java, Postman and other HTTP libraries:
ua_tool) or none at all (ua_missing), bothautomation;HeadlessChrome; the User-Agent against the Client Hints headers and a missingAccept-Language(information for now). The agent field works too, so search and AI crawlers, which run no JavaScript, are still named and checked against their published addresses. - Not checked: everything sl.js measures in the browser.
device.idisnulland there is noseen(without the device, every such request would look like one device),edgeisfalse. - The answer:
browser_dataisfalse, the reasonno_browser_data(low, minus 4) is always there, anddecisionis at leastreviewby the ruleno_browser_data. In Rules you can make itblockor leave it to the score (allow). It is never softer than the score: a block by score or by automation stays a block.
{"ok": true, "score": 66, "verdict": "automation", "browser_data": false,
"reasons": [{"code": "ua_tool", "severity": "high", "title": "A program, not a browser", "text": "The User-Agent starts with curl: …"},
{"code": "no_browser_data", "severity": "low", "title": "No browser data", "text": "…"}],
"device": {"id": null, "browser": "", "os": "", "tls": "", "ja4": ""},
"edge": false, "edge_ip": null,
"agent": {"kind": "automation", "identity": "unknown", "name": null, "operator": null, "via": ["automation"]},
"decision": {"action": "block", "rule": "automation", "score": 66}, …} Without on_missing and with the default setting, the old answer stays: 400 bad_blob (empty field) or 400 bad_signals (broken data), now with a hint. Such requests count toward the quota only when they are assessed.
Rules: the decision in one place
In the account, Rules and alerts sets what decision says, for all keys of the account, without changing the code of your site:
- Thresholds. Below the review threshold (default 70) the action is
review, below the block threshold (default 30)block. 0 turns a threshold off. - Automation. A controlled or headless browser is blocked at any score (on by default).
- Ignored findings. Chosen reason codes do not lower the score the decision uses;
scorein the answer stays the one of the engine. - Try before you switch. In Rules a proposed set can be tried on the last 30 days of your log (how many requests would get another decision, with examples), or run as shadow rules: your site keeps getting the live decision, the log shows what the shadow set would have decided, and one click makes it live.
- Lists. Always allow or always block by IP address or CIDR range, by device ID (
d_…) or by country. Allow lists win over block lists, and both win over the score. - Events. Thresholds and the action without browser data per event; empty fields take the account values.
- Without browser data. Answer
400as before or assess the network and the headers, and what such an assessment gets at least:reviewby default (without browser data).
On your side it is one line: if ($res['decision']['action'] === 'block') { … }. Without rules set, the defaults above apply.
Request log
The log keeps every assessment of your keys for 30 days: time, request_id, score, verdict, decision and rule, reason codes, device ID, user_ref (first 64 characters), the shortened IP (203.0.113.x), country, network type and provider, browser and system. Filter by key, decision and period, search by request_id, device, user_ref or the start of an IP, download CSV. Store the request_id next to your order or sign-up to find it later. The log can be switched off in the rules.
Webhooks and email alerts
Set an https address in Rules and alerts, and we POST an event when the decision is block or review (you choose which). The event goes out right after the answer to your server; if your endpoint does not answer 2xx, we retry after 1, 5 and 30 minutes and 2 hours. At most 60 events a minute per account. An hourly summary email is available as well.
POST https://example.com/spooflens-webhook
Content-Type: application/json
SpoofLens-Signature: t=1792800000,v1=5f2a…
{"event": "assess.block", "id": "evt_9c1f…", "created": 1792800000,
"data": {"request_id": "r_5c2e8f1a9b0d3e47", "decision": {"action": "block", "rule": "automation", "score": 40},
"score": 40, "verdict": "automation", "reasons": [{"code": "webdriver", "severity": "high", "title": "…"}],
"device": {"id": "d_3f9c…", "browser": "Chrome", "os": "Linux"},
"network": {"ip": "203.0.113.42", "country": "DE", "type": "hosting", "org": "Example Hosting"},
"user_ref": "user-123", "event": "signup", "event_status": null}} Check the signature before trusting an event: HMAC-SHA256 of <t>.<raw body> with your signing secret, compared in constant time, and t not older than 5 minutes.
// PHP
$body = file_get_contents('php://input');
parse_str(str_replace(',', '&', $_SERVER['HTTP_SPOOFLENS_SIGNATURE'] ?? ''), $sig);
$ok = isset($sig['t'], $sig['v1']) && abs(time() - (int)$sig['t']) < 300
&& hash_equals(hash_hmac('sha256', $sig['t'] . '.' . $body, getenv('SPOOFLENS_WEBHOOK_SECRET')), $sig['v1']);
// Node.js (with express.raw({type: 'application/json'}))
const [t, v1] = req.get('SpoofLens-Signature').split(',').map((p) => p.split('=')[1]);
const mac = crypto.createHmac('sha256', process.env.SPOOFLENS_WEBHOOK_SECRET).update(t + '.' + req.body).digest('hex');
const ok = Math.abs(Date.now() / 1000 - t) < 300 && crypto.timingSafeEqual(Buffer.from(mac), Buffer.from(v1));
# Python (Flask)
t, v1 = [p.split("=", 1)[1] for p in request.headers["SpoofLens-Signature"].split(",")]
mac = hmac.new(SECRET.encode(), (t + "." + request.get_data(as_text=True)).encode(), "sha256").hexdigest()
ok = abs(time.time() - int(t)) < 300 and hmac.compare_digest(mac, v1) The Send a test event button in the account posts {"event": "test"} with a real signature, so you can check your endpoint before real traffic.
Limits. The address must use port 443 or 8443. An account can have 1,000 events waiting in the queue: while it is full, new events are not queued. The test keys of one account queue at most 100 events a day. Only the status code of your answer counts, and we stop reading the answer after 64 KB.
POST /v1/check
The same as /v1/assess, but takes signals (the raw JSON object from the open-source spooflens-collector) instead of blob.
GET /v1/ip/{ip}
Network facts about one address, no browser needed.
curl https://spooflens.com/v1/ip/8.8.8.8 -H "Authorization: Bearer sl_live_…"
{"ok": true, "ip": "8.8.8.8", "version": 4, "ptr": "dns.google", "asn": 15169, "org": "Google LLC",
"country": "US", "type": "hosting", "tor": false}
Reason codes
The code values you can receive. The severity of a few of them depends on context (for example, canvas noise is privacy in Brave and high elsewhere).
| Code | Meaning |
|---|---|
agent_spoofed | A known bot name from the wrong address |
audio_noise | Noise in the audio fingerprint |
auto_traces | Traces of an automation tool |
blob_replayed | The same browser data again |
canvas_flat | A flat canvas fill came back changed |
canvas_noise | Noise in canvas drawing |
cert_ignored | The client does not check certificates |
ch_header | Client Hints header contradicts JavaScript |
ch_missing | Chromium without Client Hints |
ch_ua_brand | User-Agent and Client Hints name different browsers |
ch_ua_mobile | Mobile in one header, desktop in the other |
ch_ua_platform | User-Agent and Client Hints name different systems |
cpu_arch | A phone with an x86 processor |
cpu_arch_ch | Client Hints name another processor |
dns_leak | DNS requests bypass the VPN |
exotic_hw | Impossible device values |
h2_library | HTTP/2 not from a browser |
h2_ua | HTTP/2 from another browser |
headless_outer | Zero-size window |
headless_ua | Headless browser |
hosting_ip | Data center or VPN IP |
iframe_mismatch | An embedded frame sees a different browser |
ipc_flood | Navigation flood protection is off |
js_engine | JavaScript engine of another browser |
lang_header | Different language in the header and in JavaScript |
lang_missing | No Accept-Language |
lang_nav | Two different primary languages |
mac_menubar | macOS without a menu bar |
mobile_no_touch | A phone without a touch screen |
motion_fake | Motion sensors that feel no gravity |
motion_none | A phone without motion sensors |
no_browser_data | No browser data |
no_chrome_obj | Chrome without the chrome object |
os_fonts | Fonts from another system |
os_gpu | Graphics card from another system |
os_voices | Speech voices from another system |
platform_api | The browser's feature set belongs to another system |
platform_ua | Platform does not match the User-Agent |
privacy_brave | Brave: fingerprint protection |
privacy_relay | iCloud Private Relay |
privacy_rfp | Firefox: fingerprint resistance mode |
privacy_torbrowser | Tor Browser |
proxy_headers | Proxy headers |
quic_fail | QUIC started but did not finish |
quic_ip | QUIC came from another address |
quic_none | The browser did not try QUIC |
quic_ua | A QUIC handshake from another browser |
rtc_local_ip | WebRTC exposes a local IP |
soft_gpu | Software graphics |
tamper | Tampered built-in functions |
tcp_os | The connection was opened by another system |
tcp_rtt | The page waits longer than the network |
tls_library | TLS handshake not from a browser |
tls_ua | TLS handshake from another browser |
tor_exit | IP belongs to the Tor network |
tz_intl_date | Two different time zones |
tz_ip | Time zone does not match the IP country |
ua_header | Different User-Agent in the header and in JavaScript |
ua_impossible | A User-Agent string that cannot be |
ua_missing | No User-Agent |
ua_tool | A program, not a browser |
uad_mobile | Mobile or not: conflicting answers |
uad_platform | Client Hints and the User-Agent name different systems |
uad_version | Two different browser versions |
webdriver | The browser is controlled by a program |
webgl_flat | The flat background of the WebGL scene came back changed |
webgl_noise | Noise in the WebGL scene |
webgl_paths | The WebGL image reads differently |
webgpu_webgl | WebGPU and WebGL see different graphics cards |
webrtc_ip | WebRTC shows another public IP address |
window_screen | Window larger than the screen |
worker_mismatch | A background thread sees a different browser |
wt_missing | No WebTransport |
Errors and limits
401 unauthorized | No key, a wrong key or a revoked key. |
429 rate_limited | Too many requests a second from one account: 5 without a package, 10 with 20,000 a month, 20 with 100,000. |
429 quota_exceeded | The monthly limit of the account is used up (1,000 without a package, all keys together). It resets on the 1st, UTC. Bigger packages: pricing. |
400 bad_blob, bad_signals | No usable browser data. The error comes with a hint; send on_missing assess to get an answer instead (without browser data). |
400 bad_event, bad_event_status | A value outside the list; the hint names the allowed ones. |
400 bad_ip, bad_json | The request is malformed. |
500 server | Our side failed. Let the user in and retry later; never block on our errors. |
Typical latency is 50 to 300 ms. Use a timeout of a few seconds and treat a timeout as "unknown".
Privacy and your site
- You decide what happens with your visitors' data; we process it on your behalf. Mention fraud prevention in your privacy policy.
- We do not store the signals or the full IP address. The request log (on by default, can be switched off) keeps for 30 days the time, score, decision, reason codes, device ID, the first 64 characters of
user_ref, the shortened IP, country and network. Withuser_refwe also keep a hash of the device and of the account reference for 30 days forseen. To notice one browser snapshot sent again (the reasonblob_replayed, information only for now), we keep for one hour a hash of the signed data of our server with a hash of the network and ofuser_ref. Webhook events carry the data of the visit to your address and are deleted from our queue 7 days after delivery. - Device IDs are keyed per client: the same person gets unrelated IDs on different sites.
- sl.js talks only to
edge.spooflens.comand*.l.spooflens.com(the DNS test). If your site has a Content Security Policy, allowscript-src https://spooflens.comandconnect-src https://edge.spooflens.com https://*.l.spooflens.com. The addresses of the DNS test have a certificate of their own, so the test leaves no certificate error in the developer console. - The API must not be used to track people across sites or to get around other services' fraud protection; keys used that way are revoked.
Terms of use (beta)
- The API is provided as is during the beta. We aim for high availability but do not guarantee it, so never make our answer the only gate: on errors and timeouts, let the user through.
- Without a package: 1,000 checks a month per account (all keys together), up to 3 keys. A live key needs a confirmed email. Paid packages are listed on the pricing page. Limits may change; changes are announced on this page.
- You need a lawful basis to process your visitors' data and should mention fraud prevention in your privacy policy. You decide about the processing; we process the data on your behalf as described in our privacy policy.
- Not allowed: tracking or profiling people across sites, getting around other services' fraud protection, reselling raw access to the API, load testing without asking us. Keys used this way are revoked.
- Within v1 the response only grows: new fields may appear, existing ones keep their meaning. Breaking changes would go to /v2.
- Questions: hello@spooflens.com.
FAQ
- Does SpoofLens block anyone by itself?
- No. It returns a score and reasons; your code decides.
- What if an ad blocker stops sl.js?
- The field stays empty. With
on_missingassessthe answer comes from the network and the headers, with the reasonno_browser_dataandreviewby default; without it/v1/assessanswers400 bad_blob. Do not block on it alone: many honest people use blockers. - Can a good antidetect browser pass?
- Sometimes. The checks look for contradictions; a carefully built profile hides most of them. Combine the score with
seenand your own signals. - Is there a WordPress / WooCommerce plugin?
- Yes, in beta: SpoofLens Fraud Check on WordPress.org (in WordPress: Plugins, Add New, search for "SpoofLens Fraud Check"). It also covers Contact Form 7 and WPForms. See WordPress, WooCommerce and contact forms above.