Skip to Content
Platform.Ontology

Incognito and private mode detection

Guesses whether the browser is in private mode using storage quota behavior.

Gets silentlyFiles and storageStorageWeb browsersWhen the page loadsWhile you use it

In one line

Can guess whether you are in a private or Incognito window

Guesses whether the browser is in private mode using storage quota behavior.

Tells the site when someone is deliberately browsing privately. LinkedIn's script uses the FileSystem quota (Chrome 74 and older) or storage.estimate.

What it can and can't do

What the user does: Nothing. It happens when the page loads.

It can

  • Test how much storage it gets, to guess private mode
  • Change what it shows, such as article limits
  • Add the guess to a profile of you

It cannot

  • Be sure, since the guess can be wrong as browsers change
  • See your history or what you do in the private window
  • Tell your name or account from this

Browser support

BrowserStatusFirst versionReleasedNote
ChromeSupported612017-09-05estimate()
EdgeSupported792020-01-15None
FirefoxSupported572017-11-14None
SafariSupported172023-09-18None
Safari on iPhoneSupported172023-09-18None
Chrome on AndroidSupported612017-09-05None
Samsung InternetSupported8.02018-07-18None

How a site asks for it

APIwebkitRequestFileSystem quota; navigator.storage.estimate()
Browser compat keysapi.StorageManager.estimate
How access is grantednone
What the user seesNone (no browser prompt)
Needs a secure context (HTTPS)No
Needs a user gestureNo
How long it lastsNot listed
How to take it backNot listed
Inside an iframeNot listed

Typical flow

  1. Script reads the value
  2. Value joins the fingerprint payload

Data you get

What comes back: Incognito and private mode detection
Shape: boolean
How often: read on demand

FieldTypeUnitRangePrecision
incognitobooleanNoneNot listedheuristic

Technical limits

  • Browsers keep closing the leaks
  • Heuristic, can be wrong

The story

What it is

A site guesses whether you are in private mode by testing how the browser stores data.

For you

You are never asked and never see it. A site can notice that private mode saves less data, and may then change what it shows you.

For makers

Makers use it to enforce paywalls, spot fraud and avoid broken sites. Some publishers hide articles or ask people to log in. Privacy groups say this penalises people who want privacy.

Where you see it

TypeExampleApps
newsA news site notices private mode and blocks the free article count, asking you to sign in.None named
securityA bank or fraud service treats a private mode login as a little riskier and may add a code step.None named
adsAn ad network sees private mode and does not store a profile ID for this visit.None named
gamesA browser game warns that your progress cannot be saved in private mode.None named
shoppingA store warns that the cart will vanish when you close the private window.None named
analyticsA site team counts private mode visits to understand how many are missing from stats.None named

Risks

  • Penalises privacy
  • Not fully reliable

Good uses and abuse

Legitimate uses

  • Paywall metering

Known abuse

  • Singles out privacy seekers

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

A real example: LinkedIn

Collector key(s): incognito.

Sources

How well checked: Based on official documentation.

On this page