Skip to main content
April 10, 2007
Question

Securing Content

  • April 10, 2007
  • 7 replies
  • 606 views
I am trying to write the code of out website, a fine art site and I need to secure the images, ie, prevent viewers from printing images of the dieplayed content. I have seen sites that will not allow the viewer to "Right Click" and select print. and expample is http://www.judyleonardphotography.com/ and select online proofing. this links to photobiz.com

This site uses CFM. I also sell photos and I need to be able to secure those images. this site will not respond to Print Screen or any of the normal methods of saving images from the web.

How could I do the same thing?
    This topic has been closed for replies.

    7 replies

    Inspiring
    April 11, 2007
    In that case for most of your everyday users, simply disabling the right-click contextual menu functionality will probably do the trick then. You'll have to do it with JavaScript, but there seem to be tons of resources listed in google under "javascript disable right click":

    http://javascript.internet.com/page-details/no-right-click.html
    April 11, 2007
    Tks for the replys. Most of ht einfo her I have already considered. There is an old addage that applys here as well.

    "Locks are only good for keeping honest people out." and for the most part, nost customers are in fact honest. I re-size all my images to a resolution of 70-100DPI and a sixz of 640x480. This size is fine for viewing images but causes tiling of prints above 2.5x3.5". Fortunately, most internet users are not aware of the workaround mentioned in the replys.

    Knowing that nothing in this world is sacred, the idea is to provide the best "Lock" I can. The idea is to frustrate the average user to the point of doing what they need to do to begin with.

    I am not familiar with "Flash" programing and implementation. I would appreciate any information that would help me in this endevour.

    Unfortunately, my CF skills are somewhat rusty (truth be know, I think the Nut is seized to the bolt!). I developed a couple of Apps but have not done anything for almost 3 years.
    Inspiring
    April 10, 2007
    As others have noted, there are various techniques you can apply but almost all can be defeated. For the example you gave us, it took me all of 15 seconds to get the photos so I could save or print them. The most practical suggestion is to display lower quality versions of the ones you sell, or put a watermark across it.
    Inspiring
    April 10, 2007
    You may also wanting to take a look at a solution in flash. That would probably get you around the right click issue, and even if they took a screenshot (which is going to be a problem no matter how you set up your tool), it would probably not be very high quality.
    April 10, 2007
    Consider using a watermark of your logo, company name, etc. on the images. Bottom line - if you don't want it copied, don't place it on the Web.
    Inspiring
    April 10, 2007
    You can include this CSS Script in your page

    <style type=text/css>
    @media print
    {
    .body { display:none }
    }
    </style>

    and set the class attribute of the body element as "body"... It will work...

    (But you cant prevent the user from using the "Print Screen" button)
    Inspiring
    April 10, 2007
    The right click and context menu restrictions are done via JS ... and JS can be implemented on any site regardless of base coding language (CF, ASP, ASPX, PHP, etc).

    If a user shuts off their JS they can access any site's items, so it is basically just a low level attempt to stop that type of action. Anyone with a little ingenuity can access and print anything on any site if they really want to.

    i.e. on the site you link to , I can still choose VIEW SOURCE from the browser menu, find the filename I need, and then browse directly to that image file in the browser ... allowing me to print or save the image as I want.