Right Click Protection - Hlelp - Please?

Discussion in 'JavaScript' started by ElvisFan, Dec 17, 2005.

  1. #1
    Okay... I have a site that with a lot of images to which I hold the copyright. However, it seems these images are so exciting I found so many stolen on a weekly basis which costs me tons of bandwith... :(

    I have a right click disable which seems to work only when you view in IE however you can pinch images if viewing via Netscape...

    How do I add to my existing html to disable "right click" for all browsers... please... (I know that will not stop them all but most of the stolen images are stolen for blog sites and hopefully this should STOP some)

    Here is my existing code

    <script language="JavaScript1.1">
    <!-- var debug = true;
    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('ElvisPresleyNews is Copyright Protected');
    return false;}
    return true;}
    document.onmousedown=right;

    thanks...
     
    ElvisFan, Dec 17, 2005 IP
  2. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #2
    As soon as you disable the right click someone that wants it will go online and find out how to work around. Disabling right click is like waving a red flag in front of bull. When a friend of mine first saw it done we immediately started looking for work around.

    Shannon
     
    Smyrl, Dec 17, 2005 IP
  3. ElvisFan

    ElvisFan Peon

    Messages:
    213
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have had "right click disable" on my site for awhile now... and it stopped a lot of people from stealing my images... all I want is to be able to let people know

    1. that my images are copyright to my site
    2. stop some of those bloggers from stealing
    3 disable for all browsers not just IE

    thanks,
     
    ElvisFan, Dec 17, 2005 IP
  4. Smyrl

    Smyrl Tomato Republic Staff

    Messages:
    13,740
    Likes Received:
    1,702
    Best Answers:
    78
    Trophy Points:
    510
    #4
    I understand not wanting images stolen. Have you considered watermarking? Also have you disabled hotlinking?

    Shannon
     
    Smyrl, Dec 17, 2005 IP
  5. Colleen

    Colleen Illustrious Member

    Messages:
    6,777
    Likes Received:
    725
    Best Answers:
    1
    Trophy Points:
    430
    #5
    ElvisFan, do you have a cpanel with your hosting? If so you can enable "HotLink Protection" This will only allow your domain and any others you specify to be able to link to your images.

    They can still steal of course, this will just stop them from using your bandwidth by directly linking to your files, any blogs directly linking right now would end up with a little red "x" displaying instead. ;)
     
    Colleen, Dec 17, 2005 IP
  6. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #6
    If someone wants to 'steal' your images, a simple view source will do.
    As soon as you put it online, people can and therefore will steal your image. I used to have a site with a similar problem. I added (width x 16) box to all images, and put a " (c) sitename . com " text in it. That is not confusing to existing users, and if someone wants te rip it, they have to remove that part which makes it time consuming and they will look elsewhere for the pictures :) worked out ok for me.
     
    frankm, Dec 17, 2005 IP
  7. Skinny

    Skinny Peon

    Messages:
    1,864
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #7
    I agree with FrankM.

    If you don't want it stolen don't put it online. View source is great. And what's worse is they will link right to your site stealing your bandwidth.

    Remember there are work-arounds to everything.

    Skinny
     
    Skinny, Dec 17, 2005 IP
  8. frankm

    frankm Active Member

    Messages:
    915
    Likes Received:
    63
    Best Answers:
    0
    Trophy Points:
    83
    #8
    I got a client that wanted me to block image stealing from his site: money was no problem. So we (the team) spended a whole day thinking of possible sollutions. cookies, session ids , you name it. but the end result was: As long as you are able to see it in your browser, it will be stored somewhere in your cache (/windows/temporary documents etc)

    Finally some bright genious came up with this: Create an SWF file for all images that shows the image and nothing more. If the referrer is something strange, then show the image but after 5 seconds show that this image is copyrighted etc. etc.

    Still people are taking screen dumps from that site, but they are not simply hot linking or copying GIF files.
     
    frankm, Dec 17, 2005 IP
  9. 313i

    313i hummmmmm. No clue

    Messages:
    1,338
    Likes Received:
    73
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Those are both good ideas, the problem with disabling right click is it really is a wast of time. Watermarks and hotlink protection will stop it. If you don't and do use the right click disable, all someone has to do is view your html, past it in their editor and get the url to the images.

    You can secure your html with this product http://www.antssoft.com/htmlprotector/ I've never tried it but it sounds pretty cool!
     
    313i, Dec 19, 2005 IP
  10. SEOboard

    SEOboard Peon

    Messages:
    51
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #10
    You cant stop picture stealing they will just view source or a work around. Like said why not watermark too. and prevent hotlinking.
     
    SEOboard, Dec 19, 2005 IP
  11. forkqueue

    forkqueue Guest

    Messages:
    401
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #11
    Watermark your images, mod_rewrite to stop hotlinking.

    Don't waste your time with right click 'protection' or html 'encryption' - they're ineffective and pointless.
     
    forkqueue, Dec 19, 2005 IP
  12. tony84

    tony84 Well-Known Member

    Messages:
    1,864
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    140
    #12
    change the name of your images
     
    tony84, Dec 19, 2005 IP
  13. Djohn

    Djohn Peon

    Messages:
    75
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #13
    Also, blocking right-clicking is really annoying for people using the right-click menu for navigation and 'open link in a new window'.
     
    Djohn, Dec 19, 2005 IP