Skip to main content

How to Detect GPS Spoofing, VPNs, Proxies and Emulators in Didit

Didit reports mock GPS, emulator, attestation, VPN, proxy and Tor findings as warnings you map to no action, review or decline. Location Verification costs $0.05 per check. App-level findings need the native SDKs.

How to Detect GPS Spoofing, VPNs, Proxies and Emulators in Didit

Contents

In this guide

Jump to the part you need.

Didit Location Verification reads one device position per attempt and reports mock location, emulator, device attestation, VPN, proxy and Tor findings as warnings you map to no action, review or decline. Location Verification costs $0.05 per check, a separate line from the $0.03 device and IP analysis already inside the $0.33 full ID check. The catch: mock location, emulator and attestation findings only come from the native iOS and Android SDKs, never from a browser session.

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

What Didit can detect about a spoofed position, and what happens when you configure no action
FindingWhere it is detectedIf you set no actionWith the licensing preset
Mock location provider (fake GPS app)Native iOS and Android SDKWarning recorded, step status unchangedNot covered, set it explicitly
EmulatorNative appsWarning recorded, step status unchangedDecline
Device attestation failureNative SDK device attestationDeclineDecline
Device attestation missingNative SDK device attestationRecorded with no actionRecorded with no action
VPN on the connectionDevice and IP analysis, LOCATION warning bucketWarning recorded, step status unchangedDecline
Proxy on the connectionDevice and IP analysis, LOCATION warning bucketWarning recorded, step status unchangedReview
Tor exit nodeDevice and IP analysis, LOCATION warning bucketWarning recorded, step status unchangedDecline
Replayed position submissionThe per-attempt challenge, bound to one sessionDeclined on the second sessionDeclined on the second session

Start free in the sandbox at business.didit.me, no sales call. For developers, connect Didit to an AI assistant through the Didit MCP server. Every unit price is on the pricing page, and the step itself is documented in the Location Verification API.

The outcome to aim for, and the method we recommend

The outcome you configure: for VPN, proxy and Tor findings configured as REVIEW or DECLINE, Didit prompts the person to retry first, then applies the configured outcome if the finding persists. A NO_ACTION finding is recorded without changing the step status, and a genuine person passes without extra work. The method we recommend: device_and_ip as the position source, the licensing preset as the base, mock location and attestation wired explicitly because the preset does not cover them, and a refusal path so a real customer can finish after a failed attempt.

The four surfaces Didit checks

  • The device position. Location Verification reads the device position once per attempt and judges its accuracy, its freshness, approximate permission grants, spoofing signals, the allowed and blocked areas, the distance to the IP location and the distance to a document address. It does not read movements or history.
  • The connection. IP geolocation, ASN, VPN, proxy, Tor, data center and private network flags from Device and IP Analysis. These are read on the connection the submission arrived from.
  • The app. Native SDK builds report an emulator, a mock location provider, and whether device attestation passed, failed or was missing. A browser session cannot produce those app-integrity signals.
  • The challenge. Each attempt carries a single-use challenge valid for 5 minutes and bound to the session, so a submission captured on one device and replayed in another session is declined.

Every finding raises a warning whose configured action is NO_ACTION, REVIEW or DECLINE. The strongest action across all findings sets the step status. A proxy set to review and a VPN set to decline on the same attempt ends in a decline.

A session overview in the Didit Business Console listing the warnings raised during the verification
A session in the Console with its warnings. Location findings sit in the LOCATION bucket next to the device and IP warnings.

Prerequisites

  • A Didit account and a workflow that contains the Location step. In the API that step is the GEOLOCATION feature, its settings are the geolocation_* keys, and its result is geolocation_checks[]. Build it in the Workflow Builder or set the keys through the feature configs reference.
  • An API key that can create sessions, and the workflow UUID from GET /v3/workflows/.
  • A native build if you want mock location, emulator and attestation findings: iOS 13.0 or later and Android API 23 or later, with the SDK version listed there as 4.15.4 in the native SDK overview.
  • A web session is enough for the connection findings and the raw device position, but not for app integrity.
  • Sandbox access for the attack tests. Sandbox testing is free and unlimited on every plan.

Step by step: turn on spoofing detection

  1. Pick the position source. Set geolocation_position_source to device_and_ip. Leave it unset and the device is asked and compared with the IP location that the Device and IP Analysis step observed, and a node that acts on a VPN, proxy or Tor finding looks the connection up and behaves like device_and_ip anyway. Avoid device_only, which never compares the fix with the connection, and avoid ip_only, which never asks for a position and applies no accuracy, freshness or approximate-permission rule, so it cannot see a mock device position at all.
  2. Set the accuracy budget. The defaults are a 250 m radius, 120 s maximum age, a 20 s per-attempt timeout and 3 attempts. Tighten the radius if you verify inside one city; keep the age short so an old cached fix cannot be reused. geolocation_low_accuracy_behavior decides whether a position that never gets accurate is asked again or fails.
  3. Choose the action per finding. Start from geolocation_preset set to licensing (declines outside the allowed areas, inside a blocked area, behind a VPN or Tor, or on an emulator, and reviews a proxy) or fraud_screening (same findings, sent to review instead of decline). Anything you set explicitly beats the preset. Mock location and attestation are not in either preset, so set them yourself. The block below shows the documented keys at the values we use for a licence-bound flow.
{
  "geolocation_preset": "licensing",
  "geolocation_position_source": "device_and_ip",
  "geolocation_max_accuracy_radius_m": 250,
  "geolocation_max_age_seconds": 120,
  "geolocation_timeout_seconds": 20,
  "geolocation_max_attempts": 3,
  "geolocation_accuracy_mode": "precise",
  "geolocation_low_accuracy_behavior": "ask_again",
  "geolocation_refusal_path": "retry_then_handoff",
  "geolocation_ip_distance_km": 200,
  "geolocation_document_distance_km": 50,
  "geolocation_consecutive_mismatch_count": 3
}
  1. Add the geographic rules if you hold a licence. Turn on is_geolocation_geofencing_enabled and list your allowed areas: a whole country, regions of one country, a circle of 1 to 500 km or a polygon of 3 to 200 points, up to 50 areas with at least one allowed. Didit judges the whole accuracy circle, not the centre, so a circle that crosses the edge of an allowed area returns LOCATION_GEOFENCE_UNDETERMINED instead of a false outside verdict. A blocked area always wins over an allowed one.
  2. Create the session and hand the URL to the person. The same body works for KYC and KYB workflows. Communicate the rule before they start: when the VPN, proxy or Tor action is REVIEW or DECLINE, Didit prompts the person to retry first and applies that outcome only if the finding persists.
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"
}'
  1. Read the decision and route on the warnings. Fetch the decision by session id. Branch on session_kind first, then read geolocation_checks[].warnings[] and ip_analyses[].warnings[]. You can also subscribe to status.updated webhooks instead of polling.
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
-H "x-api-key: <API_KEY>"
  1. Test three attacks in the sandbox. Run the flow from a developer Android build with a fake GPS app set as the mock location provider, from an emulator, and through a VPN endpoint in another country. Check the warning and the status against the action you configured: NO_ACTION records the warning without changing the step status. For VPN, proxy and Tor findings configured as REVIEW or DECLINE, Didit prompts the person to retry first, then applies the configured outcome if the finding persists. Under the licensing preset, an emulator finding is a decline. Reuse a stored position submission on a second session and confirm the replay is declined.
The screens a person sees during a Didit verification, including the location notice and permission prompt
The notice and permission prompt a person sees before the single position read. The accepted notice is recorded as consent in the result.

Expected output

A mocked, emulated or tunnelled attempt ends in Declined or In Review at the session level when its finding is configured that way, and geolocation_attempts keeps every attempt including the failed ones. This is the decision trimmed to the fields you branch on, for a VPN finding configured to decline, with the standard warning descriptions left out:

{
  "session_kind": "user",
  "status": "Declined",
  "geolocation_checks": [
    {
      "status": "Declined",
      "warnings": [
        {
          "feature": "LOCATION",
          "risk": "VPN_DETECTED",
          "log_type": "error",
          "additional_data": null
        }
      ]
    }
  ]
}

The full warning shape is in the data models reference: every warning carries feature, risk, log_type, short_description, long_description, additional_data and node_id. The location risk catalogue is in Location verification warnings, and the connection codes such as VPN_DETECTED, PROXY_DETECTED, TOR_DETECTED, DATACENTER_IP, LOCATION_MISMATCH_WITH_DOCUMENT and IMPOSSIBLE_TRAVEL are in IP analysis warnings.

Failure cases and recovery

What goes wrong, what you see, and what to change
FailureWhat you seeRecovery
Browser session, faked GPSNo mock location or emulator finding at allMove the flow into the native SDK. Browsers cannot produce the app-integrity signals
Attestation missingFinding recorded with no action, session can passNo change by default. The finding is recorded and the step status is unchanged
Attestation failsDeclineThe step ends as declined
Person refuses the permissionAttempt judged as a refusal or failuregeolocation_refusal_path: retry_then_handoff (default), continue_without_location or end_session. On a device node the IP location never stands in for the refused position
Genuine person on a corporate VPNVPN findingKeep the VPN action at review rather than decline for B2B products, or lower it to NO_ACTION and rely on the IP distance and document distance
Position never within the radiusRepeated attempts, then the low accuracy behaviour firesRaise geolocation_max_accuracy_radius_m for rural markets, raise geolocation_max_attempts to 5, or allow approximate_allowed and let geofencing judge the wider circle
Fingerprinting script blockedip_analyses[] emptyDecide fail-closed or fall back to the location-only signals. If you fail closed, say so in your support script
Same device under two accountsDUPLICATED_DEVICE or POSSIBLE_DUPLICATED_DEVICERoute to review and merge or block. Exact persistent-id matches are the reliable ones

Inputs and outputs

The documented Location settings, their defaults and allowed values
What you setKeyDefaultAllowed
Position sourcegeolocation_position_sourceunset, device compared with IPdevice_and_ip, device_only, ip_only
Accuracy radiusgeolocation_max_accuracy_radius_m250 m10 to 50,000 m
Maximum fix agegeolocation_max_age_seconds120 s5 to 3,600 s
Per-attempt timeoutgeolocation_timeout_seconds20 s5 to 120 s
Attemptsgeolocation_max_attempts31 to 5
Accuracy modegeolocation_accuracy_modepreciseprecise, approximate_allowed
Low accuracy behaviourgeolocation_low_accuracy_behaviorask_againask_again, fail
Refusal pathgeolocation_refusal_pathretry_then_handoffretry_then_handoff, continue_without_location, end_session
Geofencingis_geolocation_geofencing_enabledoffon, off
Device to IP distancegeolocation_ip_distance_km200 km0 or more, null turns it off
Device to document address distancegeolocation_document_distance_kmoff0 or more
Repeated mismatch thresholdgeolocation_consecutive_mismatch_countoff2 to 10
Action presetgeolocation_presetnonelicensing, fraud_screening

On the way out you get geolocation_checks[] with the step status and its warnings, geolocation_attempts with every attempt, the accepted notice as consent with its version, language and time, and parsed_address, the reverse geocoded street address of the device fix in the same shape as an ID or proof of address address, so a workflow rule can compare the two. When there is no device fix, parsed_address is null.

What you pay, and where review starts

Location Verification is $0.05 per check. Device and IP analysis is a separate published line at $0.03 per check, already counted inside the $0.33 full ID check. Billing is per completed check from prepaid credit, and the sandbox costs nothing. A REVIEW action moves the session to In Review in the Console, where the decision carries the reviewer in assignee, the clock in waiting_since and sla_due_at, and a manual change is recorded in status_override with the automatic status kept in decision_trace.

Worked cost example

A flow with ID document, passive liveness, face match 1:1, device and IP analysis and the Location Verification check, at list prices:

  • Per completed check: $0.15 + $0.10 + $0.05 + $0.03 + $0.05 = $0.38.
  • 10,000 completed checks: 10,000 x $0.38 = $3,800.00.
  • On Growth, 4% off every Didit price: $0.38 x 0.96 = $0.3648, so 10,000 x $0.3648 = $3,648.00.
  • On Scale, 10% off: $0.38 x 0.90 = $0.342, so 10,000 x $0.342 = $3,420.00.
  • Free plan, $10.00 of monthly credit: $10.00 / $0.38 = 26 completed checks with location.
Didit billing explained: credits, auto-recharge and how per-check prices combine
Location is a per-check line on top of the modules you already run. Credits, top-ups and plan discounts are explained in the billing lesson.

Sources

Next step: open the sandbox at business.didit.me, build a workflow with the Location step, and run the emulator and VPN tests yourself. No sales call, and the Free plan's $10 monthly credit for eligible organizations covers real checks when you are ready to leave the sandbox. Phone verification codes are excluded from that credit.

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

Can Didit detect a fake GPS app on Android?

Yes, when the verification runs inside the native Android SDK. The SDK reports a mock location provider, and that finding is raised as a warning whose action you configure. A browser session cannot produce the mock provider signal, so a web flow will not see a fake GPS app.

Does Didit catch GPS spoofing in a browser?

Only partly. In a browser Didit still reads the position, its accuracy and its age, compares it with the IP location and the document address, and can flag VPN, proxy and Tor on the connection. It cannot report a mock location provider, an emulator or device attestation, because those are native SDK signals. For app-integrity checks, use the native SDKs.

What happens when a VPN is detected during Didit location verification?

The connection is looked up and a VPN finding is raised in the LOCATION warning bucket. When the action is REVIEW or DECLINE, Didit prompts the person to retry first, then applies the configured outcome if the finding persists. If the action is NO_ACTION, the finding is recorded and the step status does not change.

Does Didit detect emulators?

Yes, native apps report an emulator finding. Its configured action sets the step status, and the licensing preset declines it. Browser sessions do not produce the finding.

What is device attestation and what happens if it fails?

Device attestation is a native SDK signal. If it fails, Didit declines. If it is missing, Didit records it with NO_ACTION by default.

Can someone capture a location submission and replay it in another session?

No. Each attempt carries a single-use challenge that is valid for 5 minutes and bound to the session, so a submission captured on one device and replayed in a different session is declined. The challenge is issued per attempt, not per workflow.

What is the difference between NO_ACTION, REVIEW and DECLINE?

NO_ACTION records the warning without changing the step status. For VPN, proxy and Tor findings configured as REVIEW or DECLINE, Didit prompts the person to retry first, then applies the configured outcome if the finding persists. Other findings use their configured action. When several findings fire on the same attempt, the strongest action wins, so one decline overrides any number of reviews.

How much does spoofing detection cost?

Location Verification is $0.05 per check, and device and IP analysis is $0.03 per check, already included in the $0.33 full ID check. A flow with ID, passive liveness, face match, device and IP analysis and Location Verification comes to $0.38 per completed check at list price. Sandbox testing is free and unlimited.

Does the IP address location replace the device position?

Only if you set geolocation_position_source to ip_only, which never asks for permission and applies no accuracy, freshness or approximate-grant rule. On a device node, an attempt with no position is judged as the refusal or failure it is, and the IP location never stands in for it. The IP is used for the distance comparison, not as a substitute.

Should I use the licensing preset or fraud screening?

Use licensing when the law or your licence requires excluding people outside an area: it declines outside the allowed areas, inside a blocked area, behind a VPN or Tor, and on an emulator, and reviews a proxy. Use fraud_screening when false declines cost you more than a review queue: it sends everything licensing would decline to review instead. Any action you set explicitly wins over either preset.

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.