阻止Chrome扩展程序在我的网站上运行 [英] Blocking Chrome Extensions from running on my site

查看:123
本文介绍了阻止Chrome扩展程序在我的网站上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为网页开发者,有什么办法可以阻止用户的Chrome扩展程序应用到我的网站?即标题,元标记,任何东西?此外,如果有的话,是否还有一种将特定扩展名列入白名单的方法? 解决方案

这是不可能的。在Web服务器端,您只能控制浏览器允许您控制的内容。简而言之,这意味着您可以控制您发回给它的数据(HTML,JavaScript,标题等)。就是这样。


As a web developer, is there any way to prevent a user's Chrome extensions from being applied to my site? i.e. a header, meta tag, anything? Additionally, if there is, is there also a way to whitelist particular extensions?

解决方案

It's not possible. At the web server end, you are only only able to control what the browser will allow you to control. In simple terms, this means you can control the data (HTML, javascript, headers etc) that you send back to it. That's about it.

这篇关于阻止Chrome扩展程序在我的网站上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆