VPN active detection
Android shows a VPN flag with no prompt; iOS offers only indirect hints.
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
| Android | iPhone | |
|---|---|---|
| Status | Supported | Partial |
| First version | Android 5.0 (API 21) | iOS 2.0 |
| Permission or entitlement | ACCESS_NETWORK_STATE | none |
| Protection level | normal | none |
| How access is granted | install | none |
| What the user sees | Not listed | Not listed |
| How long it lasts | Not listed | Not listed |
| How to take it back | Not listed | Not listed |
| Store policy | None listed | None listed |
| API | NetworkCapabilities.hasTransport(TRANSPORT_VPN), !hasCapability(NET_CAPABILITY_NOT_VPN) | No official flag; Apple does not provide a VPN API for detection |
| Notes | Reliable for system VPNs | None |
Data you get
What comes back: VPN on or off
Shape: boolean
How often: On change
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
vpn | boolean | None | true, false | 1 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
| Type | Example | Apps |
|---|---|---|
| media | A streaming service blocks playback when it sees a VPN trying to fake your country. | Netflix, BBC iPlayer |
| banking | A bank asks for a code when you log in through a VPN. | None named |
| games | A game bans players who use a VPN to dodge a region lock or an IP ban. | None named |
| shopping | A ticket seller limits purchases from VPNs to fight bots. | None named |
| enterprise | A work app only opens when the company VPN is on. | None named |
| security | A 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
| Score | Value | Meaning |
|---|---|---|
| Sensitivity | 2 of 5 | How revealing the data is |
| Utility | 3 of 5 | How useful it is to honest apps |
| Friction | 0 of 5 | How much the user has to do |
| Fingerprint bits | 1 | Rough identifying entropy, when known |
Related capabilities
Related
- System proxy settings. Can see if your phone sends web traffic through a proxy
Same idea on the web
- VPN, proxy and Tor detection. Can guess whether you are hiding behind a VPN, proxy or Tor, but not always correctly
Sources
How well checked: Based on official documentation.