3 ms·
Incognito can be detected by via javascript looking at how the browser behaves differently in incognito. It looks like some of these detection mechanisms go aw
by jaredsohn 7y ago
Incognito can be detected by via javascript looking at how the browser behaves differently in incognito.
It looks like some of these detection mechanisms go away as Chrome gets updated but like seo, spam, viruses, and other such problems etc. there is a war aspect between trying to exploit and avoid exploiting.
Some details can be found here: https://stackoverflow.com/questions/2909367/can-you-determine-if-chrome-is-in-incognito-mode-via-a-script/27805491#27805491 https://stackoverflow.com/questions/2909367/can-you-determin...
- manfredo 7y agoI don't see how it'd be difficult to just obfuscate this. If it tries to write a cookie then let it write a cookie, just clear it on the next page reload. I don't see how it should be able to distinguish between an incognito browser and a non-incognito browser that has no history and is navigating to the page in question for the first time. I guess some things around local storage can be used to infer incognito mode, but I think it'd be straightforward to just write all local storage usage to memory instead of disk.
- jaredsohn 7y agoThe stackoverflow link I included says that the FileSystem API is disabled in incognito mode so its absence suggests the user is connecting via an incognito tab.