Disable right click on images Without JS

Some time you have ever worked really hard on graphics for your site only to find later that someone has stolen them as their own. You can help encrypt and protect your website with simple adding code. There are many ways to secure and protect your website from those who want to steal your content or images. Some webmasters using JavaScript to disable the right click menu on their websites to prevent people from saving images onto their desktop. But now I'll give you a simple way, without JavaScript.

Standard image code sample :
<img src="http://yoursite.com/image.png" />

Add this code after image URL :
oncontextmenu="return false;"

Finally your code looks like this :
<img src="http://yoursite.com/image.png" oncontextmenu="ret
urn false;" />

If you have any question, feel free to ask by adding a comment.

Be Sociable..Click below to Share!