We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

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

  • 5 תגובות
  • 1 has this problem
  • 4 views
  • תגובה אחרונה מאת 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).