[英]Prevent Content Scripts Running on My Web Page
I want to prevent my web page from been accessed by browser extension based content scripts. 我想防止基于浏览器扩展的内容脚本访问我的网页。 Are there any javascript frameworks / practices that could possible help me achieve this?
是否有任何JavaScript框架/做法可以帮助我实现这一目标?
Thanks in advance 提前致谢
Not really. 并不是的。 Even if you write your own browser to try and prevent it, if it supports extensions the user can extend it.
即使您编写自己的浏览器尝试并阻止它,如果它支持扩展,用户也可以对其进行扩展。 Also, it would be completely against the spirit of the web and maybe against the law.
而且,这将完全违背网络精神,甚至违背法律。 The user owns their computer, you can get in legally murky areas if you do things to a user's "browser".
用户拥有自己的计算机,如果对用户的“浏览器”进行操作,则可以进入法律上不明确的区域。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.