Can I check if the client browser is in incognito mode?

Recently, I entered the service (I think it’s Google or Facebook, but I'm not sure) and a ticket in the field to remember my device.

Then the site warned me that this is unlikely to work, because I worked in private mode. That was right.

Now I can’t reproduce this, because I don’t remember exactly where he was, and the usual login does not create this message (moreover).

However, today I had a discussion with a friend, whether it is possible to find out if the device is configured in closed mode.

I am aware of several "super cookie" methods that may cover the private mode of some browsers, but I do not want to know about this. I'm interested in environmental information that can be read and interpreted, and provide information on whether private mode is active or likely .

To clarify the meaning of my question, I will give one example that could be used to solve this problem:

There is a so-called "CSS story". I do not know about the current state in browsers, however for a long time it was quite often and worked like this:

Put a link to another website (e.g. http://www.google.com on the website), then you can read the state of the visited state of the css state using javscript.

Now, if you do this with a popular site like google, you can say:

Well, have you never seen google.com? This is unlikely, so I’ll assume that you just opened a private viewport!

So there are other methods, and so what, and is there a way to combine them in such a way as to evaluate whether the user is currently in private mode or not?

+4
source share
1 answer

Have you been looking for other answers? It's simple: create an iframe for a random page, then use javascript to determine if the page has been visited.

Read the whole answer

0
source

Source: https://habr.com/ru/post/1487039/


All Articles