简体   繁体   English

如何防止响应式网站的屏幕截图?

[英]How to Prevent Screenshot for Responsive website?

I am creating a website, and facing some problem - 我正在创建一个网站,并且遇到了一些问题-
I want to Prevent Screenshot in Website when it is tested on Mobile Phone. 在手机上测试时,我想防止网站中的屏幕截图。
I used jQuery for Desktop view It's working fine but how to prevent in mobile 我使用jQuery进行桌面视图工作正常,但如何防止在移动设备中使用

Is it possible to prevent screenshot? 是否可以防止屏幕截图?

 function copyToClipboard() {
  var aux = document.createElement("input");
  aux.setAttribute("value", "print screen disabled!");      
  document.body.appendChild(aux);
  aux.select();
  document.execCommand("copy");
  // Remove it from the body
  document.body.removeChild(aux);
  alert("Print screen disabled!");
}

不可以,无法阻止手机截图。

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

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