Protecting your pictures and content
Posted by David Hall on 08 January 2009 01:27 PM
You may want to protect your pictures and content from people who wish to steal it, one way to attempt this is to disable the right click menu using some sort of javascript.

If you think disabling right-click will protect your source code or images, think again! Anyone who's determined to copy your content or code will do so regardless of his or her ability to bring up a browser context menu. If they want your source code then it's as simple as selecting 'view source' from the main menu. Article text can be highlighted and copied, images and media presentations can be retrieved from the browser cache, and streaming media can be recorded.

Disabling right-click will only make people more determined to learn exactly what it is you're hiding. And this could end up being counter-productive, as your images and source code attract unwanted attention. Not only that, but you can only disable right-click on browsers that have JavaScript enabled: a visitor only has to turn off JavaScript in their browser's options to be able to ignore the script altogether!
Extract taken from http://www.sitepoint.com/article/dont-disable-right-click See that page for more reasons why this doesn't work.
(50 votes)
This article was helpful
This article was not helpful

Help Desk Software by Kayako Fusion