Skip to main content

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.

IP Address Analysis for Fraud Detection: A Step-by-Step Guide

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.

IP address analysis signals and what each one changes in a decision
SignalQuestion it answersDidit risk codeUsual handling
GeolocationWhere does the connection resolve, by country, region, city and coordinatesHIGH_RISK_COUNTRYFlag or review, not an automatic decline
Location against documentDoes the IP country match the document's issuing countryLOCATION_MISMATCH_WITH_DOCUMENTRoute to review
VPNIs the traffic tunneling through a commercial VPNVPN_DETECTEDPolicy dependent, often review
ProxyIs the address a known proxyPROXY_DETECTEDReview or a step-up check
TorIs this a Tor exit nodeTOR_DETECTEDUsually decline per policy
Data centerIs the address hosting rather than residential or mobileDATACENTER_IPWeigh it with other signals
Device reuseIs this the same physical device as another accountDUPLICATED_DEVICE, POSSIBLE_DUPLICATED_DEVICEMerge, block or review
Travel speedCould the person physically be here after the last sessionIMPOSSIBLE_TRAVELReview
Device historyHas this device attacked beforeDEVICE_FINGERPRINT_BLOCKLISTED, DEVICE_LINKED_TO_LIVENESS_ATTACKDecline 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.

Didit Device and IP Analysis screen showing geolocation, device fingerprint, device intelligence and VPN detection
Device and IP Analysis inside a Didit session: geolocation, device fingerprint, device intelligence and VPN detection on one screen.

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.

Didit Device and IP Analysis architecture diagram cross-checking IP signals, device fingerprint and declared location
How the checks stack: IP intelligence, device fingerprint and the declared location are cross-checked before the decision is written.

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:sessions privilege.
  • 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_data for 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

  1. Write the policy first. Decide what VPN_DETECTED, PROXY_DETECTED, TOR_DETECTED, DATACENTER_IP, LOCATION_MISMATCH_WITH_DOCUMENT and DUPLICATED_DEVICE each do. Without that, the data arrives and nobody acts consistently.
  2. 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.
  3. Create the session with POST /v3/session/, sending workflow_id, vendor_data and a callback.
  4. 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.
  5. Fetch the decision with GET /v3/session/{sessionId}/decision/, or subscribe to status.updated and read the decision object inside the webhook envelope.
  6. Read ip_analyses[]. One entry per collection point, each with geo, ASN, the VPN, proxy and Tor flags, the device fingerprint id, duplicate matches and warnings[].
  7. 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_DEVICE or POSSIBLE_DUPLICATED_DEVICE. The same device was enrolled earlier under a different vendor_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

What you send, what Didit returns, and what to do with it
FieldDirectionWhat it does
workflow_idInPins the session to the workflow whose checks run, including the device and IP collection.
vendor_dataInYour stable user identifier. Duplicate IP and duplicate device matching compare against sessions that carry a different value.
expected_details.id_countryInThe expected document country. The location mismatch warning compares the IP country with the document's issuing country.
callbackInWhere the flow returns the user. It must sit on one of the application's allowed domains.
ip_analyses[].statusOutThe feature lifecycle state for this collection point.
ip_analyses[].warnings[]OutRisk codes in the LOCATION bucket, for example VPN_DETECTED or DUPLICATED_DEVICE.
Geo, ASN, device fingerprint id, duplicate matchesOutThe evidence behind the warning, on the same entry.

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

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.

ID Verification

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

$0.15 per checkStart free

Author

Alejandro Rosas

Co-founder and CTO

Alejandro Rosas

Alejandro Rosas

Co-founder and CTO

About Didit

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.

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.