简体   繁体   English

让用户在浏览时使用隐身模式而不是正常浏览

[英]Making users use incognito mode in browsing instead of normal browsing

I heard that Google removed the function of detecting incognito browsing so I'm asking for other ways to force my users to use incognito mode instead of normal browsing to avoid screenshot in React JS.我听说谷歌删除了检测隐身浏览的功能,所以我要求其他方法来强制我的用户使用隐身模式而不是正常浏览,以避免在 React JS 中截屏。 Is there a way to require users to use incognito mode for browsing my web app?有没有办法要求用户使用隐身模式浏览我的网络应用程序?

I'm not sure about the practicality of your use case, but yes, it is possible.我不确定您的用例的实用性,但是是的,这是可能的。 I manage a script that detects private browsing windows in all browsers.我管理一个脚本,用于检测所有浏览器中的隐私浏览窗口。

https://github.com/Joe12387/detectIncognito https://github.com/Joe12387/detectIncognito

It is currently possible to detect the usage of incognito mode in certain browser versions, eg by feature detection .目前可以在某些浏览器版本中检测隐身模式的使用,例如通过特征检测 The answer from Joe Rutkowski provides a solution with his detectIncognito script that (apparently) works right now , and he also states that he will try to keep it working in the future as far as possible. Joe Rutkowski 的回答为他的detectIncognito脚本提供了一个解决方案,脚本(显然)现在可以工作,并且他还表示他将尽可能在未来保持它的工作状态。

But also notice that the ability to detect the usage of "incognito mode" and "private browsing" mode etc. is considered a "loop hole" or even "bug" by the browser vendors, and they work hard to fix this.但也请注意,检测“隐身模式”和“隐私浏览”模式等使用的能力被浏览器供应商视为“漏洞”甚至“错误” ,他们正在努力解决这个问题。

This is a battle between the browser vendors which try to provide privacy for their users and website authors which try to get as much information about their users as possible.这是试图为其用户提供隐私的浏览器供应商与试图获取有关其用户的尽可能多信息的网站作者之间的斗争 So you will have to "fight back" and constantly find new loop holes when the current ones are closed (or rely on other people like Joe Rutkowski and probably others to do it for you, and update their tools reqularily).因此,当当前的漏洞关闭时,您将不得不“反击”并不断寻找新的漏洞(或依靠其他人,如 Joe Rutkowski 和其他人为您做这件事,并定期更新他们的工具)。

Eg see " Protecting private browsing in Chrome ":例如,请参阅“ 在 Chrome 中保护隐私浏览”:

As of July 2020, Chrome is gradually rolling out a previously announced fix to address a loophole that could be used by websites to detect Chrome Incognito Mode sessions.自 2020 年 7 月起,Chrome 将逐步推出先前宣布的修复程序,以解决网站可用于检测 Chrome 隐身模式会话的漏洞。

or Issue 990592: Chrome 76 can still detect incognito mode via FileSystem API :问题 990592:Chrome 76 仍然可以通过 FileSystem API 检测隐身模式

Incognito mode should not be detectable in Chrome 76在 Chrome 76 中不应该检测到隐身模式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM