停止所有网络浏览器的打印屏幕 [英] Stop print Screen for all web browser

查看:75
本文介绍了停止所有网络浏览器的打印屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我需要您的帮助,我已经建立了一个网站进行安全防护,我想禁用打印功能
IE,Firefox,Safari,Google chrome等所有浏览器的屏幕按钮.


请在Asp.net中提供解决方案

谢谢
Pradeep Mishra

Dear All,

I need your help,I have made a website for security resion I want to disable a print
screen button for a all browser like IE,Firefox,Safari,Google chrome ..


Please provide the solution in Asp.net

Thanks
Pradeep Mishra

推荐答案

您无法阻止该键被系统按压或看到.您拥有的所有链接都试图通过拦截剪贴板操作来避免此问题.打印屏幕键的默认行为是将屏幕图像放置在剪贴板上.这些解决方法将覆盖剪贴板的内容,从而删除屏幕图像.

但是,这并不会阻止任何人安装一些不使用剪贴板的屏幕抓取器实用程序,几乎全部使用了剪贴板.


简而言之,您无法阻止某人从您的HTML页面中获取您网站的屏幕图像.

我唯一能想到的MIGHT效果(并非在所有情况下都可以!)是编写一个ActiveX控件,您的站点必须安装在客户端工作站上才能使用您的网站.该控件必须安装一个全局键盘钩子,您可以在其中拦截并吃掉表示按下打印屏幕的消息.但这甚至可以解决,因为某些屏幕抓取器将允许您自定义用于告诉他们进行快照的击键.
You cannot stop the key from being pressed nor seen by the system. The links you have all try to circumvent this problem by intercepting clipboard operations. The default behavior of the print screen key puts a screen image on the clipboard. These workarounds overwrite the contents of the clipboard, thereby erasing the screen image.

But, that doesn''t stop anyone from installing some screen grabber utility that does not use the clipboard, which is pretty much all of them.


In short, you cannot stop someone from grabbing a screen image of your website from your HTML page.

The only thing I can think of that MIGHT work (and not in all situations!) is to write an ActiveX control that your site has to install on the clients workstation in order to use your website. This control would have to install a global keyboard hook where you can intercept and eat the message that says the print screen was pressed. But even this can be gotten around since some screen grabbers will let you customize the keystrokes used to tell them to take a snapshot.


解决方案是您无法控制正在运行的任何内容在浏览器之外,这也是Windows端发生的事件,几乎不可能通过任何浏览器事件来完成.
The solution is you can not control anything that''s running out of the browser, also its a event that occur at windows side which is almost not doable via any browser events.


几乎是不可能的,但请查看
Almost impossible but take a look at this thread[^] and follow the link (2nd bottom)


这篇关于停止所有网络浏览器的打印屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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