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.

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.
| Finding | Where it is detected | If you set no action | With the licensing preset |
|---|---|---|---|
| Mock location provider (fake GPS app) | Native iOS and Android SDK | Warning recorded, step status unchanged | Not covered, set it explicitly |
| Emulator | Native apps | Warning recorded, step status unchanged | Decline |
| Device attestation failure | Native SDK device attestation | Decline | Decline |
| Device attestation missing | Native SDK device attestation | Recorded with no action | Recorded with no action |
| VPN on the connection | Device and IP analysis, LOCATION warning bucket | Warning recorded, step status unchanged | Decline |
| Proxy on the connection | Device and IP analysis, LOCATION warning bucket | Warning recorded, step status unchanged | Review |
| Tor exit node | Device and IP analysis, LOCATION warning bucket | Warning recorded, step status unchanged | Decline |
| Replayed position submission | The per-attempt challenge, bound to one session | Declined on the second session | Declined 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.

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
GEOLOCATIONfeature, its settings are thegeolocation_*keys, and its result isgeolocation_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
- Pick the position source. Set
geolocation_position_sourcetodevice_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 likedevice_and_ipanyway. Avoiddevice_only, which never compares the fix with the connection, and avoidip_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. - 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_behaviordecides whether a position that never gets accurate is asked again or fails. - Choose the action per finding. Start from
geolocation_presetset tolicensing(declines outside the allowed areas, inside a blocked area, behind a VPN or Tor, or on an emulator, and reviews a proxy) orfraud_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
}
- Add the geographic rules if you hold a licence. Turn on
is_geolocation_geofencing_enabledand 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 returnsLOCATION_GEOFENCE_UNDETERMINEDinstead of a false outside verdict. A blocked area always wins over an allowed one. - 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
REVIEWorDECLINE, 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"
}'
- Read the decision and route on the warnings. Fetch the decision by session id. Branch on
session_kindfirst, then readgeolocation_checks[].warnings[]andip_analyses[].warnings[]. You can also subscribe tostatus.updatedwebhooks instead of polling.
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
-H "x-api-key: <API_KEY>"
- 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_ACTIONrecords the warning without changing the step status. For VPN, proxy and Tor findings configured asREVIEWorDECLINE, Didit prompts the person to retry first, then applies the configured outcome if the finding persists. Under thelicensingpreset, an emulator finding is a decline. Reuse a stored position submission on a second session and confirm the replay is declined.

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
| Failure | What you see | Recovery |
|---|---|---|
| Browser session, faked GPS | No mock location or emulator finding at all | Move the flow into the native SDK. Browsers cannot produce the app-integrity signals |
| Attestation missing | Finding recorded with no action, session can pass | No change by default. The finding is recorded and the step status is unchanged |
| Attestation fails | Decline | The step ends as declined |
| Person refuses the permission | Attempt judged as a refusal or failure | geolocation_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 VPN | VPN finding | Keep 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 radius | Repeated attempts, then the low accuracy behaviour fires | Raise 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 blocked | ip_analyses[] empty | Decide fail-closed or fall back to the location-only signals. If you fail closed, say so in your support script |
| Same device under two accounts | DUPLICATED_DEVICE or POSSIBLE_DUPLICATED_DEVICE | Route to review and merge or block. Exact persistent-id matches are the reliable ones |
Inputs and outputs
| What you set | Key | Default | Allowed |
|---|---|---|---|
| Position source | geolocation_position_source | unset, device compared with IP | device_and_ip, device_only, ip_only |
| Accuracy radius | geolocation_max_accuracy_radius_m | 250 m | 10 to 50,000 m |
| Maximum fix age | geolocation_max_age_seconds | 120 s | 5 to 3,600 s |
| Per-attempt timeout | geolocation_timeout_seconds | 20 s | 5 to 120 s |
| Attempts | geolocation_max_attempts | 3 | 1 to 5 |
| Accuracy mode | geolocation_accuracy_mode | precise | precise, approximate_allowed |
| Low accuracy behaviour | geolocation_low_accuracy_behavior | ask_again | ask_again, fail |
| Refusal path | geolocation_refusal_path | retry_then_handoff | retry_then_handoff, continue_without_location, end_session |
| Geofencing | is_geolocation_geofencing_enabled | off | on, off |
| Device to IP distance | geolocation_ip_distance_km | 200 km | 0 or more, null turns it off |
| Device to document address distance | geolocation_document_distance_km | off | 0 or more |
| Repeated mismatch threshold | geolocation_consecutive_mismatch_count | off | 2 to 10 |
| Action preset | geolocation_preset | none | licensing, 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.

Sources
- Didit Location Verification API: Geofencing and IP Distance
- Didit Location verification warnings
- Didit Device Fingerprinting and IP Risk API
- Didit IP analysis warnings
- Didit workflow feature configs: Location verification
- Didit Create Session API
- Didit Retrieve Session Decision API
- Didit data models
- Didit native mobile SDKs
- Didit Workflow Builder
- Didit pricing and pricing in the docs, read November 26, 2026
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.
The product this post is about, taken from its topic. Run it free in the sandbox.
Author
Alberto Rosas
Co-founder and CEO

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.
Your obligations · 3 regions
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.
- 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.
Didit Academy


