Protecting Pictures

Discussion in 'Web Design and Development' started by JackT06, Nov 14, 2009.

  1. JackT06 macrumors 6502


    Jul 24, 2009
    What do you guys do to protect your images from being copyied and then people using it them selves. Here is my situation:
    Im starting a photography website but i want to protect all my photos so people at school cant copy them and then say that they took them.

    Many Thanks
  2. dkotter macrumors member

    Jul 30, 2009
    This script should do what you need. There might be easier ways but this is what I use:

    <SCRIPT LANGUAGE="JavaScript1.1">
    function right(e) {
    if (navigator.appName == 'Netscape' &&
    (e.which == 3 || e.which == 2))
    return false;
    else if (navigator.appName == 'Microsoft Internet Explorer' &&
    (event.button == 2 || event.button == 3)) {
    alert("©YOUR BUSINESS NAME");
    return false;
    return true;
    if (document.layers) window.captureEvents(Event.MOUSEDOWN);
    if (document.layers) window.captureEvents(Event.MOUSEUP);
    // End -->

    Just insert your own information in there and it should work.
  3. JackT06 thread starter macrumors 6502


    Jul 24, 2009
    Thanks that looks promising. Where do i put it though?

    Also what does this actually do?
  4. Aperture macrumors 68000


    Mar 19, 2006
    That script looks like it triggers a Javascript alert whenever they try and right click on the page (as if to try and save the pic). Keep in mind, however, there is no way to fully protect your work. There's no definite way to prevent theft.
  5. angelwatt Moderator emeritus


    Aug 16, 2005
    Don't use JavaScript. It's too easy to bypass and simply not worth the effort. If a person can see it, they can copy it. No way around that. Best option is watermark.
  6. Kwill macrumors 68000


    Mar 10, 2003
    There are several ways...

    1. Post pictures that are so lousy that no one would want to steal them. :D
    2. Superimpose a watermark over them (copyright symbol or logo).
    3. Place them all on a disc and register them with the copyright office for one fee as unpublished works (before publishing them).
    4. Javascript or Flash websites allow users to disable the Copy command.

    (People can always just take a screen shot.)
  7. bootedbear macrumors 6502


    Sep 13, 2004
    Austin, TX
    Anglewatt speaks wisely. Disabling right click doesn't do anything to protect your photos -- it just ticks off visitors to your site.

    Watermark your photos in a way that's hard to remove, and don't post full-resolution images.
  8. James L macrumors 6502a

    Apr 14, 2004
    So just to sum up, you CAN'T protect your pictures when they are online.


    In order for a person to view your website, the components of it are sent to their computer... which mean your pictures are on their computer.

    They can disable javascript defenses simply by turning off scripting.

    Worse case scenario they simply do a screen capture.

    As said above, put up low res sh*tty pictures, or watermark the hell out of them. Apart from that they are open game unfortunately.
  9. Dal123 macrumors 6502a


    Oct 23, 2008
    Check out my All I have done is what others have already mentioned by imposing a graphic watermark. The way I see it If others do copy my photo's it's pretty good advertisement for my company.
    Obviously they can work cover it with the airbrush but it really is a lot of work and don't think people will bother doing that :).

Share This Page