搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

As a developer hwo do I stop users saving images from the page info screen

  • 5 个回答
  • 1 人有此问题
  • 4 次查看
  • 最后回复者为 cor-el

more options

For copyright reasons I do not wish users to be able to locally save images presented on my web page. I can prevent Firefox and other browsers caching the image and prevent 'right click / save image' from working but I can't see any way to prevent a Firefox user from simply selecting page-info / media and saving the image. I'm using a handler to serve the image so the url of the image is not reusable out of the page's context but the page info functionality is obviously accessing the already downloaded image rather than going back to the server.

Can you explain how I can prevent this save functionality?

For copyright reasons I do not wish users to be able to locally save images presented on my web page. I can prevent Firefox and other browsers caching the image and prevent 'right click / save image' from working but I can't see any way to prevent a Firefox user from simply selecting page-info / media and saving the image. I'm using a handler to serve the image so the url of the image is not reusable out of the page's context but the page info functionality is obviously accessing the already downloaded image rather than going back to the server. Can you explain how I can prevent this save functionality?

所有回复 (5)

more options

hello Alan_VB, due to how the web works this won't be possible to prevent. people can always view the source code of a page and extract/download selected resources.

more options

If you are very much concern about copyright, then you can make a flash website instead of using html. But there also, screen shots and other tools are avaliable to fetch the image from screen. So, there is not much you can do about it.

由Nikhil John于修改

more options

Or place watermarks on your images. Or better yet, license them under CC!

more options

I've built a ashx handler that only serves the image if the request comes from within one of my site's pages and I've also given it a parameter that will invalidate when the page is reloaded so taking the url from the source code isn't going to help anyone - I admit I can't do anything about screen capture but the page-info / media / save thing just makes it too easy to download the image I thought the mechanism would require a round trip to the server but it doesn't and the image shouldn't be cached since the source has query parameters.

I appreciate that I'm never going to be able to 100% prevent image theft but I'd like it to be less than trivially easy and this functionality as presented make it very simple for anyone with the slightest knowledge to get a good copy of the image (though I have water-marked it as well)

more options

You would have to serve images by using a plugin like Flash that can retrieve the images via a secure connection to prevent or at least makes it more difficult for visitors to save the images (they could still make a screenshot).