Technical
IP Address Analysis for Fraud Detection: A Step-by-Step Guide
IP address analysis checks where a connection comes from, what network carries it, and whether that device was seen before. Didit runs Device and IP Analysis inside every verification session for $0.03 per check, as a component.

Contents
In this guide
Jump to the part you need.
IP address analysis answers three questions about a session: where the connection comes from, what kind of network carries it, and whether that network or device was already seen under another account. This guide is for fraud, risk and engineering teams wiring those signals into a live decision. Didit runs Device and IP Analysis inside every verification session for $0.03 per check. A VPN flag alone does not establish fraud, and treating it as fraud costs you good users.
Prices checked against the live Didit price feed on November 26, 2026.
| Signal | Question it answers | Didit risk code | Usual handling |
|---|---|---|---|
| Geolocation | Where does the connection resolve, by country, region, city and coordinates | HIGH_RISK_COUNTRY | Flag or review, not an automatic decline |
| Location against document | Does the IP country match the document's issuing country | LOCATION_MISMATCH_WITH_DOCUMENT | Route to review |
| VPN | Is the traffic tunneling through a commercial VPN | VPN_DETECTED | Policy dependent, often review |
| Proxy | Is the address a known proxy | PROXY_DETECTED | Review or a step-up check |
| Tor | Is this a Tor exit node | TOR_DETECTED | Usually decline per policy |
| Data center | Is the address hosting rather than residential or mobile | DATACENTER_IP | Weigh it with other signals |
| Device reuse | Is this the same physical device as another account | DUPLICATED_DEVICE, POSSIBLE_DUPLICATED_DEVICE | Merge, block or review |
| Travel speed | Could the person physically be here after the last session | IMPOSSIBLE_TRAVEL | Review |
| Device history | Has this device attacked before | DEVICE_FINGERPRINT_BLOCKLISTED, DEVICE_LINKED_TO_LIVENESS_ATTACK | Decline per policy |
Start free in the sandbox at https://business.didit.me/, with no sales call. Sandbox testing is free and unlimited on every plan. Developers can connect Didit to an AI assistant through the Didit MCP server. Pricing claims in this article are checked against the Didit pricing page and the price feed behind it, on November 26, 2026.

What IP address analysis covers
A plain IP lookup returns a location. Analysis for fraud adds the network context and the history behind the address. During a Didit session the client sends a privacy-safe device fingerprint and the observed connection, and Didit enriches both before the decision is written.
- IP geolocation by country, region, city and coordinates.
- VPN, proxy, Tor, data center and private network detection.
- Expected IP checks when you provide an allowed IP for the session.
- IP blocklist checks configured in your application.
- Duplicated IP, when the same address appears under different users.
- Duplicated device fingerprint and recovered device matches, when the same physical device turns up under another
vendor_data. - Platform context: browser, OS, app, hardware, WebGL and canvas signals, locale and timezone where available.
Each collection point in the workflow writes one entry to ip_analyses[] on the decision payload. The entry carries the resolved geo, the ASN, the VPN, proxy and Tor flags, the device fingerprint id, duplicate-device matches and a warnings[] array. The signal set is documented on the Device Fingerprinting and IP Risk API page, and every risk code is described in the IP analysis warnings catalogue. Risk codes for this feature are emitted in the LOCATION bucket, not in a bucket named after the feature.
Reading ASN data
An Autonomous System Number identifies the network operator behind an address. The same request means different things depending on which network it came from. An ASN can belong to a large consumer ISP, a mobile carrier, a hosting company, or a small network registered last month. As general risk practice, a new or small ASN with an abuse history is worth closer review than a broad consumer ISP. Didit documents returning the ASN on each entry, but the docs do not prescribe this heuristic; how you weigh it is your policy. Pair the ASN with the connection type, because residential and mobile traffic looks different from hosting traffic.
Anonymous IP detection: VPN, proxy, Tor and data center
Anonymous IP detection is the part of the analysis that identifies traffic hiding where it comes from. Didit reports four separate signals: VPN_DETECTED, PROXY_DETECTED, TOR_DETECTED and DATACENTER_IP. Keep them separate in your policy. A commercial VPN is common among privacy-conscious users and among travellers. A Tor exit node in a KYC flow is a different risk. A data center address on a consumer signup can indicate automation and deserves additional context. Collapsing all four into one anonymous flag throws away the information you need to make a fair decision.
City-level accuracy of IP geolocation
City-level accuracy is not one number. Fixed residential connections usually resolve close to the city. Mobile carriers and shared address pools often resolve to a regional hub, so a phone on a train can look like it is in another city. Didit returns country, region, city and coordinates and does not publish a single city accuracy percentage, because the answer depends on the address and the network it belongs to. Treat city as a weak signal. Country and region comparisons, and the mismatch against the document, carry more weight in a decision.
What IP analysis adds to address fraud detection
Address fraud detection compares the address a person claims with the evidence around it. The IP country against the document's issuing country is one comparison, reported as LOCATION_MISMATCH_WITH_DOCUMENT. Velocity is another: count sessions from one IP address in a time window, and a sudden rise points to credential stuffing or a bot run. Set the threshold against your own traffic, then send the excess to review instead of blocking every spike.

Why fraud teams run it
Fraudsters hide location with proxies and VPNs to get past country rules and to make a stolen account look normal. IP and device analysis gives an analyst three things a document check cannot: the network behind the session, reuse of one device across accounts, and the speed of travel between sessions. Didit weighs these against 200+ other fraud signals per session, so an IP flag is scored with liveness, face match, document and behavior rather than deciding alone. We run it for 4,000+ companies.
Prerequisites before you analyze a single IP
- A Didit application and an API key. The decision endpoint needs a key with the
read:sessionsprivilege. - A published workflow and its
workflow_id. Device and IP Analysis runs automatically on every session for the basic signal set, with no feature toggle. - A stable
vendor_datafor each user. Duplicate detection across sessions depends on it. - A written policy that maps each risk code to allow, review or decline, agreed before you look at live data.
- A review path for cases your policy sends to a person, and an appeal route for users.
- Optional: a webhook destination subscribed to
status.updated, if you want the decision pushed instead of pulled.
How to add IP address analysis to a verification session
- Write the policy first. Decide what
VPN_DETECTED,PROXY_DETECTED,TOR_DETECTED,DATACENTER_IP,LOCATION_MISMATCH_WITH_DOCUMENTandDUPLICATED_DEVICEeach do. Without that, the data arrives and nobody acts consistently. - Optional: set strict-mode rules in the Business Console for IP and device, for example decline on VPN, review on a duplicate device, or decline on a country mismatch with the document. The visual builder is documented at the workflow builder page.
- Create the session with
POST /v3/session/, sendingworkflow_id,vendor_dataand acallback. - Send the user to
session.url. The SDK collects the device fingerprint and the IP inside the flow, so there is nothing extra to instrument on the client. - Fetch the decision with
GET /v3/session/{sessionId}/decision/, or subscribe tostatus.updatedand read the decision object inside the webhook envelope. - Read
ip_analyses[]. One entry per collection point, each with geo, ASN, the VPN, proxy and Tor flags, the device fingerprint id, duplicate matches andwarnings[]. - Route on the risk codes, record which branch fired, and set the review path for the review branch.
Run the create call:
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"
}'
The response returns session_id and session_url. After the user finishes, read the decision:
curl https://verification.didit.me/v3/session/<SESSION_ID>/decision/ \
-H "x-api-key: <API_KEY>"
There is no standalone IP analysis endpoint to call. The IP and device signals are collected in the verification flow and read from the session decision, which is why the two calls above are the whole integration.
Expected output and how to read it
The decision returns one entry in ip_analyses[] per IP and device collection point. This is a trimmed example of the fields you branch on:
{
"session_kind": "user",
"status": "In Review",
"ip_analyses": [
{
"status": "In Review",
"warnings": [
{
"feature": "LOCATION",
"risk": "VPN_DETECTED",
"log_type": "warning"
},
{
"feature": "LOCATION",
"risk": "LOCATION_MISMATCH_WITH_DOCUMENT",
"log_type": "warning"
}
]
}
]
}
Read it in this order. First session_kind, then the top-level status, then the feature status inside each ip_analyses[] entry, and last the warnings[] entries. The feature status uses the same enum as every Didit feature: Not Started, In Progress, Approved, In Review, Declined, Abandoned, Kyc Expired. Each warning carries feature, risk and log_type, plus additional_data when the serializer has context to attach. The geo, ASN, fingerprint id and duplicate matches sit on the same entry, next to the warnings. The full schema is in the data models reference.
Failure cases and recovery
- The
ip_analyses[]array is empty. The user blocked the SDK fingerprinting script with a privacy extension or a content blocker. Decide in advance whether you fail closed or fall back to soft signals, and log which branch fired so support can explain the outcome. VPN_DETECTED,PROXY_DETECTED,TOR_DETECTED. Apply your policy: decline, manual review, or an extra liveness step. Do not auto-decline every hit, because some users rely on these services for privacy or security.DUPLICATED_DEVICEorPOSSIBLE_DUPLICATED_DEVICE. The same device was enrolled earlier under a differentvendor_data. Exact matches use stable persistent identifiers. Recovered matches use the v2 fingerprint signal vector with high-confidence gates, so a cleared browser or an incognito window does not produce a confident match on weak evidence. Merge the accounts or block them, per policy.LOCATION_MISMATCH_WITH_DOCUMENT. The IP country does not match the document's issuing country. Route to review instead of declining, because expatriates, travellers and border residents hit this regularly.- 401, 403 or 404 on the decision call. 401 means an invalid API key, 403 means the key lacks
read:sessions, and 404 means the session does not exist or belongs to a different application. - A missed webhook. Re-fetch the decision from
GET /v3/session/{sessionId}/decision/rather than trusting a payload you cannot verify. The webhook documentation covers signature verification and the event list.
Inputs and outputs
| Field | Direction | What it does |
|---|---|---|
workflow_id | In | Pins the session to the workflow whose checks run, including the device and IP collection. |
vendor_data | In | Your stable user identifier. Duplicate IP and duplicate device matching compare against sessions that carry a different value. |
expected_details.id_country | In | The expected document country. The location mismatch warning compares the IP country with the document's issuing country. |
callback | In | Where the flow returns the user. It must sit on one of the application's allowed domains. |
ip_analyses[].status | Out | The feature lifecycle state for this collection point. |
ip_analyses[].warnings[] | Out | Risk codes in the LOCATION bucket, for example VPN_DETECTED or DUPLICATED_DEVICE. |
| Geo, ASN, device fingerprint id, duplicate matches | Out | The evidence behind the warning, on the same entry. |
Paid steps and review boundaries
Device and IP Analysis is $0.03 per check at list price, and that $0.03 is a component of the $0.33 full KYC check rather than a product you order on its own: ID verification $0.15, passive liveness $0.10, face match 1:1 $0.05 and device and IP analysis $0.03. The signals are session-only. The SDK collects the fingerprint and the IP inside the hosted flow and you read them from the session decision, so there is no standalone IP analysis endpoint to call and no separate order line. Growth takes 4% off every Didit price and Scale takes 10%, which puts the IP line at $0.0288 and $0.027. You pay for a check when it finishes with a result, and sandbox testing is free and unlimited on every plan.
Draw the review boundary in writing. A single weak signal should not decide the outcome. Automated decline only for combinations your policy names in advance, such as TOR_DETECTED together with a failed liveness check. Manual review for LOCATION_MISMATCH_WITH_DOCUMENT, IMPOSSIBLE_TRAVEL and duplicate-device matches. Record a reason for every override, and route deliberately instead of sending every warning to a person, because each case you send to a reviewer costs time your team could spend on real risk.
Worked cost example
Take 40,000 full checks a month on the Scale plan. Every line below uses a published unit price.
- Scale price per full check: $0.33 x 0.90 = $0.297.
- Check usage for the month: 40,000 x $0.297 = $11,880.00.
- Device and IP component inside that usage: $0.03 x 0.90 = $0.027, and 40,000 x $0.027 = $1,080.00.
- Plan credit: $350.00 of monthly credit pays the first $350.00 of the usage, leaving $11,880.00 - $350.00 = $11,530.00 from top-ups.
- Monthly total: $299.00 Scale fee + $11,530.00 = $11,829.00.
- At list price the same volume is 40,000 x $0.33 = $13,200.00, so the plan discount saves $1,320.00 on checks.
Monthly credit does not roll over. Run your own numbers in the estimator on the pricing page before you commit to a plan, because the mix of checks matters more than the headcount you are verifying.
Sources
- Didit docs: Device Fingerprinting and IP Risk API for KYC
- Didit docs: IP analysis warnings catalogue
- Didit docs: Data models and the IP analyses schema
- Didit docs: Create Session API
- Didit docs: Retrieve Session API
- Didit docs: Webhooks and event types
- Didit docs: Workflow builder
- Didit docs: Pricing and billing
- Didit pricing page and cost estimator
- Didit MCP server setup
- Didit documentation index for AI agents
- GDPR, Regulation (EU) 2016/679
- FATF, risk-based approach guidance
Next step: open the sandbox at https://business.didit.me/, create a workflow, and run a session with device and IP analysis on. No sales call is required. If you are migrating from another provider, read the switch page first, and if you want an AI assistant to drive the integration, use the MCP setup.
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
Alejandro Rosas
Co-founder and CTO

Questions
Frequently asked questions
What is IP address analysis in fraud detection?
IP address analysis looks at the connection behind a session, not only at its location. It resolves country, region, city and coordinates, reads the ASN and connection type, flags VPN, proxy, Tor and data center traffic, and matches the address and device against earlier sessions. Didit reports one entry per collection point in ip_analyses[] on the session decision.
How accurate is IP geolocation at city level?
City-level accuracy varies by network type and is not a single published number. Fixed residential lines usually resolve close to the city, while mobile carriers and shared address pools often resolve to a regional hub. Didit returns country, region, city and coordinates. Treat city as a weak signal and never as proof of a residential address.
What is anonymous IP detection?
Anonymous IP detection identifies traffic that hides its real origin, through a VPN, a proxy server, a Tor exit node or a hosting provider. Didit reports these as four separate risk codes rather than one flag. Each one is evidence for a policy decision, not proof of fraud on its own.
How do I analyse an IP address for fraud with Didit?
Create a session with POST /v3/session/ using your workflow_id and a stable vendor_data, send the user to session.url, and read GET /v3/session/{sessionId}/decision/. The SDK collects the device fingerprint and IP inside the flow, so there is no standalone IP endpoint to call. Then route on the risk codes in ip_analyses[].warnings[].
What does the IP analyses array contain?
The IP analyses array holds one entry per IP and device collection point the workflow runs. Each entry carries the resolved geo, the ASN, the VPN, proxy and Tor flags, the device fingerprint id, duplicate-device matches, a feature status and a warnings[] array of risk codes.
What happens if the IP analyses array is empty?
An empty array usually means the user blocked the SDK fingerprinting script with a privacy extension or a content blocker. Decide in advance whether to fail closed or to fall back to softer signals, and record which branch fired. Do not treat an empty array as a clean result by default.
Should I block every VPN or proxy user?
No. Some users rely on VPNs and proxies for privacy, corporate access or security, and blocking all of them creates false positives. Use proxy and VPN detection as one input in a risk decision, with rules that match your risk appetite and a review path for the cases that go against the user.
How much does IP address analysis cost?
Device and IP Analysis is $0.03 per check at list price, and it is a component of the $0.33 full KYC check, not a separate order line. The signals are session-only: the SDK collects them inside the verification flow. Growth discounts the line to $0.0288 and Scale to $0.027. You pay per completed check from prepaid credit, and sandbox testing is free and unlimited.
Can IP analysis block traffic from a specific country?
Yes, in the sense that the analysis identifies the approximate country and a high-risk country flag can drive a rule. Review the legal and ethical constraints before you apply country-level blocks, keep an appeal path for legitimate users, and treat country as one signal among several rather than a hard rule.
Does IP analysis help with duplicate accounts and impossible travel?
Yes. A duplicated device fingerprint or a recovered device match surfaces the same physical device under a different account, and IMPOSSIBLE_TRAVEL flags a session that could not physically follow the previous one. Both arrive as risk codes on the same IP analyses entry, and both should route to review rather than an automatic decline.
What is ASN analysis and why does it matter?
An Autonomous System Number identifies the network operator behind an address. As general risk practice, a small or recently registered network with abuse history is worth closer review than a large consumer ISP, and many proxy and VPN providers run their own ASNs. Didit documents returning the ASN on each entry and leaves the weighting to your policy. Read the ASN together with the connection type and the proxy flags.
Is IP analysis enough on its own for anti fraud decisions?
No. IP and device signals are strongest when combined with document, biometric and behavioral evidence. Didit evaluates 200+ fraud signals per session and reports IP risk inside that decision, so a single flag never has to carry the whole verdict.
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


