如何保护要从网站下载到客户端计算机的图像 [英] How to protect images to be downloaded from the website to client machine

查看:101
本文介绍了如何保护要从网站下载到客户端计算机的图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以对网站页面设置以下限制;
1)右键单击图像,不应存在另存为图像的选项.
2)如果有人通过从浏览器中另存为来保存页面,则图像不应保存在用户计算机上.

Is it possible to put following restrictions on website pages;
1)On right clicking the image, option of save as image should not be there.
2)If somebody save the page by save as from browser,images should not be saved on user machine.

推荐答案

您不能使用纯html/http来做到这一点-因为如果它具有url,则任何http客户端都可以获取它,而不仅仅是浏览器.但是也可以禁用javascript,拦截http流量等.
唯一的选择(并非完全安全)是使用自定义浏览器插件或小程序(silverlight,javafx,flex,flash或其他任何一种),它们为自定义(加密,加扰)图像容器实现查看器.这可以从服务器获取正确准备的/生成的图像数据并显示出来.但是,由于它将包含所有逻辑并且将在客户端运行,因此将受到反向工程的影响.而且,您不能阻止任何人捕获屏幕.
You can not do that with pure html/http - since if it has an url, any http client can fetch it, not only a browser. But one can also disable javascript, intercept http traffic and so on.
The only option (not totally secure trough) is to use a custom browser plugin or applet (silverlight, javafx, flex, flash or whatever), that implements a viewer for a custom (encrypted, scrambled) image container. This one could fetch the properly prepared/generated image data from the server and present it. But as it will contain all logic and will run on client side, will be exposed to reverse engineering for example. And you can not prevent somebody capturing the screen.


没有办法.如果您有时间学习Web的工作原理,那么您将自己理解它.这是一个纯客户端服务器.一切由HTTP服务器完成以响应HTTP请求.目前,用户可以看到某些图片,它已经在客户端上了.用户单击鼠标右键以获取上下文菜单,然后选择图像另存为";完成了.即使您尝试了一些肮脏的客户端技巧(例如禁用某些UI功能),也可能仅对一个完整的傻瓜感到麻烦.算了.

-SA
There is no way. You will understand it yourself, if you get yourself some time to learn how Web works. This is a pure client-server; and everything is done by the HTTP server in response to HTTP requests. At the moment a user can see some picture, it''s already on the client side. The user right-clicks to get a context menu, select "Save Image As"; and it''s done. Even if you try some dirty client-side tricks like disabling some UI features, it could be a hassle only for a complete moron. Forget it.

—SA




这篇关于如何保护要从网站下载到客户端计算机的图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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