Results 1 to 7 of 7

Thread: Disable right click?

  1. #1
    Join Date
    Feb 2008
    Location
    Not telling! (sorry...)
    Posts
    48
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default Disable right click?

    I am working on a website that will allow me to sell my sister's and my artwork, but I don't want anyone taking the images any time they want. Is there code that I can put in a page to disable the right click or just make it so people can't save images off my site?

  2. #2
    Join Date
    Mar 2008
    Posts
    222
    Thanks
    10
    Thanked 3 Times in 3 Posts

    Default

    Hi there. i found 2 codes who you are looking for. But i suppose the second one is what you meant since you talk about images

    http://www.dynamicdrive.com/dynamicindex9/noright.htm
    http://www.dynamicdrive.com/dynamicindex9/noright2.htm

    Hope i guide you in the right direction

  3. The Following User Says Thank You to hyk For This Useful Post:

    Twilightrose917 (05-13-2008)

  4. #3
    Join Date
    Feb 2008
    Location
    Not telling! (sorry...)
    Posts
    48
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    yeah thanks they helped a lot. I think I'll use both of them, actually...

  5. #4
    Join Date
    Apr 2008
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    But, don't forget. Once the image is displayed by the browser, the image is in the client temporary internet files folder for free use. Also, once you pop the javascript alert they know you have disabled the click with javascript. So a user only has to simply disable scripting in IE to do whatever they want. Then there's the "View Source" option so even if the righ-click is disabled users can see the image path and get the image directly from the server. Even if you find ways around all this there is always "Alt-Print Screen" and then paste in your favorite graphics program.
    I've battled this many times in many ways, but there is no sure fire way around this.

    You could always watermark the images. To me that's the most difficult thing to remove from an image.

  6. #5
    Join Date
    Feb 2008
    Location
    Not telling! (sorry...)
    Posts
    48
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    But, don't forget. Once the image is displayed by the browser, the image is in the client temporary internet files folder for free use. Also, once you pop the javascript alert they know you have disabled the click with javascript. So a user only has to simply disable scripting in IE to do whatever they want. Then there's the "View Source" option so even if the right-click is disabled users can see the image path and get the image directly from the server. Even if you find ways around all this there is always "Alt-Print Screen" and then paste in your favorite graphics program.
    I've battled this many times in many ways, but there is no sure fire way around this.

    You could always watermark the images. To me that's the most difficult thing to remove from an image.
    um... I have NO idea what that 'client temporary internet files folder' thing is. Can you (or someone) explain please?

    and on the subject of disabling javascript and looking at the source... I don't think that most people know how to understand javascript, and I also think that most don't know how to disable it. And even if someone found the source, it's highly unlikely that they would be able to understand it well enough to get what they want out of it.

    Also - wouldn't the second link that hyk gave be a way to stop people from saving images? I guess I don't know for sure about that... But I do admit that there is no sure way to stop people from getting my images. I'm just trying to make sure that it isn't easy for them...

    I have considered the watermark idea though. My mom ran it by me and I think it would be the best way to protect them. I'm still going to disable right-clicking, however.

    thanks for the comments - you gave me a couple things to think about.

  7. #6
    Join Date
    Jun 2007
    Posts
    543
    Thanks
    3
    Thanked 78 Times in 78 Posts
    Blog Entries
    1

    Default

    instead of using th right click javascript, just put a transparent image on top of the image. When people right click save, they will only get the transparent image.
    [Jasme Library (Javascript Motion Effects)] My Site
    /\/\@§†ê® §©®¡þ† /\/\@|{ê®
    There are 10 kinds of people in the world, those that understand binary and those that don't.

  8. #7
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    If you put your images on the web, they can be stolen. It is absolutely impossible to stop someone, who has even just a bit of basic knowledge, from stealing ANY image on your site, no matter WHAT you do.

    This has been discussed many times, so feel free to search the archives; there was a thread yesterday, etc.
    I'm gonna close this now-- not that you did anything wrong, but, I promise, the answer is just that you will annoy users.

    (The idea by master_script_maker isn't bad, but it will only go as far as stopping the thieves who don't know much, which certainly won't be all of 'em.)
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •