How To Disable Copy Paste/Right Click In Blogger [Blogspot]?

Is somebody copying your article?

Do you want to disable Copy Paste and Right Click on your Blogger [Blogspot]?

Do you want to protect your article from get copied by your competitors?

If any of your answer is Yes then you must read this complete article and all your queries will be solved.

It is very painful when you write a beautiful article and somebody just copy your article and rank above you.

I have faced this problem earlier and I hope some of you may be also facing the same problem.

Then you don’t need to worry about it, my friend. In Today‚Äôs article, I will be sharing my two personal tricks to disable Right Click and Copy Paste on your Blogger website.

Stick to this article and we will be sharing the working trick to disable picture Downloading, Right Click and Copy Paste command on any of your Blogspot websites.

We will be doing this using a JavaScript code.

Note: Here I will be sharing multiple javascript codes. Because some of the codes don’t work with every Blogspot template. So keep trying all the codes one by one.

If you also have another working code then please share it with us.

How To Disable Right Click On Blogger [Blogsopot]? 

  1. Login to your Blogspot Dashboard 
  2. Go to Layout 
  3. Click on Add a Gadget [anywhere] 
  4. Click on HTML/JavaScript
  5. Copy and paste the JavaScript code given below in the tabs. 
  6. Leave Title Section empty 
  7. Click Save

That’s all

Now try refreshing your website and try to copy you will not be able to copy the text or will not be able to right-click anywhere.

Code 1
Code 2
Code 3
Code 4
Code 5

<script type=”text/javascript”>
var omitformtags=[“input”, “textarea”, “select”]
omitformtags=omitformtags.join(“|”)
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!=”undefined”)
document.onselectstart=new Function (“return false”)
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>

If you are placing this JavaScript code then it will not show any alert and it works with Image download on some Blogger Template and with Text on Some Blogger Template.

<script language=JavaScript>
<!–
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>

<script language=JavaScript>
<!–
var message=”Right-Click Disabled!”;
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function(“alert(message);return false”)
// –>
</script>

<script language=javascript>
<!–
//Disable right click script – By https://www.hextoid.com
//
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>

After the placement of this code and error message will be displayed on their screen. That message will be Not Allowed you can change this message from the below code.

<script>
var message=”Not Allowed”;
var shouldAlert=1;
document.oncontextmenu=function(){
 if(shouldAlert==1){
  alert(message);
 }
 return false;
};
</script>

Dear readers in future some more JavaScript codes will be added here as we get.

If you also have any extra code like this please share it with us.

Wrap Up

I hope this article would be helpful for you and now you can also disable copy paste and right-click on your Blogspot website very easily with these simple JavaScript codes.

Don’t forget to leave a comment and share as much as possible

Each share is valuable for me.

Leave a Comment