Disable Right Click in Blog/Website



If you are worried about your content on your blog/website and don't want it to be copied by others then given JavaScript code snippet can help you. This code simply disables the Right 
click on your blog. Disabling right click on blog/website is only for security purpose, which protects you text or images from being copied. 


Well there are many another ways to copy content as you can see on my website I had also applied this script earlier which disables the right click on website but recently I just removed this script as many people were having problems.

So you can check out the steps below for disabling right click on Blogger Blogs and protecting your content from being copied.


How to Disable Right Click on Blogger?

STEP #1: Log on to Blogger

STEP #2: Go to Dashboard>Template

STEP #3: Click on Edit HTML>Proceed 

STEP #4: Tick on Expand Widget Template check box

STEP #5: Find (Ctrl + f) below code

</body> 

STEP #6: Now copy and paste below Code just above it.

&lt;script language=javascript&gt; 
&lt;!--


var message=&quot;Function Disabled!&quot;;
function clickIE() 
{ 
  if (document.all) { 
    (message);return false;} 
}
function clickNS(e) 
{ 
if (document.layers||(document.getElementById&amp;&amp;!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(&quot;return false&quot;)
// --&gt; 
&lt;/script&gt;

STEP #7: Save your template and you are done!


Customization:
  • When you will try to do right click, a message will tell you that “Function disabled!”, and if you want to change these words then simply find it in code and replace it.
So execute steps correctly and you are done. Head to your blog and check the trick executed. So don't forget us. We will only survive with your generosity. Like, Share, Follow and Subscribe. If you are facing any problem with implementing these codes just comment below for help. Stay tuned for more posts.


{ 0 comments... read them below or add one }

Post a Comment