Skip to content

Blog

IP fraud score: how an address risk score is built and how to act on it

How an IP fraud score is computed from network signals, what the 0 to 100 number can and cannot tell you, and how to turn low, medium and high into friction.

Updated 2026-11-24

An IP fraud score is a prior, not a verdict. It tells you how often traffic from this kind of network turns out to be abuse, and it says nothing about the person behind the request. Used that way, it is one of the cheapest and most useful signals at signup, checkout and login: it costs one lookup, it needs no cooperation from the user, and it lets you ask for a little more proof exactly when the odds call for it.

What goes into a score

An IP address belongs to a network, and networks have recognizable kinds. A fraud score starts from facts about that network and the address, and adds weights.

Signal What it says How Qelka sets it
Hosting or data center Traffic from servers, not homes flags.datacenter is true when the network is classified hosting
VPN The address belongs to a known VPN provider flags.vpn, best effort
Proxy The address belongs to a known proxy network flags.proxy, best effort
Tor The address is a Tor exit node flags.tor, from the Tor Project's list of exit nodes
Unknown network No known network announces the address asn is null

Scores in other products also mix in history, such as an address seen attacking other sites. The Qelka score does not. It is computed from the flags and the network alone, so the same inputs always give the same output, and you can reproduce it by hand.

How the Qelka score adds up

Each signal has a weight, the weights are summed and the total is capped at 100.

Signal Weight
Tor exit node 80
Proxy network 70
VPN network 50
Data center network 35
Network announcing the address is unknown 15

The level follows from the score: low below 30, medium from 30 to 69 and high from 70. The table shows how common combinations land.

What the lookup found Score Level
Nothing flagged, network known 0 low
Network unknown, nothing flagged 15 low
Data center only 35 medium
Data center and unknown network 50 medium
VPN only 50 medium
VPN on a data center network 85 high
Proxy only 70 high
Tor exit node 80 high
Tor and proxy 100 (capped from 150) high

The example response in the IP API reference shows the first of the medium rows: 8.8.8.8 sits on a hosting network, flags.datacenter is true, and risk is { "score": 35, "level": "medium" }. A well-known public service is not malicious. Hosting is simply a kind of network that carries a lot of automation, and that is all the score claims.

What the number does not know

Be exact about the limits, because acting on a score as if it were more than a prior is how real users get turned away.

  • A false flag means not detected, not clean. VPN and proxy detection is best effort, and a VPN that runs on networks nobody lists carries no flag.
  • Residential proxies are generally invisible. They exit through home connections on ordinary ISP networks, so they score low. See residential proxies.
  • Mobile networks hide people. Many subscribers share a few addresses behind carrier-grade NAT, so one address says little about one person, in either direction.
  • The address identifies a network, not a person. One person changes address when they move between networks, and many people share one.
  • Location is approximate. The country is the dependable part, and region and city are not. IP geolocation accuracy explains why.
  • The score has no memory. It does not know that this address attacked a site yesterday. Your own history of the address is a better signal than any score, and you should add it.

Turn a level into friction

The response to a score should be proportionate and reversible. A person you block may never return. A person you ask to confirm an email loses a few seconds.

risk.level At signup Before a costly action
low Let the person through Nothing
medium Nothing yet Confirm the email before granting trial credits, or add a challenge before a high-value action
high Confirm the email or phone before the account becomes active, or send it to manual review Hold the action until confirmed

Tor deserves its own policy. Some services welcome it on purpose, others see mostly abuse from it. flags.tor lets you apply your policy without guessing.

Combine it with the other signals

An IP score is a weak signal alone and a good one next to others. A rule for stopping fake signups that weighs several signals together is more accurate than any one of them:

Signal Source What a strong hit looks like
IP risk.level, flags, asn.type high, or a hosting network with many signups
Email status, reason, checks.disposable risky with reason disposable, or undeliverable
Phone valid, line_type premium_rate, or invalid
Geography country.code against the billing address or phone country A mismatch, which is common among travelers, so only a weak signal
Your own history Signups per address in the last hour Several accounts from one address

Two weak signals deserve a step. One weak signal rarely does.

Read the right address

A score of the wrong address is worse than none. Behind Cloudflare, read the CF-Connecting-IP header. Behind a load balancer or reverse proxy, read the address it appends to X-Forwarded-For, and configure your framework to trust that proxy only. Never trust X-Forwarded-For blindly when your server is reachable directly, since anyone can send any value. In local development your server sees 127.0.0.1 or ::1, and the API answers 422 unprocessable_input for private and other special-purpose addresses, without billing the call. Treat that as no signal. Flag VPN and data center traffic covers it in detail.

Call the API

bash
curl https://api.qelka.com/v1/ip \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ip": "8.8.8.8"}'

The response has the fields used above:

json
{
  "object": "ip",
  "input": "8.8.8.8",
  "version": 4,
  "country": { "code": "US", "name": "United States" },
  "asn": { "number": 15169, "org": "Google LLC", "type": "hosting" },
  "flags": { "tor": false, "vpn": false, "proxy": false, "datacenter": true },
  "risk": { "score": 35, "level": "medium" },
  "credits_used": 1,
  "cached": false
}

A lookup costs 1 credit and results are cached for 7 days. Here is a decision function that turns the response into friction, and fails open when the lookup does not work:

javascript
export async function ipFriction(ip) {
  const response = await fetch('https://api.qelka.com/v1/ip', {
    method: 'POST',
    headers: {
      Authorization: `Bearer ${process.env.API_KEY}`,
      'Content-Type': 'application/json',
    },
    body: JSON.stringify({ ip }),
    signal: AbortSignal.timeout(3000),
  }).catch(() => null)

  if (!response || !response.ok) return 'none'
  const result = await response.json()

  if (result.risk.level === 'high') return 'confirm_before_activation'
  if (result.risk.level === 'medium') return 'confirm_before_costly_action'
  return 'none'
}

Look the address up once per session, not on every request, and store the level with the session. Keep the key on your server.

Run in shadow mode first

Before you enforce anything, log the score next to what happened. For two weeks, record risk.level for every signup without changing the flow, then compare it with your own outcomes: accounts that were refunded, banned, never confirmed or never used. That gives you your own measure of what each level means for your traffic. Raise friction where the score earns it, and leave it where it does not. If you quote a figure from a vendor, including us, ask for its source and its method. You have a better one: your own data.

Mistakes to avoid

  • Blocking on medium. It catches every cloud desktop and many privacy tools. Add a check at that level, not a wall.
  • Reading low as safe. It is the absence of a flag.
  • Scoring the proxy's address. Behind a load balancer, the address you see is your own. Read the forwarded address.
  • Using IP country as proof of residence. Use it as a hint.
  • Never revisiting thresholds. Traffic and abuse change. Review them with your numbers.
  • Treating the score as the whole defence. Combine it with email, phone and behaviour.

Where to go next

Frequently asked questions

What is an IP fraud score?
It is a number that summarizes how risky traffic from an IP address looks. A vendor combines signals about the address, such as whether it belongs to a hosting network, a VPN, a proxy or Tor, and turns them into a score. It is a prior about the network, not a verdict about the person. Qelka returns risk.score from 0 to 100 and a risk.level of low, medium or high.
How is the Qelka IP risk score calculated?
It adds fixed weights for each signal and caps the total at 100: Tor 80, proxy 70, VPN 50, data center 35, and 15 more when the network announcing the address is unknown. Under 30 is low, 30 to 69 is medium and 70 or more is high. The same flags always give the same score, and the IP risk score page lists the weights.
Does a high IP risk score mean the user is a fraudster?
No. It means the address belongs to a kind of network that abuse often comes from. Plenty of legitimate people use VPNs for privacy, work from cloud desktops or sit behind corporate proxies. Treat a high score as a reason to add a step, such as confirming an email, and not as a reason to block. Keep outright blocking for patterns you have confirmed in your own traffic.
Can the score catch residential proxies?
Generally not. A residential proxy exits through a home connection on an ordinary consumer network, so it carries no hosting, VPN or proxy mark and scores low. The API documentation says so plainly. Catch that kind of traffic with behaviour: rates per account and device, repeating patterns and sessions that rotate through many addresses. See the article on residential proxies.
What score should I block at?
Start without blocking. Run the lookup in shadow mode, log the score next to what later happened to each account, and compare it with your own abuse numbers. Then choose friction by level: nothing at low, a check before costly actions at medium, and an extra step before activation at high. The right thresholds come from your data, not from ours.
Why do some real users get a medium or high score?
Because they share infrastructure with abusers. A user on a commercial VPN, a cloud desktop, a corporate gateway or a privacy relay can sit on a network classified as hosting or VPN. A flag describes the network, not the person. That is why the right response to a score is a proportionate step the user can complete, such as confirming their email.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time