Private browsing detection
Infers whether the browser is in a private or incognito window.
In one line
Can often tell if you are in a private window, until browsers close the gaps
Infers whether the browser is in a private or incognito window.
Sites use it for metered paywalls and fraud scoring. Browsers keep closing the leaks (quota size, filesystem API, IndexedDB errors), so any method has a short life.
What it can and can't do
What the user does: Nothing. It happens when the page loads
It can
- Check storage size and errors that differ in private mode
- Block a metered paywall trick or add a fraud score
- Ask you to leave the private window
It cannot
- See what you browse in the private window
- Work for long; browsers keep fixing these tells
- Be certain; each method can fail
- Stop the private window from working
Browser support
| Browser | Status | First version | Released | Note |
|---|---|---|---|---|
| Chrome | Supported | 61 | 2017-09-05 | None |
| Edge | Supported | 79 | 2020-01-15 | None |
| Firefox | Supported | 57 | 2017-11-14 | None |
| Safari | Supported | 17 | 2023-09-18 | None |
| Safari on iPhone | Supported | 17 | 2023-09-18 | None |
| Chrome on Android | Supported | 61 | 2017-09-05 | None |
| Samsung Internet | Supported | 8.0 | 2018-07-18 | None |
How a site asks for it
| API | navigator.storage.estimate() quota, IndexedDB open errors, FileSystem API, timing |
| Browser compat keys | api.StorageManager.estimate |
| How access is granted | none |
| What the user sees | None |
| Needs a secure context (HTTPS) | No |
| Needs a user gesture | No |
| How long it lasts | read fresh on every page load; nothing stored |
| How to take it back | none needed (no grant) |
| Inside an iframe | Readable from cross-origin iframes too (same values) |
Typical flow
- Page script reads the value
- No prompt is shown
Data you get
Shape: object
How often: static per session
| Field | Type | Unit | Range | Precision |
|---|---|---|---|---|
private | boolean | None | inferred true or false | detector dependent |
Technical limits
- No official API
- Each method patched within months
- Cannot see history or cookies of the normal window
The story
What it is
Guesses whether you are in a private or incognito window.
For you
You never see the check. You may notice a site that refuses to open a free article in private mode, or asks you to sign in. Your private window looks like any other, but the site may treat it differently.
For makers
Publishers use it to enforce free article limits that would reset in a private window. Fraud teams treat private browsing as a mild risk signal. Browsers keep closing the clues, so each method works only a short time.
Where you see it
| Type | Example | Apps |
|---|---|---|
| news | A newspaper with a few free articles a month blocks private windows, since they would reset the counter. | The New York Times, The Washington Post |
| security | A payments fraud system adds risk when a new account is created in private mode. | Stripe Radar |
| shopping | A retail site cannot keep your cart across visits in private mode and shows a note. | None named |
| games | A browser games portal tells you progress will be lost when you close the private window. | None named |
| banking | A bank notes that a login came from a private window and may ask for an extra code. | None named |
| ads | An ad vendor treats private browsers as users who opted out of tracking. | None named |
| education | An online exam provider blocks private windows to stop hidden helper tools. | None named |
Risks
- May block people who value privacy
- Detection tricks change often
What the platform says
- Google: Incognito mode in Chrome. Chrome says Incognito does not save your browsing history on the device, but sites can still see your visit.
Good uses and abuse
Legitimate uses
- Metered paywall
- Fraud scoring
Known abuse
- Treating private users as suspect
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 | 0.5 | Rough identifying entropy, when known |
A real example: LinkedIn
Incognito or private mode detected. Read by the LinkedIn APFC fingerprint script (48 features, alleged by BrowserGate, partly confirmed by BleepingComputer).
History
- 2019-07, Chrome 76: FileSystem API incognito leak closed
- 2023-07, Firefox 115: IndexedDB private-mode error removed
Related capabilities
Related
- Storage quota estimate. Can see how much storage the site may use, which tracks your disk size
Sources
How well checked: Inferred from related behavior.