Disable right click for images (no alert)

Discussion in 'HTML & Website Design' started by tdsii, Aug 12, 2011.

  1. #1
    tdsii, Aug 12, 2011 IP
  2. primitip

    primitip Active Member

    Messages:
    37
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    60
    #2
    do you want to prevent people from copying your images? sorry but you can't...

    on the above URL, I can copy the image by turning my browser's Javascript off
    or at the very least I can always print screen the page :p
     
    primitip, Aug 12, 2011 IP
  3. tdsii

    tdsii Member

    Messages:
    175
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    30
    #3
    i know this already bro, but the majority will give up just before trying. please stick to the subject
     
    tdsii, Aug 13, 2011 IP
  4. aliaydin

    aliaydin Greenhorn

    Messages:
    16
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    23
    #4
    i saw one. they are using another image same position with the image (a transparent gif 1x1 px and scaled in html to same of your image dimensions)
    users are see a blank gif who try to copy

    sorry my poor english, hope it'll help
     
    aliaydin, Aug 14, 2011 IP
  5. meltinzone

    meltinzone Member

    Messages:
    187
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    33
    #5
    There's quite a few sites I've come across now that are using this and it annoyed the hell outta me. Hence why I'm now also looking for a script.
    I know tumblr and a few other photo and shopping sites don't allow the right click for the image, my guess is there's a simple script on one of these sites with some easy code to put infront/in the img tag.
    I do believe most of these sites that currently use these type of scripts are for photos that are in some kind of 'security viewer'. Therefore for the general images it won't work.
    Though if anyone has anything else to offer/answer, even a springboard into the direction of how we might start scripting our own, then I too am all ears.
     
    meltinzone, Aug 15, 2011 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,845
    Likes Received:
    4,543
    Best Answers:
    123
    Trophy Points:
    665
    #6
    Remember that you need to right click to "open in new tab". You need a script that will still allow that.

    I'd also consider putting the images in a dynamic CSS file as a background for a specific div - and have the blank gif at the front. You'd have to use firebug to get the image and only really advanced users would know how.
     
    sarahk, Aug 15, 2011 IP
  7. Technoslab

    Technoslab Peon

    Messages:
    46
    Likes Received:
    3
    Best Answers:
    3
    Trophy Points:
    0
    #7
    Check it out labnol.org/internet/protect-photos-from-copying/19992/
     
    Technoslab, Aug 16, 2011 IP