Disable browser save as command

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Blackmore
    New Member
    • Mar 2007
    • 25

    #1

    Disable browser save as command

    I would like to protect the content of my web-site pages. Does anyone know how to disable the 'File->Save As' command on a web-browser.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Sorry that's not possible with Javascript.

    If you want to protect images, watermark them.

    Comment

    • pbmods
      Recognized Expert Expert
      • Apr 2007
      • 5821

      #3
      Heya, Blackmore.

      The problem with what you are asking is that in order for your browser to view an image, it has to first download the file and save it into your browser's cache folder!

      So even if you could disable the 'Save As' command (which could be bypassed simply by turning off JavaScript anyway!), a determined thief could still grab the image from his browser cache.

      As Acoder mentioned, the only reliable method for protecting your images is to watermark them, or else to only provide a low-quality preview version.

      Comment

      • jx2
        New Member
        • Feb 2007
        • 228

        #4
        Originally posted by Blackmore
        I would like to protect the content of my web-site pages. Does anyone know how to disable the 'File->Save As' command on a web-browser.
        dont listen to them :-) they are right but there is many ways to deal with problems - but if you ask fo simply solution there is nosimply solution in this case

        what r you going to protect? text? images?

        jx2

        Comment

        • Blackmore
          New Member
          • Mar 2007
          • 25

          #5
          Originally posted by jx2
          dont listen to them :-) they are right but there is many ways to deal with problems - but if you ask fo simply solution there is nosimply solution in this case

          what r you going to protect? text? images?

          jx2

          To be honest, I want to be able to protect just about everything on my website, including the html content of my pages. Therefore, I want to be able to prevent users from saving the webpage on there hard discs.

          I have seen some websites that appear to disable the 'Save As' command on a browser and I want to include this feature on mine.

          Regards

          Blackmore

          Comment

          • pbmods
            Recognized Expert Expert
            • Apr 2007
            • 5821

            #6
            Heya, Blackmore.

            You may want to consider using encrypted PDFs that allow the User to view, but not edit, the contents.

            Attempting to 'secure' HTML is simply not a realistic goal, due to the nature of the beast. Your code has to get sent in an open format that any browser can read, and even if you could disable the 'save as' command (which I guarantee you would ONLY work in Internet Explorer anyway), anybody could circumvent your safeguards by disabling JavaScript, pulling the data straight from the cache, using cURL... just to name the three ideas that came to mind most quickly.

            I think you really need to rethink your delivery model. If you want to protect your content, then you need to deliver it via a protected medium.

            Comment

            Working...