简体   繁体   English

如何防止在网络浏览器中的网站上进行屏幕录制?

[英]how to prevent screen recording on a website in a web browser?

I am making an educational website for one of my clients and he demanded to implement a function that can prevent users to record the screen on the website because the website would have paid content and some Vimeo videos so he doesn't want to allow someone to steal his videos by doing screen record.我正在为我的一个客户制作一个教育网站,他要求实现一个功能,可以防止用户在网站上录制屏幕,因为该网站会包含付费内容和一些 Vimeo 视频,所以他不想让别人通过录屏窃取他的视频。 I know this can be done for android or IOS apps.我知道这可以为 android 或 IOS 应用程序完成。 being a react developer I can also implement this for android apps using expo.作为一名反应开发人员,我还可以使用 expo 为 android 应用程序实现此功能。 but the client wants to do it for a website on a web browser.但客户想在网络浏览器上为网站做这件事。 I've spent 4 hours, searching on the web, still am blanked because I didn't get a single solution.我花了 4 个小时,在网上搜索,仍然空白,因为我没有得到一个单一的解决方案。 can you please tell me how can I make it or even if it's possible or not?你能告诉我我该怎么做,或者即使它可能还是不可能?

Unfortunately, this doesn't appear to be possible.不幸的是,这似乎是不可能的。 Currently, there is no way for a browser to understand if someone is recording the screen.目前,浏览器无法了解是否有人正在录制屏幕。

It would be quite a security risk if a browser were able to identify something as simple as a screen recorder.如果浏览器能够识别像屏幕录像机这样简单的东西,那将是一个相当大的安全风险。 It would imply that a browser has far higher level permissions than it should have.这意味着浏览器拥有比它应该拥有的更高级别的权限。

You should convey this to your client.您应该将此传达给您的客户。 Sometimes clients simply don't understand the technology.有时客户根本不了解这项技术。

Some people are doing it by detecting specific extension/ shortcut keys, stealing focus/ pausing video when focus out, etc. Some people follow some stealth way (finding software bugs).有些人是通过检测特定的扩展/快捷键,偷焦点/焦点外暂停视频等来做的。有些人遵循一些隐秘的方式(发现软件错误)。 Also, some screen recorders may respect some meta/declaration.此外,一些屏幕录像机可能会尊重一些元/声明。 In this way, you may be able to prevent some common screen recorders but not all of them.这样,您也许可以阻止一些常见的屏幕录像机,但不是全部。

我不知道你们都在说什么,为什么不在评论之前做一点研究。有很多网站你不能屏幕记录,我只是在 Netflix 上试过,所以我在这里。

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

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