Published on Jan 19, 2025Thelma NwosuRead time: 14m2.2K viewer
Location Spoofing Detection: What Each Method Leaves Behind

Location Spoofing Detection: What Each Method Leaves Behind

An order arrives with a card issued in Ohio, a phone that reports a fix in Ohio, and a connection that resolves to a hosting range in Frankfurt. Two of those claims were typed or generated by the buyer. The third was rented from a pool of addresses someone else controls, and that gap is what location spoofing looks like from inside a payment flow. It is also why a check that compares the billing country to the IP country keeps waving through the same orders.

Detecting it is less about one flag than about the evidence a masking method cannot hide. A VPN exit sits on a datacenter network. A residential proxy sits on a real home connection that is not the buyer's. A mocked GPS fix produces a track that never moved. Each method leaves a different residue, and each residue deserves a different response.

The supply behind those methods is large and cheap.

A measurement study of residential proxy services found 6 million residential IP addresses across more than 230 countries and 52,000 ISPs, and many of those proxy hosts ran on likely compromised devices, IoT hardware included. Resident Evil: Understanding Residential IP Proxy as a Dark Service, IEEE Symposium on Security and Privacy, 2019

Three location claims, and only one of them is yours

Every transaction carries location in more than one place. There is the address the buyer typed, the fix the app or browser reported, and the address the packets came from. The first two travel through the client, so the client chooses them. The third has to be routable and has to receive the reply, which makes it the one value an attacker cannot simply type.

That does not make the IP a location proof. It makes it an address, and the location is an inference built on registration data. Proxy services do not forge the inference. They replace the address so the inference points somewhere else. The distinction matters, because it tells you where to look: at the network behind the request, not at the string in the city field.

Four ways a real location gets replaced

Most masked transactions use one of four methods. They differ in cost, in what they hide, and in what they leave behind.

A VPN exit

The buyer's traffic leaves through a provider's server. The exit address belongs to that provider, usually on a hosting network, and it is shared with other customers. The relay is cheap to rent and visible to anyone who checks the network type behind the address.

A commercial proxy

Traffic leaves through an intermediary address, often with a residential origin. Datacenter proxy pools are cheap and noisy. Residential and mobile pools are the expensive end, because the address looks like a home connection in a specific town.

A datacenter address

Not every hosting address is a proxy. Cloud regions, remote desktops, corporate VPN concentrators and B2B integrations all run on hosting networks. The address type is still worth knowing before you decide what the buyer is.

A mocked GPS fix

On a phone, the location the app receives can come from a test provider instead of the satellite and network stack. The buyer installs a mock location app, the fix reports another city, and every client-side check that trusts that fix agrees with the lie. GPS spoofing on the device is a separate problem from a relayed IP, and it needs its own evidence.

What a VPN exit leaves behind

A commercial VPN is the easiest case, which is why it is also the least interesting one for a determined fraudster. The exit address is on a known hosting network, so the hosting check and the VPN check both fire. The exit city changes while the account's device settings do not. A buyer who lives in Leeds and connects through a Netherlands exit usually still has a UK timezone on the phone, a UK locale on the browser, and a card issued in the UK.

The stronger tell is repetition. A single VPN exit address or a small subnet shows up across many accounts, and those accounts share a rhythm: they appear in bursts, they order similar baskets, and they stop after a decline. One masked buyer is a privacy user. Forty accounts on one exit in an afternoon is a farm.

What a residential proxy hides that a VPN cannot

A residential proxy exit is a real subscriber address on a consumer ISP. The hosting flag stays false, and on providers with weaker detection the VPN flag stays false too. This is the method that gets past a single boolean, and it is the reason to look past the flag.

What remains is geography that does not fit the account. A buyer whose history is three years of a Texas suburb suddenly pays from a residential block in a small town in another country, with an ISP the account has never used. The city field looks plausible in isolation. It looks wrong against everything else you know.

Two more residues are worth logging. Residential pools rotate addresses, so the same account can present a different town on consecutive orders in the same session. And because many of these hosts are compromised routers and set top boxes, the address often belongs to a subscriber who has no idea their connection is for sale. A reshipper address plus a rotating home IP in a country with no other footprint is a combination that earns a review.

Why hosting is a different signal from proxy

Treating hosting as proxy means blocking every cloud buyer, every developer testing from a VPN concentrator, and every company that routes staff through a corporate gateway. Treating proxy as hosting means missing the residential pools entirely.

The two signals answer different questions. Hosting tells you the address is not a consumer connection. Proxy tells you the traffic is being relayed. A smart TV app calling from a cloud region during a load test and a card tester calling from the same region look identical on the hosting flag, and different on account age, order value and outcome history. That is the point of keeping them apart.

What a faked GPS fix looks like inside an app

Mobile is where location claims get weakest, because the app receives whatever the operating system hands it. Android marks fixes that come from a mock provider, and platform integrity checks tell you whether the device passes its own attestation. On iOS the app cannot install a location provider, so a fake fix needs a developer signed build, an emulator, or a paired external device that feeds coordinates.

Beyond the platform flags, the track itself carries evidence. A real buyer moves. A spoofed session teleports from one city to another with no intermediate points, no drift while stationary, and no relationship between the reported movement and the sensor, battery or network data the app can see. A fix that appears instantly at app start, before a cold GPS lock could plausibly finish, is another cheap tell.

The hard limit is worth stating plainly. Anything the client sends can be wrong. If your only location evidence is a coordinate from the app, you have the buyer's word for it, and attestation is the only part of that channel you can trust.

Three cross checks that survive a masked IP

A flag on its own is a guess. These checks turn it into evidence.

Timezone and locale against the IP

The IP timezone is inferred from the address. The device timezone is a setting the buyer chose. Most people never change it, so a mismatch between the two, or a device timezone that matches the account's home country while the IP sits on another continent, is a stronger signal than the IP country alone. Language and locale settings add the same kind of evidence.

Distance and latency against the claimed city

A relayed connection adds a hop, and the round trip time often reflects the real distance better than the reported city. Treat this as a heuristic, not a proof: mobile networks, satellite links and corporate gateways distort it. Used alongside a city that claims to be local while the handshake says otherwise, it is worth a second look.

Device and account history against the new region

The cheapest fraud to catch is the account that changed country this week. A new region on a long lived account, with a new device and a new payment instrument, on an order above the account's usual value, is a cluster. Each item alone is common. Together they are a review.

Where IP spoofing fits, and why it is not this

Search results mix up two different attacks. IP spoofing forges the source address in a packet, and it is used in reflection and denial of service traffic. A forged source cannot complete a TCP handshake, so it cannot log in, fill a basket or pay. When a support agent says the customer's IP was spoofed on a card order, what they usually mean is that the customer used a proxy.

Keep the words separate in your runbook too. A location mismatch is a business decision about a relayed connection. Packet level source forgery is a network security problem handled at the edge.

The fields to read, and what each one proves

Greip returns these in the security module on the IP lookup endpoint, with location in the geo object and the timezone module available in the same call.

curl --request GET \
  --url 'https://v2.greipapi.com/lookup/ip/203.0.113.44?params=security,timezone' \
  --header 'Authorization: Bearer <token>'
FieldWhat it meansWeight at checkout
security.is_blacklistedThe address matched your blacklist or a custom ruleDecide on its own, no other signal needed
security.torTraffic arrived through a Tor exitStrong on card checkout, weak on a content read
security.botThe client looks automatedStrong, and worth pairing with device checks
security.vpn_or_proxyTraffic is relayed through a VPN or proxyMedium. A challenge, not a decline
security.vpn_or_proxy_typeThe proxy class, such as VPN or SocksTells you how the relay is built
security.hostingThe address belongs to a hosting networkMedium. Common for fraud, common for cloud buyers
security.relayApple Private Relay or a similar serviceWeak. Many genuine buyers appear here
security.relay_countryThe relay egress countryUse it to compare against the claimed country
geo.country_codeCountry inferred from the addressMedium alone, useful against billing and card country
timezone.nameTimezone of the inferred locationStrong when compared with the device setting
device.mobile.detectedThe user agent looks like a phoneUse it to decide whether a GPS check applies

The full field set is in the VPN and proxy detection reference, and the checkout integration guide shows the request shape for a server side call.

Turning signals into a decision

The mapping is policy, not a rule the API makes for you. A workable starting point looks like this.

CombinationDecisionReason
Blacklisted, Tor or bot on a card paymentBlockThe address or client is already known bad
VPN or proxy, new account, order above your averageStep upRelay plus no history is the classic pattern
VPN or proxy, long lived account, small order, matching timezoneAllow with loggingLikely a privacy user on a routine purchase
Hosting, no other signal, business email and consistent historyAllow with loggingPlausible cloud or corporate route
Hosting, mismatched timezone, new device, high valueStep upDatacenter address plus region change
Residential IP that contradicts the account's whole historyManual reviewThe flag may be clean, the pattern is not
Apple Private Relay onlyAllowBlocking it costs real revenue for little gain

const s = body.data.security;
const geo = body.data.geo;
if (s.is_blacklisted || s.tor || s.bot) {
  return { action: "block", reason: "known_bad_network" };
}
const relayed = s.vpn_or_proxy || s.hosting;
const newRegion = geo.country_code !== account.last_country;
if (relayed && (newRegion || account.age_days < 7 || order.value > account.avg_order * 3)) {
  return { action: "challenge", reason: "relay_plus_risk" };
}
return { action: "allow", reason: s.relay ? "apple_relay" : "clean" };

The privacy user you will meet on every product

Blanket declines on relayed traffic hurt. Privacy VPNs are mainstream, corporate laptops route through gateways, and Apple Private Relay puts a large slice of iPhone traffic behind an egress in another country by design. Those buyers have valid cards, real addresses and no interest in fraud.

The test is not whether the connection is relayed. It is whether the relayed connection fits the account. A returning customer with a matching timezone, a stable device and a normal basket size is a different case from a first order on a rented home IP in a country the account has never touched. Give the first a pass with a log line, and the second a challenge.

What to log, so the next review has evidence

Store the raw response, not only the decision. Keep the IP, every field from the security module, the country and city, the inferred timezone, the device timezone the client reported, your decision, and the reason code that produced it. Add the outcome later: captured, declined, refunded or charged back.

The reason code is the part most teams skip, and it is the part that makes the log useful. A month of challenge with no code tells you nothing about which rule is working. A month of relay_plus_risk tells you how often that rule fired and what share of those orders turned out clean. Retention belongs to your privacy policy, so agree the window with whoever owns it before you start collecting.

Measuring the detector before you trust it

Run the checks in shadow mode first. Location spoofing detection is a measurement problem before it becomes a rules problem: score every order, act on none, and compare the flags against the outcomes you already know. That gives you the false positive rate per signal, which is the number that decides whether a rule is worth shipping.

Then watch three things after release: how many challenges a genuine buyer abandons, how many flagged orders turn out clean on manual review, and how many unflagged orders end in a dispute. A rule that catches fraud and loses more revenue in abandoned checkouts is a bad trade, and only the measurement will tell you.

Revisit the thresholds when the patterns change. Proxy pools rotate, new relay services appear, and a rule that was tight last quarter can be loose this one. Treat the change as a release with a review, not a quiet edit in a config file.

Frequently asked questions

What is location spoofing in a transaction?

It is a buyer presenting a location that is not where they are, usually by routing traffic through a VPN or proxy, or by feeding the app a false GPS fix. The goal is to pass a restriction, a price or a risk check tied to geography.

Can IP geolocation detect a GPS spoofing app?

Not directly. IP geolocation describes the network the request came from, and a mocked GPS fix describes what the device claims. Compare the two, and treat the network side as the harder value to fake.

Is a VPN user always a fraud risk?

No. A large share of privacy conscious buyers use one. The relay matters when it arrives with a new account, a mismatched timezone, a new device or an order far above the account's normal value.

What is the difference between IP spoofing and location spoofing?

IP spoofing forges the source address in a packet and is used in network attacks. It cannot complete a connection, so it does not help someone pay with a stolen card. Location spoofing replaces the address the server sees, or the fix the app receives, so the location looks like somewhere else.

How accurate is IP location for catching spoofing?

The country is the reliable part. City and postal data are estimates, and they degrade on mobile and satellite networks. Use the IP location as one signal against the buyer's stated country, timezone and history, not as a precise position.

What should I do when the VPN flag is true at checkout?

Challenge rather than block. Step up with 3-D Secure, a one time code or a manual review, and block only when the flagged order also shows a high value, a new account or a second failure.

If you want to test a single address before wiring the call, the VPN and proxy checker returns the same security fields, and the network intelligence page explains the ASN data behind the hosting flag. The location verification guide covers the accuracy limits of the location fields themselves, which is the other half of judging a masked request.

Get started

Start protecting your business today

Our service is trusted by thousands of businesses worldwide.

  • 1,000 requests during trial
  • Cancel anytime

Related Articles