Skip to Content
Platform.Ontology

VPN active detection

Android shows a VPN flag with no prompt; iOS offers only indirect hints.

Gets silentlyNetwork and connectionConnectivityAndroid and iPhoneWhen the app opensWhile you use it

In one line

Can see if a VPN is on, directly on Android and by guessing on iPhone

Android shows a VPN flag with no prompt; iOS offers only indirect hints.

Reveals whether the person hides their IP or uses a corporate VPN; apps use it for fraud and geo-blocking decisions.

What it can and can't do

What the user does: Nothing. It happens when the app checks the connection

It can

  • Check a VPN flag on Android
  • Guess a VPN from iPhone network hints
  • Block or limit features when a VPN is on

It cannot

  • See which VPN or what it carries
  • Get an official VPN flag on iPhone
  • Always catch a VPN on iPhone; guesses can be wrong

How it differs between platforms: Android has a reliable flag for system VPNs. iPhone has no official flag, only indirect hints.

On Android and iPhone

AndroidiPhone
StatusSupportedPartial
First versionAndroid 5.0 (API 21)iOS 2.0
Permission or entitlementACCESS_NETWORK_STATEnone
Protection levelnormalnone
How access is grantedinstallnone
What the user seesNot listedNot listed
How long it lastsNot listedNot listed
How to take it backNot listedNot listed
Store policyNone listedNone listed
APINetworkCapabilities.hasTransport(TRANSPORT_VPN), !hasCapability(NET_CAPABILITY_NOT_VPN)No official flag; Apple does not provide a VPN API for detection
NotesReliable for system VPNsNone

Data you get

What comes back: VPN on or off
Shape: boolean
How often: On change

FieldTypeUnitRangePrecision
vpnbooleanNonetrue, false1 bit

Technical limits

  • iOS detection is heuristic

The story

What it is

An app can often tell if you are using a VPN.

For you

You do not see it. Some apps behave differently when they see a VPN: a streaming app may block you, or a bank may ask for extra checks. It does not read your traffic, only that a tunnel is on.

For makers

Makers use it for fraud checks and to follow content rules by country. It can also be used to turn away people who use privacy tools. It is easy to read on Android and mostly indirect on iPhone.

Where you see it

TypeExampleApps
mediaA streaming service blocks playback when it sees a VPN trying to fake your country.Netflix, BBC iPlayer
bankingA bank asks for a code when you log in through a VPN.None named
gamesA game bans players who use a VPN to dodge a region lock or an IP ban.None named
shoppingA ticket seller limits purchases from VPNs to fight bots.None named
enterpriseA work app only opens when the company VPN is on.None named
securityA fraud engine adds risk when it sees a VPN with a sign up in a new country.None named

Risks

  • Blocks privacy tool users
  • Weak fingerprint bit

Android and iPhone in short

  • Android: Android apps can see a VPN flag with no prompt.
  • iPhone: iPhone gives only indirect hints, like unusual network interface names.

Good uses and abuse

Legitimate uses

  • Fraud checks
  • Geo-restricted content

Known abuse

  • Block privacy tool users

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility3 of 5How useful it is to honest apps
Friction0 of 5How much the user has to do
Fingerprint bits1Rough identifying entropy, when known

Same idea on the web

Sources

How well checked: Based on official documentation.

On this page