Question

Googling this question turns up questions about people wanting to know if someone else in their household is using incognito mode when they browse the web, that is not what I'm interested in. Using cookies, I cannot distinguish between a first time visitor and an incognito or private mode visitor. I would like to distinguish between those two cases.

Was it helpful?

Solution

It is sometimes possible to detect private-mode in client browsers, though the methods used are not 100% reliable depending on the browser version and release.

Most of the methods used for this are based on Javascript code, and some other make use of HTML5 or CSS features (e.g. LocalStorage on Safari).

See the following answers for more details:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top