简体   繁体   English

防止内容脚本在我的网页上运行

[英]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.

相关问题 Chrome-阻止脚本在页面中运行 - Chrome - Prevent scripts from running in a page 在Firefox中与Web内容(页面对象)共享插件对象(内容脚本) - Sharing addon objects (content scripts) with Web content (page objects) in Firefox 阻止我的javascript在另一个网站上运行 - Prevent my javascript running on another web site 使用 fetch 或 axios 显示运行脚本的另一个页面的 html 内容 - Use fetch or axios to display html content of another page running the scripts Chrome 扩展:使用内容脚本修改网页上的现有脚本? - Chrome Extensions: Use a content script to modify existing scripts on a web page? 我的内容在页面底部运行 - My content is running off the bottom of my page 我应该如何在网页中找到脚本 - How should I locate my scripts in my web page Firefox 扩展:在所有 web 页面上应用 content_scripts 但在特定 web 页面上应用 css? - Firefox extension: apply content_scripts on all web pages but css on specific web page? HTTP 访问控制 (CORS) 能否阻止其他域运行我的脚本? - Can HTTP Access Control (CORS) prevent other domains from running my scripts? 内容脚本样式表泄漏到页面中 - Content Scripts stylesheet leaks into the page
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM