How to Disable Right Click On Blogger?

Hello Viewers How are you all? I am Themidom and you are reading our latest article. So basically if you are a blogger than you all know that how some people steal or copy paste your content so for that I will give you the source code of Right Click Disable. So without wasting your time put your glasses in your eyes and lets get started today's article.



Introduction:

So Bloggers as you know that if you add some code in your theme section than your site may slow down For that I have wrote a Code for you which will disable your right click and will protect you from content stealing.


1. Go to Your Layout Section.

2. Add a Gadget.

3. Copy the following code and Paste it in HTML/JavaScript Gadget.


 <!--Written by Themidom.in-->  
 <script language=javascript>  
 <!--  
 //Disable right click script - By https://themidom.in  
 //  
 var message="Function Disabled";  
 ////////////////  
 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>  

OR

 <!--Written by Themidom.in-->  
 <!--This is a Stylish Controller with Notification-->  
 <script>  
 var message="Not Allowed";  
 var shouldAlert=1;  
 document.oncontextmenu=function(){  
  if(shouldAlert==1){  
  alert(message);  
  }  
  return false;  
 };  
 </script>  
 <!--Written by Themidom.in-->  

4. Click On Save.

5. Your Code is Ready to Work.


Conclusion:

So Views that is all for today. If you are facing any issue regarding this topic then feel free to contact us or comment down below. 

(This Code is Prepared only for right click disable)


Post a Comment

If you have have any doubt please let me know

Previous Post Next Post

Ads

Ads