如何防止用户下载或保存图像? [英] How to prevent user from downloading or saving an image?

查看:103
本文介绍了如何防止用户下载或保存图像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我有一个网页,我显示的图片很少。但我的问题是我不希望用户下载或保存这些图像。我可以对这些图像应用水印,但这是另一种选择。我还可以禁用右键单击,但如果用户保存页面会怎么样?

Well, i have a web page where i am displaying few images. But my problem is that i don't want user to download or save those images. I can apply watermark to those images but that is alternative option. I can also disable right click but what if user saves the page?

任何替代解决方案也可以吗?

Any alternative solution will also do?

希望这个问题很明确?

推荐答案

如果用户可以看到图像,那么它已经在他的电脑上了。将其保存到文件或将其复制到剪贴板是微不足道的,不能以任何可靠的方式禁用。

If the user can see the image, it's already on his computer. Saving it to a file or copying it to the clipboard is trivial and cannot be disabled in any reliable way.

如果你想控制图像,不要把它放在互联网上。

水印是你能做的最好的。

If you want to keep control over the image, don't put it on the internet.
Watermarking is the best you can do.

这篇关于如何防止用户下载或保存图像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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