Home   News  Product reviews  Website reviews  Forums   Competitions  Subscribe 


Web Building >> Web design & build
 |  Print Topic
Jump to first unread post. Pages: 1
Anonymous
Unregistered




Disable right click
      #1090 - Mon Jun 16 2003 08:28 PM

Try using


galleryimg="no"


Post Extras: Print Post   Remind Me!   Notify Moderator  
DavidC
regular


Reg'd: Sat
Posts: 46
Re: Disable right click [Re: Anonymous]
      #1353 - Thu Jun 19 2003 11:14 PM

Thanks, but whereabouts do I put it? I've tried a few ways but without any luck. Your help would be truly appreciated!

David


Post Extras: Print Post   Remind Me!   Notify Moderator  
mjsayles
Unregistered




Re: Disable right click [Re: DavidC]
      #3692 - Sun Jul 27 2003 08:50 AM

The following javascript in your source code will bring up an alert box when the user right-clicks:

Alt = "PUT YOUR ALERT WARNING IN HERE";
IsNS = navigator.appName=="Netscape"
IsIE = navigator.appName=="Microsoft Internet Explorer"
Ver = parseInt(navigator.appVersion)
function DoIt(a) { if (IsNS&&a.which>1) { alert(Alt); return false }
else if (IsIE&&(event.button >1)) { alert(Alt); return false; } }
document.onmousedown = DoIt;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (IsNS&&Ver<5) window.onmousedown = DoIt;

This code (unlike may others) will also work when the visitor holds down the left mouse button when right-clicking.

The following meta tag will get rid of the image toolbar (put it in the head of your document):

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

You can see them in action at http://www.lakelandscape.co.uk

Hope this helps.

Michael Sayles


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jonny555



Reg'd: Fri
Posts: 5279
Loc: Cheshire, England
Re: Disable right click [Re: Anonymous]
      #3702 - Sun Jul 27 2003 11:39 AM

Thing is when you disable right click you also stop viewers from using the other items on the menu. This can loose potential return visits. Also, the viewer only has to use the View/source from the menu bar to see the source code anyway.

If they want any graphics from the page they will perform a screen dump. All in all I don't see the point in disabling the right click.

If you want to put the code in anyway, put into the body of the html.
http://www.jonny555.co.uk

The best amateur watercolour community on the net.


Post Extras: Print Post   Remind Me!   Notify Moderator  
safeTsurfa
regular


Reg'd: Mon
Posts: 693
Re: Disable right click [Re: mjsayles]
      #3752 - Mon Jul 28 2003 12:45 AM

It doesn't work, I can and have bypassed all such codes inside of a few seconds. The code runs once only until you reset the alert box. So leave the box open then click again, the alert fails. That's assuming enter+click together didn't break it first time anyway.

Bottom line, you cannot protect pages this way, all elements are cached by the browser, so can be taken from there. You turn off caching, I'll bring in my tiny DOS downloader and steal the piccys that way, and unless you used server side code to stop it by naming my program, it will bypass anything you used to block with. If you did manage to block that, I'd do a screen dump then work with it to crop out the images, which you can never stop.

The general rule is, if you don't want it taking, don't put it up there.
safeTsurfa
Stay alert! Stay safe! Stay alive!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Anonymous
Unregistered




Re: Disable right click [Re: safeTsurfa]
      #3786 - Mon Jul 28 2003 11:39 AM

Yes, I know the only way to prevent image 'theft' is to not put them up there in the first place, and I know all methods have their weaknesses. But putting up an alert box when the user right-clicks acts as a reminder that the images are copyrighted. If this doesn't stop people from taking the images then OK, but it can be used as evidence that visitors were alerted to the presence of copyright in any dispute.

Plus, a lot of web-users aren't aware of the various ways around a disabled right-click - I asked some colleagues how they'd copy an image off a website if they couldn't right-click and they didn't know how. So if the code stops one person from stealing a pic then it's worth it.

Not everybody surfing the www is a web-wizard.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Anonymous
Unregistered




Re: Disable right click [Re: Anonymous]
      #3788 - Mon Jul 28 2003 11:43 AM

"So leave the box open then click again, the alert fails. That's assuming enter+click together didn't break it first time anyway"

The code above works even when the visitor holds down the left button when right-clicking - this is effectively exactly the same as enter+click!

As for leaving the box open and clicking again - I've tried and I don't see how the alert fails? You can't do anything until you OK the alert.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jonny555



Reg'd: Fri
Posts: 5279
Loc: Cheshire, England
Re: Disable right click [Re: Anonymous]
      #3859 - Mon Jul 28 2003 08:19 PM

All you need to do to make people aware the website content is copyrighted is to place a copyright marking at the bottom of each page, just like at the bottom of this and every Web-User page.

My site carries lots of paintings and each one is signed to establish copyright and each page has the copyright warning.
http://www.jonny555.co.uk

The No.1 amateur watercolour community on the net.


Post Extras: Print Post   Remind Me!   Notify Moderator  
safeTsurfa
regular


Reg'd: Mon
Posts: 693
Re: Disable right click [Re: Anonymous]
      #3872 - Mon Jul 28 2003 08:45 PM

Set up a page for me to test? I visited that lakeland site that was cited, and took three sample images from there using the method I described. So either the code does indeed fail, or the example given was a poor one. :)
safeTsurfa
Stay alert! Stay safe! Stay alive!


Post Extras: Print Post   Remind Me!   Notify Moderator  
Anonymous
Unregistered




Re: Disable right click [Re: safeTsurfa]
      #4509 - Fri Aug 01 2003 11:30 PM

OK, explain EXACTLY how you took the images from the site, because doing what you described above doesn't work.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Sam
regular


Reg'd: Tue
Posts: 430
Re: Disable right click [Re: Anonymous]
      #4611 - Sat Aug 02 2003 08:44 PM

Defeating scripts like that is no mystery... it's just that it's not exactly common knowledge. Some work better than others and that particular one can be defeated just by keeping the right mouse button depressed while canceling out the pop-up with the left.

All you can do is to try and make it less easy (for want of a better phrase) for your visitors to take them or make them less attractive by adding you site URL on an important part of the image. You're never going to stop everyone from taking your images but you will stop a few that way.

My own favourite methods are to put a transparent image over the top of the main image so that they save nothing, or splitting up the image into small sections with a program like Splitz... http://www.b-zone.de/software/splitz.htm That way they'll just save a little bit of the image unless they do a screen grab... and most people wouldn't even know that they hadn't got the whole thing until they went back to the image later.

Just my 2 pence worth :)


Post Extras: Print Post   Remind Me!   Notify Moderator  
itsjustme
new user


Reg'd: Sat
Posts: 1
Re: Disable right click [Re: Sam]
      #247548 - Sat Dec 24 2005 08:58 PM

you might find this interesting http://www.web-wise-wizard.com/javascript-tutorials/disable-right-click.html This also explains disable printing , disable copy and paiste, redirecting those who disable javascript so they can get to your stuff, diabling context menu, disabling image bar etc etc

Edited by itsjustme (Sat Dec 24 2005 09:06 PM)


Post Extras: Print Post   Remind Me!   Notify Moderator  
greystsModerator
regular


Reg'd: Thu
Posts: 17424
Loc: Colchester
Re: Disable right click [Re: itsjustme]
      #247584 - Sun Dec 25 2005 10:09 AM

I'm sure there must be a good reason for resurrecting a two year old thread but I can't quite see what it is.

In any case the link has the following at the top
Quote:

Before we start exploring these different methods we would sound a note of caution. If you are publishing your work on the World Wide Web and you use the methods outlined on this page and elsewhere, then you can stop most of the abuses most of the time but not all of the abuses all of the time. If someone is intent on grabbing your work and they have enough knowledge then they can probably do so.



which seems to repeat the advice already given, if you don't want people to copy your images, don't put them on the Web in the first place.

--------------------


Do you know that we're all in line for succession to the throne? Really?
Well, if forty-eight million, two hundred thousand, seven hundred and one people died I'd be Queen.


Post Extras: Print Post   Remind Me!   Notify Moderator  
TheFatControlleRAdministrator
Forum Admin


Reg'd: Fri
Posts: 6453
Loc: Megatripolis
Re: Disable right click [Re: itsjustme]
      #247592 - Sun Dec 25 2005 11:20 AM

Quote:

... diabling context menu...




They're little devils those context menus.

--------------------
TFC
'Going to trial with a lawyer who considers your whole life-style a Crime in Progress is not a happy prospect.' - Hunter S Thompson (1937-2005)


Post Extras: Print Post   Remind Me!   Notify Moderator  
greystsModerator
regular


Reg'd: Thu
Posts: 17424
Loc: Colchester
Re: Disable right click [Re: TheFatControlleR]
      #247594 - Sun Dec 25 2005 11:27 AM

I thought it was only me and Fusion who had nothing better to do on Christmas Day. Why haven't you started drinking yet?

--------------------


Do you know that we're all in line for succession to the throne? Really?
Well, if forty-eight million, two hundred thousand, seven hundred and one people died I'd be Queen.


Post Extras: Print Post   Remind Me!   Notify Moderator  
TheFatControlleRAdministrator
Forum Admin


Reg'd: Fri
Posts: 6453
Loc: Megatripolis
Re: Disable right click [Re: greysts]
      #247603 - Sun Dec 25 2005 11:56 AM

Bah, Humbug!!

I know it's an abomination for someone not to drink in this country these days, but I don't (apart from the occasional glass of red or port). I did enough drinking in my teens and 20's to last a lifetime.

However, that's not to say I have no vices or bad habits.

--------------------
TFC
'Going to trial with a lawyer who considers your whole life-style a Crime in Progress is not a happy prospect.' - Hunter S Thompson (1937-2005)


Post Extras: Print Post   Remind Me!   Notify Moderator  
greystsModerator
regular


Reg'd: Thu
Posts: 17424
Loc: Colchester
Re: Disable right click [Re: TheFatControlleR]
      #247711 - Mon Dec 26 2005 10:55 AM

Funny you should say that. Now I've reached the grand old age of 62 more than one glass of red wine sends me to sleep! Like you, I had my fill in my early years. Can't see the point now.

--------------------


Do you know that we're all in line for succession to the throne? Really?
Well, if forty-eight million, two hundred thousand, seven hundred and one people died I'd be Queen.


Post Extras: Print Post   Remind Me!   Notify Moderator  
Jonny555



Reg'd: Fri
Posts: 5279
Loc: Cheshire, England
Re: Disable right click [Re: greysts]
      #247716 - Mon Dec 26 2005 11:29 AM

I had a glass of Baileys last night and discovered I can no longer take a drink! Extremely annoying as I love the taste of Baileys.

Post Extras: Print Post   Remind Me!   Notify Moderator  
Pages: 1

Rate this topic

Jump to


Extra information
0 registered and 10 anonymous users are browsing this forum.

Moderator:  putasolutions, Joe_London, greysts, bricat, Nanook, Hello_There, John_McKenna, Mouse, TheFatControlleR, kimhollamby 


Print Topic

Forum Permissions
      You cannot start new topics
      You cannot reply to topics
      HTML is disabled
      Mark-up is enabled

Rating:
Topic views: 65

Contact Us | Privacy statement Main website