Този сайт ще има ограничена функционалност, докато се извършва тече неговата поддръжка. Ако дадена статия не може реши проблема ви и искате да зададете въпрос, нашата общност е готова да ви помогне на @firefox в Twitter и /r/firefox в Reddit.

Търсене в помощните статии

Избягвайте измамите при поддръжката. Никога няма да ви помолим да се обадите или изпратите SMS на телефонен номер или да споделите лична информация. Моля, докладвайте подозрителна активност на "Докладване за злоупотреба".

Научете повече

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).