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

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

问题描述

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

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?

推荐答案

这是不可能的.在 Web 服务器端,您只能控制浏览器允许您控制的内容.简单来说,这意味着您可以控制发送回它的数据(HTML、javascript、标题等).就是这样.

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天全站免登陆