Disable right click ... - Page 1

User 449718 Photo


Registered User
14 posts

How do I disable the right-side mouse button ... i.e., the ability for someone to copy pieces/parts of a webpage?

Is there a "protect page" or "protect image" (probably another term) that enables me to "protect" a page or image using VSD? using HTML Editor 2008? Other???

Example: go to http://www.cherylvotzmeyer.com/ ... then "right-click" anywhere on the page.

I am attempting to help an artist who would like to display a photo album of his paintings - in a high resolution so potential customers can see the quality of his work - but he wants to guard against pirates who would copy his paintings and print them.

Any ideas?

Thanks!
George
"Good judgment comes from experience ... experience comes from bad judgment"
User 355448 Photo


Ambassador
3,144 posts

You may want to click on profile and change your forum name to something other than your email address. No need to help the spammers locate you.

I visited that site, and I can right click and view the photo, save the photo, etc.

The best way to protect images is to put a watermark on all the images that are placed on the web. No matter what you try to do to keep viewers from stealing your work, there is a way around it. If you can view the image, you can use print-screen to save it to your computer. If you use a watermark, it becomes difficult to use the image without showing the watermark, but even with a watermark, a determined person could use a graphics program to remove the watermark.

I recently came across a tutorial on how to remove watermarks such as the date/time stamps on digital photos, and on the same site, was a tutorial on how to create a watermark that would allow the image to be viewed but would be difficult to remove. I think it was on about.com under web graphics section.

I imagine this is not the answer you want, but I doubt you will find a way to protect images from being pirated by determined thieves.
User 449718 Photo


Registered User
14 posts

Thanks ... you made me realize, once again, how IE is not "the browser". After your response, I looked at the site with Firefox, and, as you indicated, nothing was protected.

We are making each image a "mouse over" and choosing "resize" so the image is distorted. While it seems to work, it is a bit misleading to viewers who expect the mouse-over to link somewhere or do something. Even that seems to be "weak" protection.

Thanks for the response (and for making me wake up!).
George
"Good judgment comes from experience ... experience comes from bad judgment"
User 355448 Photo


Ambassador
3,144 posts

George,

After reading your message, I used IE6 to visit the site, and tried a right click and the warning message popped up. I have never used something like that.

Good luck on the site.
User 364143 Photo


Guest
5,410 posts

The only time the pop-up displayed was when I used IE. All Mozilla browsers and Safari allowed me to save the images.

If it's on the web - It is public domain. Simple as that.

Even if you embed it in Flash or whatever - if I want it, I can get it.

So if you don't want people to steal your artwork, don't put it on a public server.
CoffeeCup... Yeah, they are the best!
User 282670 Photo


Registered User
3,940 posts

Or save them in slices, small pieces.




User 128259 Photo


Ambassador
24 posts

I use the following code in VSD (it does work for both IE and FireFox)...All you have to do in VSD is put it in the Header HTML (Edit > Edit Header > Header HTML). You can also change where it says "This page is copy protected." to any verbiage you want your message to say...

Here's the code:

<script language="JavaScript">
var msg="This page is copy protected.";

function disableIE()
{
if (document.all)
{
alert(msg);return false;
}
}

function disableNS(e)
{
if (document.layers||(document.getElementById&&!document.all))
{
if (e.which==2||e.which==3)
{
alert(msg);return false;
}
}
}

if (document.layers)
{
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;
}

else
{
document.onmouseup=disableNS;document.oncontextmenu=disableIE;
}

document.oncontextmenu=new Function("alert(msg);return false")
</script>


You can see the code 'in action' on

http://www.collinsinteriors.biz
(on every page per the client's request.)

And here: http://www.masondixonghosthunters.com/Photos.html (just the one page for now)

And here: http://www.sassydesigns.org (various pages, depending on the content)

Those are three good examples of the code 'in action' changing the verbiage per site... :)

Like it's been mentioned before, the basic rule of thumb is if you don't want people 'taking' your images, don't put them on the internet - but at least we can deter those that aren't completely computer savvy with a Right-Click Protect, and to slow the others down if nothing else... ;)

Hope that helps!

Stacy
stacyuncorked.com
princessnagger.com
sassydolls.com

Dance like no one's watching...
Love like you'll never be hurt...
Sing like no one's listening...
And live like heaven on earth.
User 282670 Photo


Registered User
3,940 posts

Hi sassy,
that is a good code thanks, but if someone wants to get something off a site , they will.
Example if you go to in I.E.7 page view source we can.
Sorry, the best protection is not to put online what you dont want copied.




User 364143 Photo


Guest
5,410 posts

Yes, I've seen lots of javascript that works in IE and FF but I have found nothing that works on Opera.

Besides, If I want it, I'll just capture the screen and crop it.
CoffeeCup... Yeah, they are the best!
User 128259 Photo


Ambassador
24 posts

Bruce wrote:
Hi sassy,
that is a good code thanks, but if someone wants to get something off a site , they will.
Example if you go to in I.E.7 page view source we can.
Sorry, the best protection is not to put online what you dont want copied.

I absolutely agree - I tried to explain that to my clients who insisted on putting pictures on their web but wanted 'protection'...I let them know that if they don't want to risk them being 'taken', don't upload them! But adding copyright info on the page, as well as watermarking their images and adding the Right Click code seemed to make them feel better... >shrugs< ;) If someone wants something, they'll get it, that's for sure!
stacyuncorked.com
princessnagger.com
sassydolls.com

Dance like no one's watching...
Love like you'll never be hurt...
Sing like no one's listening...
And live like heaven on earth.

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.