|
|
Anonymous
Unregistered
|
|
Try using
galleryimg="no"
|
|
DavidC
regular
Reg'd: Sat
Posts: 51
|
|
Thanks, but whereabouts do I put it? I've tried a few ways but without any luck. Your help would be truly appreciated!
David
|
mjsayles
Unregistered
|
|
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
|
Jonny555
Reg'd: Fri
Posts: 5331
Loc: Cheshire, England
|
|
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.
|
safeTsurfa
regular
Reg'd: Mon
Posts: 693
|
|
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!
|
Anonymous
Unregistered
|
|
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.
|
Anonymous
Unregistered
|
|
"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.
|
Jonny555
Reg'd: Fri
Posts: 5331
Loc: Cheshire, England
|
|
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.
|
safeTsurfa
regular
Reg'd: Mon
Posts: 693
|
|
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!
|
Anonymous
Unregistered
|
|
OK, explain EXACTLY how you took the images from the site, because doing what you described above doesn't work.
|
Sam
regular
Reg'd: Tue
Posts: 432
|
|
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 :)
|
itsjustme
new user
Reg'd: Sat
Posts: 1
|
|
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)
|
greysts
regular
Reg'd: Thu
Posts: 18158
Loc: Colchester
|
|
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.
|
TheFatControlleR
Forum Admin
Reg'd: Fri
Posts: 6805
Loc: Megatripolis
|
|
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)
|
greysts
regular
Reg'd: Thu
Posts: 18158
Loc: Colchester
|
|
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.
|
TheFatControlleR
Forum Admin
Reg'd: Fri
Posts: 6805
Loc: Megatripolis
|
|
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)
|
greysts
regular
Reg'd: Thu
Posts: 18158
Loc: Colchester
|
|
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.
|
Jonny555
Reg'd: Fri
Posts: 5331
Loc: Cheshire, England
|
|
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.
|