Skip to main content

Identity Verification (KYC)

KYC Rules for VPN, Proxy and Tor: Decline or Review

Decline Tor, blocklisted and liveness-linked devices; review VPN, proxy, datacenter IP and document country mismatch. Device and IP analysis costs $0.03 inside the $0.33 KYC check.

KYC Rules for VPN, Proxy and Tor: Decline or Review

Contents

In this guide

Jump to the part you need.

This how-to is for teams that already verify documents with Didit and now need a written policy for what the LOCATION bucket should do with VPN_DETECTED, PROXY_DETECTED, TOR_DETECTED, DATACENTER_IP and LOCATION_MISMATCH_WITH_DOCUMENT. Device and IP analysis costs $0.03 per check and is already inside the $0.33 KYC check. A blanket VPN decline can create false positives, so review the surrounding evidence before declining.

Last updated: November 26, 2026. Prices checked against the live Didit price feed on November 26, 2026.

What this guide covers and what it costs
DecisionProduct and priceWhere the rule livesWhere you read it
VPN, proxy, Tor, datacenter IP, location mismatch, impossible travel, duplicate deviceDevice and IP Analysis, $0.03 per check, inside the $0.33 full ID checkIP and device strict-mode rules in the Business Console; Location verification config for geofence and position rulesip_analyses[] and geolocation_checks[] on the session decision
Device position, geofencing, distance to IP and document addressLocation verification, $0.05 per checkLocation verification node and its geolocation_position_source settingsgeolocation_checks[] and geolocation_attempts[]

Start free in the sandbox at business.didit.me and publish the workflow without a sales call. For developers, connect the Didit MCP server to an AI assistant. The matching product page is Device and IP Analysis, and every list price is on didit.me/pricing.

Didit Device and IP Analysis screen showing geolocation, device fingerprinting, device intelligence and VPN detection
Device and IP Analysis combines geolocation, device fingerprinting, device intelligence and VPN detection in one session decision.

The codes, and the action to start from

Didit raises these codes in the LOCATION warning bucket of Device and IP Analysis. The actions below are policy starting points, not universal compliance requirements. Your licence, market and loss data set the final value. Where the docs do not define a code, the table says so and points to the warnings catalogue.

LOCATION risk codes and a starting action for each
Risk codeWhat the supplied docs stateStarting action
VPN_DETECTEDDocumented LOCATION failure mode. Didit says handle it per your fraud policy: decline, manual review or an additional liveness step.Review. Start with decline only where your licence requires the person to be in-country.
PROXY_DETECTEDDocumented LOCATION failure mode. Didit says handle it per your fraud policy.Review. Escalate on a repeat from the same vendor_data.
TOR_DETECTEDDocumented LOCATION failure mode. Didit says handle it per your fraud policy.Decline as a starting point.
DATACENTER_IPNamed LOCATION code. The warning catalogue holds the definition.Review.
HIGH_RISK_COUNTRYNamed LOCATION code. The warning catalogue holds the definition.Review with one more piece of evidence.
LOCATION_MISMATCH_WITH_DOCUMENTThe IP country does not match the document's issuing country. The docs route it to review.Review.
IMPOSSIBLE_TRAVELNamed LOCATION code. Travel tolerance is configured in Location verification.Review the first occurrence, then act on the pattern.
DEVICE_MODEL_INCONSISTENTNamed LOCATION code. The warning catalogue holds the definition.Review.
DUPLICATED_DEVICE, POSSIBLE_DUPLICATED_DEVICEThe docs define DUPLICATED_DEVICE as the same device previously enrolled under a different vendor_data.Review, then merge or block per policy.
DEVICE_FINGERPRINT_BLOCKLISTED, DEVICE_LINKED_TO_LIVENESS_ATTACKNamed LOCATION codes. The warning catalogue holds the definitions.Decline as a starting point.

For the definition of any code, open the LOCATION warnings catalogue.

Outcome and the method we recommend

The outcome is a workflow that answers three questions the same way every time. Is this connection hiding where the person is? Does the connection country match the document? Has this device been seen under another account? Each answer becomes a risk code, and each code carries an action.

Device and IP Analysis runs on every session. The Web or Mobile SDK collects the device fingerprint and IP in-band, there is no standalone /v3/ip-analysis/ endpoint, and the result lands in ip_analyses[]. It also checks an allowed IP when you provide one, and the IP blocklist you configured. The optional Location verification step (GEOLOCATION, $0.05 per check) adds device position, geofencing, distance to the IP location and to a document address, a reverse-geocoded street address, and returns geolocation_checks[].

Didit Device and IP Analysis architecture diagram cross-checking IP location, device fingerprint and declared location
How the signals combine: the connection IP, the device fingerprint and the declared location are cross-checked during the session.

The table above holds the starting action for each code, and a reviewer checks the document country, the address on file and the device history before an account is closed. If a licence requires the person to be inside a jurisdiction, declining on VPN is a compliance rule rather than a fraud opinion, and the Location verification preset licensing encodes that.

Both surfaces use the same action vocabulary. On the Location verification step, each warning carries NO_ACTION, REVIEW or DECLINE, and the strongest action wins. If TOR_DETECTED is set to DECLINE and VPN_DETECTED is set to REVIEW, the node is declined. For Device and IP Analysis, the console strict-mode rules use named switches such as decline on VPN, review on duplicate device and decline on country mismatch with document.

Prerequisites

  • A Didit organization and a workflow that runs Device and IP Analysis. It runs automatically on every session and needs no toggle for the basic signal set.
  • An API key that can create sessions, and a key holding the read:sessions privilege for the decision call.
  • A written policy per risk code: the action, the market it applies to and the evidence that clears a review.
  • For device position, geofencing or document-address distance: a Location verification node in the workflow.
  • A reviewer queue. Sessions in In Review need someone with console access, and the review guide covers resubmission and the audit trail.

Steps to set the rules

  1. Write the policy as a table before you touch the console. For each code record one action and the evidence that clears it. Example: VPN_DETECTED goes to review, and a proof of address in the IP country clears it, if your policy sets that as the clearing evidence.

  2. Confirm both signal sources in the workflow. Device and IP Analysis is a node in the Workflow Builder and runs on every session. Add the Location verification node if you also need the device position, allowed and blocked areas, or the distance to a document address.

  3. Set the strict-mode IP and device rules in the Business Console for that step: decline on VPN, review on duplicate device, decline on country mismatch with document. Rules are per code, so you can keep VPN at review while Tor is a hard decline.

  4. Configure the Location verification node if you run it. Choose geolocation_position_source (device_and_ip, device_only or ip_only), pick a geolocation_preset and override single codes. licensing declines a position outside the allowed areas, inside a blocked area, behind a VPN or Tor, or on an emulator, and reviews a proxy; fraud_screening sends those same findings to review. An action you set explicitly always wins over the preset. Keep geolocation_ip_distance_km at its 200 km default, leave geolocation_document_distance_km off until you set a distance, and note that geolocation_travel_tolerance_enabled and geolocation_consecutive_mismatch_count are off by default.

  5. Publish the workflow. Drafts stay editable, publishing creates an immutable version, and every session references the version it was created with. That is what makes a policy change auditable six months later.

  6. Create a session.

    curl -X POST 'https://verification.didit.me/v3/session/' -H 'x-api-key: YOUR_API_KEY' -H 'Content-Type: application/json' -d '{"workflow_id": "YOUR_WORKFLOW_ID", "vendor_data": "user-123", "callback": "https://yourapp.com/post-kyc"}'
  7. Open the returned session_url for the person. The SDK collects the fingerprint and the IP in-band. If the workflow includes Location verification, the browser or phone asks for permission for the location reading, and the workflow handles a refusal according to geolocation_refusal_path.

  8. Fetch the decision.

    curl 'https://verification.didit.me/v3/session/<SESSION_ID>/decision/' -H 'x-api-key: <API_KEY>'
  9. Route the outcome. Inside Didit, a branch node sends the session to manual review or continues the flow based on results, using the conditional branches and action automation documented for the Workflow Builder. Outside Didit, read status and the warnings on the decision and set your own state. When a reviewer changes a status by hand, the decision carries reviews[] and status_override.

Expected output

  • ip_analyses[], one entry per IP and device collection point in the workflow. Each entry carries the resolved geo, ASN, the VPN, proxy and Tor flags, the device fingerprint id, duplicate-device matches and a warnings[] array.
  • Every warning uses the documented warning object: feature set to LOCATION, risk set to the code, plus log_type, short_description, long_description, additional_data and node_id.
  • ip_analyses[].status is one of Not Started, In Progress, Approved, In Review, Declined, Abandoned or Kyc Expired. The entry also includes warnings[]; read both rather than assuming a clean session has an empty array.
  • geolocation_checks[] and geolocation_attempts[] when the Location verification node ran, with the consent record and the position source used.
  • A session-level status and a decision_trace containing status_warnings, so you can see which codes decided the outcome.

Failure cases and recovery

  • ip_analyses[] is empty. The person blocked the SDK fingerprinting script with a privacy extension or content blocker. Decide in advance whether you fail closed or fall back to softer signals, and say so in your policy.
  • VPN on a paying customer. A VPN finding can have a legitimate cause, so it needs a contextual review before anyone declines. Ask for a proof of address in the IP country or a document from that country, and keep the review note.
  • Country mismatch on expatriates and students. LOCATION_MISMATCH_WITH_DOCUMENT compares the IP country with the document's issuing country, not with where the person lives. Compare the device fix and the document address with geolocation_document_distance_km before you act.
  • Tor or a flagged proxy. Decline and read the device fingerprint in the same payload. A device that also appears under another vendor_data is a different conversation from a one-off.
  • A refused or failed position. On a node that asks the device, an attempt with no position is judged as the refusal or failure it is, and the IP location never stands in for it. Set geolocation_refusal_path deliberately: retry then hand off, continue without location, or end the session.
  • API errors on the decision call. A 404 means the session does not exist or belongs to another application, 403 means the key lacks read:sessions, and 401 means the key is invalid. Check the key scope before you debug the workflow.

Inputs and outputs

What you configure and where the result appears
InputWhere you set itOutput you read
Device and IP Analysis nodeWorkflow Builderip_analyses[] with geo, ASN, VPN, proxy and Tor flags, device id and warnings
Strict-mode IP and device rulesBusiness Console, IP and device stepSession status plus the LOCATION warnings that fired
An allowed IP for the sessionYour session configurationExpected IP check result inside ip_analyses[]
geolocation_preset, geolocation_position_source, geolocation_ip_distance_km, geolocation_document_distance_kmLocation verification feature configgeolocation_checks[]
is_geolocation_geofencing_enabled with geolocation_areasLocation verification feature configGeofence verdicts such as LOCATION_OUTSIDE_GEOFENCE, LOCATION_IN_BLOCKED_AREA, LOCATION_GEOFENCE_UNDETERMINED
geolocation_max_accuracy_radius_m, geolocation_max_age_seconds, geolocation_timeout_seconds, geolocation_max_attemptsLocation verification feature configgeolocation_attempts[], one entry per try
  • Device and IP Analysis, $0.03 per check. It is already part of the $0.33 full ID check, so VPN, proxy and Tor detection add nothing to the KYC line. Budget it inside KYC, not as an extra.
  • Location verification, $0.05 per check. Charged only on sessions that run the node.
  • Your own reviewers. The manual review guide covers the In Review queue, resubmission and the audit trail.
  • The boundary. A LOCATION code is a signal, not a verdict. Document and IP mismatch has ordinary causes: expatriates, students, dual nationals, business travel. The recommended actions above are policy starting points, not universal compliance requirements. Your regulator, licence and risk appetite decide.

Worked cost example

A programme runs 10,000 full KYC checks a month and enables Location verification on all of them.

  • KYC: $0.33 x 10,000 = $3,300.00.
  • Inside that figure, Device and IP Analysis is $0.03 x 10,000 = $300.00. It is included, not added.
  • Location verification: $0.05 x 10,000 = $500.00.
  • Monthly total: $3,300.00 + $500.00 = $3,800.00.
  • Per session: $3,800.00 / 10,000 = $0.38.

Sources

Next step: open the sandbox at business.didit.me, add Device and IP Analysis to a draft workflow, and set one strict-mode rule per risk code before you publish. No sales call is involved, and the sandbox is free on every plan.

Try it

Try this in the sandbox

Run the check this guide describes, free.

ID Verification

The product this post is about, taken from its topic. Run it free in the sandbox.

$0.15 per checkStart free

Author

Alberto Rosas

Co-founder and CEO

Alberto Rosas

Alberto Rosas

Co-founder and CEO

About Didit

Questions

Frequently asked questions

Should KYC decline or send to manual review when a VPN_DETECTED warning fires?

Send it to manual review by default. A VPN finding indicates that the connection may mask the person's actual location, but it does not by itself say the document is false. Decline on VPN only where a licence requires the person to be inside a jurisdiction, or where the same account repeats a VPN with another LOCATION code. In Didit, use the strict-mode rule for VPN or the Location verification preset licensing.

What is the difference between VPN_DETECTED, PROXY_DETECTED and TOR_DETECTED?

They are three separate LOCATION codes raised by Device and IP Analysis, and the docs list all three as failure modes to handle in your fraud policy. The docs do not define each detection mechanism in the integration prompt, so read the warning catalogue for the exact definition. A licence that requires an in-country presence can justify a stricter VPN rule.

What does LOCATION_MISMATCH_WITH_DOCUMENT mean in Didit?

It means the IP country of the connection does not match the issuing country of the submitted document. The documented handling is to route the session to review, because expatriates, students and travellers produce the same code legitimately. A reviewer can compare the device position and the reverse-geocoded address with the address on the document, and geolocation_document_distance_km can make that comparison explicit. Do not treat the code alone as proof of fraud.

Does Didit charge extra for VPN and Tor detection?

No. Device and IP Analysis is $0.03 per check and is already inside the $0.33 full ID check, which is ID document $0.15 plus passive liveness $0.10 plus face match $0.05 plus device and IP $0.03. The separate Location verification step is $0.05 per check and only runs when your workflow includes it. List prices were checked on November 26, 2026.

How do I set a decline on VPN rule in Didit?

Open the IP and device step in the Business Console and enable the strict-mode rule for decline on VPN, alongside rules such as review on duplicate device and decline on country mismatch with document. If you run the Location verification step, the licensing preset declines a position behind a VPN or Tor and reviews a proxy, and any action you set explicitly overrides the preset. Test it in the sandbox before you publish, because a decline is a hard stop for the person.

What happens if ip_analyses[] is empty on the decision?

It usually means the person blocked the SDK fingerprinting script with a privacy extension or content blocker, so no fingerprint or IP was collected. Decide in advance whether that fails closed or falls back to softer signals, and write the rule down. The decision payload does not fill the gap with a placeholder, so your application must handle the empty array explicitly.

Can Didit compare the device position with the address on a document?

Yes. When the device reports a position, Didit reverse geocodes it and returns the street address as parsed_address in the Location result, and geolocation_document_distance_km compares the position with a document address. That setting is off until you give it a distance. The precision of the address is limited by the accuracy radius of the position.

When does IMPOSSIBLE_TRAVEL fire?

The docs name IMPOSSIBLE_TRAVEL in the LOCATION code list, and the warning catalogue holds its definition. Location verification has a travel tolerance setting, geolocation_travel_tolerance_enabled, which is off by default and uses a usual area and a day window. Treat the first occurrence as a review signal and act on the pattern.

Is a location mismatch with the document proof of fraud?

No. A mismatch says the connection country and the issuing country differ, which is normal for anyone living outside the country that issued their ID. Treat it as one signal, pair it with the device fingerprint and the address evidence, and let a reviewer decide. Declining on this code alone can reject legitimate customers.

What happens when two LOCATION warnings have different actions?

On the Location verification step, each warning carries an action of NO_ACTION, REVIEW or DECLINE, and the strongest action wins. A single code set to DECLINE decides the node even if another code is only set to review. That is why one strict code can override an otherwise lenient policy for the whole step.

Who reviews a session after a LOCATION warning?

A session that a configured action sends to review moves to In Review in the Didit console, where your team uses the reviewer dashboard to approve, decline or request resubmission. The manual review guide covers the evidence, the events timeline and the audit trail.

Compliance built in

Audited, certified and attested.

We hold the certifications and build each country's rules into your flows, so you can launch anywhere without worrying. Security and Compliance center

  • Regulation encoded into your flows

    Tell us what you do and where. Didit lists the rules that apply to you, with sources, and builds the checks each country needs into one workflow.

  • Ready for AMLR

    Every requirement of the new EU anti-money laundering rules, from checking customers to human review, is already covered by a Didit check.

  • Tested in Spain's Treasury sandbox

    Spain's Treasury published its supervised sandbox report on Didit's NFC plus active liveness onboarding; SEPBLAC took part and valued the added measures positively.

  • Audited, not self-declared

    iBeta Level 1 and Level 2. Liveness tested under ISO/IEC 30107-3.

Compliance assistant

Your obligations · 3 regions

EU · AMLRCustomer due diligence, human reviewCovered
Illinois, Texas, ColoradoExplicit biometric consentCovered
Germany · Youth protectionVerified adults only (JMStV)Covered
Workflow checked. Every obligation is met
  • SOC 2 Type 2
  • ISO 27001
  • iBeta Level 1 and Level 2
  • EU regulator attestation
  • FSM youth protection
  • GDPR
  • EBA remote onboarding
  • MiCA compatible
  • FIDO Alliance member
  • AMLREU AML Regulation ready

Integration · Didit MCP

Run Didit from your own AI agent

Connect Didit to Claude, Cursor, VS Code or ChatGPT and just ask in plain words. Your agent can do anything you can do in the console, with the same permissions you have.

Add to ClaudeChatGPT
Didit Academy · Lesson 04 · Use Didit with MCP
  • Build workflowsDescribe the checks you need. The agent creates and publishes the flow.
  • Run investigationsAsk why a session was declined, review cases, search people and companies.
  • Change rulesCreate payment rules, test them on past data and switch them on.
  • Pull reportsAsk for numbers, exports or the audit log.

Verify your first user today.

Start free

Free sandbox. Credit applies to work-email sign-ups.