Got a little techonology problem that you need fixed pronto? Post it here and we'll see what we can do.
Topic locked

Image theft and disabling right clicks - HELP!

Sun Jun 19, 2005 9:24 pm

Can anyone please provide me the codes for preventing image theft and disabling right clicks? I've been to some forums and I can't find the help (the codes) I'm looking for.Please post the codes.Thank you.

Sun Jun 19, 2005 10:14 pm

Don't do that. If you're block right-clicks, you're just asking for someone to disable javascript especially for your website (and / or go find a better site). It won't stop anyone from stealing anything, and instead will just make people who wanted to right-click for a different reason less likely to like your site.

Just add a warning. Your average visitor is not a thief, and doesn't want to be treated as one.
(Check out http://www.sitepoint.com/article/dont-disable-right-click )


You can, of course, achieve the effect by placing the following inside head tags
Code:
<script language="JavaScript1.1">
// distributed by http://www,hypergurl.com
<!-- var debug = true;
function right(e)
{
if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2)) return false;
else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3)) {
alert('This Page is fully protected!');
return false;
}

return true;
}
document.onmousedown=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
window.onmousedown=right;
//--></script>

Mon Jun 20, 2005 2:49 am

i agree with what hunter said. also, there is no way to effectively block right clicking. also if they want to view your source whats to stop them from pressing View>>Page Source (in firefox). also someon can just select your image and press CTRL+C to copy it into their clipboard.

Sat Jul 02, 2005 12:33 pm

As they have already said, don't block right clicks, that doesn't do anything but annoy people that visit your site. For a browser to be able to render a image from your page it needs to download it to the computer it's running on, and anyone can easily get the image then.

And right click protection is hell for me as I use mouse gestures with the right mouse button :( So I use a extension to kill most of the right click scripts.

Mon Jul 04, 2005 8:58 pm

Anyway, all you have to do is keep right clicking and pressing spacebar, and eventually the menu comes up anyway, at least on neopets.

Sat Jul 09, 2005 6:58 am

people can just screen cap the image anyway so unless something is marked on the picture people can steal it :cry:

Thu Aug 04, 2005 2:14 pm

If you are worried about people stealing images from your site and linking to them on their site, then you can disable hot linking. Here is a Google search that might help you with hotlinking. If you are worried about people saving them to their own computer, there isn't much you can do. You could go as far as watermarking the image, possibly putting some tiny text somewhere on the image so it says it belongs to you. Here is a Google search for watermarking images.

I hope this helps.

Sat Aug 06, 2005 11:45 pm

There is a good way for watermarking images in Photoshop. Just type whatever over the top on a new layer, put on some bevel and emboss, and outer glow blending options, and pull the filll bar down to 0%. See-through text.

That should stop people from stealing your images.
Topic locked