|
|
|
|
![]() ![]() |
Apr 8 2005, 06:37 PM
Post
#1
|
|
|
End Of Computer Group: Members Posts: 346 Joined: 1-September 04 From: .:: MARS ::. Member No.: 28 |
I know that similar issues have been discussed in this forum,
and that someone with enough knowledge can get around the "right-click, View Source" issue. But I'd like to know the code to stopping the right click on my images, as hubby is trying to halt some of the stealing of his pictures online. If you could please help me with that code, I'd be really grateful. |
|
|
|
Apr 8 2005, 06:54 PM
Post
#2
|
|
|
Pretty please? Group: Members Posts: 733 Joined: 28-November 04 From: Holland Member No.: 1,552 |
It will and shall be never possible
Because you let them download the pictures anyway |
|
|
|
Apr 8 2005, 09:58 PM
Post
#3
|
|
|
Member [ Level 2 ] Group: Members Posts: 70 Joined: 1-April 05 From: Portugal Member No.: 3,485 |
QUOTE(soleimanian @ Apr 8 2005, 06:37 PM) I know that similar issues have been discussed in this forum, and that someone with enough knowledge can get around the "right-click, View Source" issue. But I'd like to know the code to stopping the right click on my images, as hubby is trying to halt some of the stealing of his pictures online. If you could please help me with that code, I'd be really grateful. Hi, to protectect your website content is no always easy. I found a very intersting website with in depth articles about this. Have a closer look here. I guess there you´ll find the right answer |
|
|
|
Apr 9 2005, 02:05 AM
Post
#4
|
|
|
Premium Member Group: Members Posts: 218 Joined: 14-March 05 From: Singapore Member No.: 3,041 myCENTs:92.74 |
If they're determined even embedding the picture in a flash file or putting the no-right-click script won't work, they'd just screencap the image. Javascript can be circumvented in many ways. There are so many freeware out there made for the sole purpose of screencapping. My suggestion would still be to put low-res versions of the images online, so that even if they are stolen they are not good enough to be used elsewhere.
Besides, the javascript annoys visitors. Most javascript annoys me. Trying to stay away as much as possible from it for my website at all times. But since you asked, might as well provide the answer. Did some googling for you. Try here, here[/URL and alternatively, another kind of script (actually it's a html attribute) that does a similar thing, but is much more potent, it blocks the context menu from ever popping up using the mouse or the keyboard (but still doesn't block the humble screen-cap button) [URL=http://javascript.about.com/library/blnoright.htm]here. Again a warning, I can pass you the links of tons of different scripts to prevent people from saving, and still you won't be able to foil most of the efforts, because the moment you put your images online, and just make it visible to other people, you've lost the battle. If they're determined even embedding the picture in a flash file or putting the no-right-click script won't work, they'd just screencap the image. Javascript can be circumvented in many ways. There are so many freeware out there made for the sole purpose of screencapping. My suggestion would still be to put low-res versions of the images online, so that even if they are stolen they are not good enough to be used elsewhere. Besides, the javascript annoys visitors. Most javascript annoys me. Trying to stay away as much as possible from it for my website at all times. But since you asked, might as well provide the answer. Did some googling for you. Try here, here and alternatively, another kind of script (actually it's a html attribute) that does a similar thing, but is much more potent, it blocks the context menu from ever popping up using the mouse or the keyboard (but still doesn't block the humble screen-cap button) here. Again a warning, I can pass you the links of tons of different scripts to prevent people from saving, and still you won't be able to foil most of the efforts, because the moment you put your images online, and just make it visible to other people, you've lost the battle. Notice from microscopic^earthling:
Consecutive posts merged.
|
|
|
|
Apr 9 2005, 02:20 AM
Post
#5
|
|
|
PsYcheDeLiC dR3aMeR Group: Admin Posts: 2,242 Joined: 29-January 05 From: Nakorn Chaisri, Thailand Member No.: 2,411 myCENTs:84.36 |
This is going to be great fun. While you guys are discussing techniques of turning off the context menu with the help of JavaScript, I'm going to provide you with a single line of code that can turn the context menu BACK ON, for sites that have it disabled... lol.. Just so that you guys know, how WEAK this form of protection is.
If you're using firefox, simply create a new bookmark button in your bookmark toolbar or inside the main bookmark organizer (wherever you feel comfortanle) - and in the location URL property of this bookmark, enter the following: javascript:void(document.oncontextmenu=null) - for me, I have an extra bookmark button on my toolbar, titled, "Enable Context Menu" with this piece of code as the URL. When you browse to a site which has disallowed the Right-Click Save menu, simply click on this button once and that's it - you'll be able to use the rt-click save again... Have fun |
|
|
|
Apr 9 2005, 02:43 PM
Post
#6
|
|
|
Advanced Member Group: Members Posts: 169 Joined: 19-January 05 Member No.: 2,221 |
I know that also at one point there was a FireFox extension to allow right click on websites.
|
|
|
|
Apr 14 2005, 02:29 AM
Post
#7
|
|
|
Member [ Level 2 ] Group: Members Posts: 62 Joined: 13-April 05 Member No.: 3,958 |
Unfortunately there is no real way to prevent people from taking images no matter what you do. People will always find a way to take them illegally. Maybe your husband should put copyright watermarks on the photos/pictures/graphics that he wants to claim as his own, but probably some known how to reconstruct the photo, so I do not really know what to tell you.
|
|
|
|
Apr 16 2005, 11:13 PM
Post
#8
|
|
|
Newbie [ Level 1 ] Group: Members Posts: 1 Joined: 16-April 05 Member No.: 4,066 |
CODE <script language=JavaScript> <!-- var message="no way, jose!"; /////////////////////////////////// function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") // --> </script> There's the html coding for disabling right click. Good luck! |
|
|
|
Apr 17 2005, 12:05 AM
Post
#9
|
|
|
Advanced Member Group: Members Posts: 160 Joined: 1-January 05 From: USVI Member No.: 1,961 |
I must agree that this kind of protection is useless against someone who know how to remove it, but it will stop the 60% to 80% of surfers who don’t know how.
I would suggest you use water mark text in your photos and still keep them in their highres format, and use the code if you want to. |
|
|
|
Apr 17 2005, 04:36 AM
Post
#10
|
|
|
Advanced Member Group: Members Posts: 143 Joined: 17-September 04 From: Seattle::WA Member No.: 670 |
QUOTE(Rudy @ Apr 16 2005, 05:05 PM) I must agree that this kind of protection is useless against someone who know how to remove it, but it will stop the 60% to 80% of surfers who don’t know how. I would suggest you use water mark text in your photos and still keep them in their highres format, and use the code if you want to. I agree watermarking is a way to stop a percentage of users who don't know how to remove the script, but i have actually reconstructed hundreds of watermarked images that didn't reduce image quality one bit.There is no way to stop images from getting stolen, but if sumone dosen't know the script, then it worked.. |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
Lo-Fi Version | Time is now: 23rd November 2008 - 04:58 PM |