Thursday 12 July 2012

How to Disable Right Click on Image Without JavaScript


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 site with simple adding code. 



There are numerous ways to secure and protect your web site 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 i now I'll give you a simple way, without javascript or editing HTML code on your Blogger dashboard.



Important: Click " view plain" to Copy Paste code 





  • Standard image code sample: 


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


  • Add this code after image URL 


oncontextmenu="return false;" 


  • Finally your code look like this 



<img src="http://yoursite.com/image.png" oncontextmenu="return false;" /> 

No comments:

Post a Comment