简体   繁体   English

如何禁止 javascript 脚本?

[英]How can I forbid javascript scripts?

How can I forbid/stop an extension in my website?如何禁止/停止我网站中的扩展程序?

I have videos in my website and would like to have an idea on how I can stop download feature.我的网站上有视频,想知道如何停止下载功能。

Generally speaking - you can't.一般来说 - 你不能。

You can't dictate what browser extensions will or will not work on your site.您无法规定哪些浏览器扩展将在您的网站上运行或不运行。

Neither can you completely forbid video downloads.您也不能完全禁止视频下载。

I mean, if a user can perceive content of any type, she will be able to copy this content (text/video/sound).我的意思是,如果用户可以感知任何类型的内容,她将能够复制这些内容(文本/视频/声音)。

You can only try to make it harder, but you can't really protect it against a skilled user in the browser.您只能尝试使其更难,但您无法真正保护它免受浏览器中的熟练用户的侵害。

One popular way is to make content visible only for certain users (subscribed, logged-in, etc.).一种流行的方法是让内容仅对某些用户可见(订阅、登录等)。

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

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