Forum Moderators: not2easy

Message Too Old, No Replies

OI! No right-clicky on my image!

Is there a way?

         

Bendy

10:00 pm on May 13, 2003 (gmt 0)

10+ Year Member



Is there a way of disabling the "right-click" options that appear when mousing over an object i.e. a .jpg image . . . thus making it a little more complex for the simpletons out there to nick the said image?

Macguru

10:06 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hope this helps

[billybear4kids.com...]

Longhaired Genius

10:27 pm on May 13, 2003 (gmt 0)

10+ Year Member



If someone likes your image enought to save it, you should be pleased.

Don't put effort into frustrating your visitors, there are plenty of more important things to work on.

drbrain

10:40 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Defeating this is easy with Mozilla:

View Page Info

Media Tab

click Save As...

EliteWeb

11:03 pm on May 13, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can also refresh the page and right click on the spot before the page finishes loading to get the menu.

kingkelly

1:08 am on May 14, 2003 (gmt 0)

10+ Year Member



arggggg people, you mean a no right-click script?

[codelifter.com...]

Birdman

2:39 am on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Actually, I would recommend using the background-image technique, as it doesn't tinker with the user's functionality and works for all modern browsers.

Style Sheet:

#pic-1{background-image: url(/images/pic-1.jpg); width: 150px; height: 200px;}

HTML:

<div id="pic-1"></div>

Notes: The image will still be vulnerable to savvy users, but at least it keeps the chumps out. Some older browsers will not render the images because of their lack of support for background-image.

keeper

2:44 am on May 14, 2003 (gmt 0)

10+ Year Member



I used a no-right click script once.

I ended up with a couple of people emailing me the images on my page, and telling me how my right-click script only worked on IE.

Mildly irritating.

I dumped the script and assumed the fact that anything I placed on the Internet may be nabbed by anyone who really wants it.

Birdman

3:03 am on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Keeper, you are definately right...if they really want it, they can get it. I also believe that in some instances it(using bg images, not IE script) can save site owners some serious bandwidth.

I sometimes find one of my images in a really busy forum and I'll bet 9 out of ten of the forum users have no clue what to do if they right click and can't get the image.

On the other hand, it's a real pain and as I'm typing this I just realized that in my Opera browser I can save the background image too so why even bother.

Jon_King

3:16 am on May 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Same here... it does work in NS and IE but not Opera.

Opera does not have a large user base so most surfers are covered. It may be worth the effort for some cases.

...although a page 'save as' gets around them all.

keeper

3:18 am on May 14, 2003 (gmt 0)

10+ Year Member



I just remembered another reason, not to implement the script. It disables the right-click - open in new window function, which I use quite a lot.

However, I have seen webmasters with framed sites disable that function as they dont want their framed pages appearing outside of the parent frame...

kingkelly

3:28 pm on May 14, 2003 (gmt 0)

10+ Year Member



Keeper, just press SHIFT while clicking the link.

I think Birdman had the right idea when he said use as bg image. Just make it the cell background of a 1x1 table. Although this may get a bit annoying.

Still, the no right click does pester off most thiefs. I just highlight the image, and goto file>properties and see what the image url is.

bunltd

4:16 pm on May 14, 2003 (gmt 0)

10+ Year Member



Keeper: I use right click open in a new window constantly, so sites that disable right click annoy me in the least case and in the worst cause me to leave. Macromedia's Exchange is now done in Flash, you can't right click and open in a new window - less usable, annoying? Definitely.

One of my bookmarklet/favlets opens a new window and lists all the images including their urls, sizes etc. Bottom line, if someone wants an image, they can get it. If you see it in your browser - you already have it. :) So why annoy your visitors?

LisaB

ncsuk

4:18 pm on May 14, 2003 (gmt 0)

10+ Year Member



No right click scripts dont work anyway.

If you right click and hold then left click and release usually the menu appears.

If it doesnt try again :)

Got bless Mozilla for being rubbish...

papabaer

6:13 pm on May 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Screen capture...

If you can see it... you can snag it.

papabaer

6:17 pm on May 15, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I also believe that in some instances it(using bg images, not IE script) can save site owners some serious bandwidth.

Amen to that Birdman! Nice extra little SEO tweak as well....

JonB

6:46 pm on May 15, 2003 (gmt 0)

10+ Year Member



yes,do this to trick this script:

left click on image and HOLD it,then right click while still holding left mouse button and menu will appear.works with most sites i visited and it is easy.

go to :
[billybear4kids.com...]
and try.

however,this one is tough,cant trick it with above trick:

[river-phoenix.org...]

papabaer

5:13 am on May 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



.js snippet from the river-phoenix site:

var ClickMessage="No options available.";
function clickIE4(){
if (event.button==2){
alert(ClickMessage);
return false;
}
}
function clickNS4(e){
if (document.layers¦¦document.getElementById&&!document.all){
if (e.which==2¦¦e.which==3){
alert(ClickMessage);
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(ClickMessage);return false")

Visited using Opera 7 - full right click menu available.

WarmGlow

6:19 am on May 17, 2003 (gmt 0)

10+ Year Member



Is there a way of disabling the "right-click" options that appear when mousing over an object i.e. a .jpg image...

It looks like you are referring to the MSIE 6 Image Toolbar which can be disabled by adding the following meta element:

<meta http-equiv="imagetoolbar" content="false">

Please see: [microsoft.com...]

grahamstewart

9:10 am on May 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As papabaer says, there is NO way to fully protect your images. You can disable all right click and use as many fancy scripts as you like. You can even use a Java applet to display the image so that users can't get at the source.

But if it gets displayed on screen then it can always be captured. This is as easy as pressing Alt+PrintScreen to copy the entire window to your clipboard.

Instead..

  • protect your images legally using copyright laws.
  • consider adding a digital watermark to them so you can prove people are nicking them.
  • consider modifying .htaccess to prevent other sites linking to your images and stealing your bandwidth.
  • jrobbio

    1:58 am on May 18, 2003 (gmt 0)

    10+ Year Member



    JonB, that bottom link you posted was no match for simply clicking on the picture and dragging it to the address bar. Such a sweet and simple trick and I haven't found a way to prevent it.

    (edit)Actually, if you do a combination of those two sites then its pretty secure since a lot of the images on the other site were links the image does not appear by dragging it to the toolbar). Who wants to have all their images as links though?

    Knoopss

    10:10 am on May 18, 2003 (gmt 0)

    10+ Year Member



    it's hard to protect anything on the Internet, but at least you can make it funny:
    Place your image as background and put above it a transparent image.
    So when they right-click and save it, will find a trans image.

    mincklerstraat

    11:37 am on May 18, 2003 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    Knoops: very clever, humorous too! Imagine the puzzlement!

    Jared

    8:30 pm on Jun 5, 2003 (gmt 0)



    Here is the bottom line. If you see the picture on your machine, the file is on your computer, and you now own it. The no right click is easy to defeat in any browser. In IE just simply right click and hit enter at the same time, and you will get the context menu.

    If they have body.onload context menu=false

    then dump your browser cache, and reload the page and copy it out of your cache. or do "save page as"

    The only image that is copy protection fool proof, is the ones that get embedded into a java applet. But of course you can do a screen capture on that as well.

    JonB

    8:34 pm on Jun 5, 2003 (gmt 0)

    10+ Year Member



    Knoopss,there is always this easy way - press print-scrn then copy paste to PSP etc :)

    TGecho

    3:28 pm on Jun 6, 2003 (gmt 0)

    10+ Year Member



    Whenever I find out a site has tried to prevent saving their images or viewing their source, I usually grab out of pure spite :) There's always a way. For images the simplest way is usually Print Screen.

    eggy ricardo

    1:23 pm on Jun 7, 2003 (gmt 0)

    10+ Year Member



    I agree with most of the things mentioned above...

    THERE IS NO WAY TO REALLY PROTECT STUFF ON THE NET

    U see it - u've got it.
    Print screen nearly always works
    However, u can deter non-persistant theifs using the scripts mentioned although as other people have said this gets annoying with the 'open in new window' function difficult to get at.

    gingerbreadman

    1:32 pm on Jun 7, 2003 (gmt 0)

    10+ Year Member



    If you don't want people to steal your images. Print them out and put them on the wall not on the net.

    TGecho

    7:51 pm on Jun 7, 2003 (gmt 0)

    10+ Year Member



    "If you don't want people to steal your images. Print them out and put them on the wall not on the net."

    Now there's a good idea

    CritterNYC

    6:07 pm on Jun 8, 2003 (gmt 0)

    10+ Year Member



    Disabling JavaScript always gets you your right-click menu back. Using Mozilla as your browser and adding in the PrefBar [xulplanet.com] makes this a snap. F8 toggles the PrefBar into view and it gives you options to Enable/Disable Colors, Images, JavaScript, Java, Popups, etc on the fly. It even has options to resive the browser window to 800x600 (etc) and kill flash animations. This makes disabling JavaScript temporarily on a page a breeze.