How to Disable Right Click on Your Blog

Posted by Arif Hidayatullah on Thursday, December 22, 2011

To prevent the contents of blog from  the other peoples that have bad actions like copied post or images, many bloggers deliberately to disable right click on their blog. Well, today I will share a blogger tutorial about how to disable right click on your blog.

Ok. To disable right click on your blog please follow the instruction bellow:
  • Login to your blogger account.
  • Go to Template menu, and then click Edit HTML, and click Proceed.
  • Check Expand Widget Template.
  • Find the <head> code. To make easy it, click Ctrl+F if you using Mozilla Firefox browser, and F3 if using Internet Explorer or Google Chrome browser.
  • Paste the JavaScript code just below the <head> code. This is the JavaScript code to use.
<script language=JavaScript>
<!--
 
//Matikan Klik Kanan 
 
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
 
document.oncontextmenu=new Function("return false")
// -->
</script>
 

  • Save it.
Well, it's a blogger tutorial about How to Disable Right Click on Your Blog. You may also like this:

  1. What is SEO ?
  2. Submit Blog to Bing | Search Engine Optimization
  3. Submit Blog to Search Engines
  4. How to Make a Blog
  5. White Hat vs Black Hat SEO
  6. Introduction to SEO
  7. Free Backlinks
  8. Meta Tags on Blog
Thanks for visiting.


Click the Like button above if you like this article
Thank's for visiting this blog
Don't forget to add your comments at the form below...

Share this Article to Your Friends :

{ 3 comments...Please Give Your Comments }

Anonymous said...

nice trik mas cocok buat orng yg kerjaanya copy paste aja, salam kenal mas

Arif Hidayatullah said...

ia mas.. thanks ya udah berkunjung.. :D

Anonymous said...

Thanks for information.I tested.. this may not work for all browsers.. for this we have to go JQuery.. this may help you.. http://aspnettutorialonline.blogspot.com/2012/05/disable-right-click-on-browser-using.html

Post a Comment

Please leave your comment here...!!!