Is somebody copying your article and ranking at a higher position in SERP, then you must block the right-click and copy-paste on your website?

Do you want to Disable Blogger Right Click/Copy Paste?

Do you want to disable Copy Paste and Right Click on your Blogger (Blogspot)?

If your answers are Yes, then you must read this complete article, and all your queries will be solved.

It is very painful to see your competitor ranking above you by just copying your articles.

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

Then, my friend, you don’t need to worry about it. Because in this article, I will be sharing my tricks to disable Right Click on the Blogger website.

Along with right-clicking disabled, you can also disable picture Downloading, and Right Click and Copy Paste command on any of your Blogspot websites.

I will be doing this by using a JavaScript code.

Note: I have shared multiple JavaScript codes, so if anyone doesn’t work, you may try the other one.

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


How To Disable Blogger Right Click? 

  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
  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 be able to right-click anywhere.


Code 1

<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>

Code 2

If you are placing this JavaScript code, 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>

Code 3

<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>

Code 4

<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>

Code 5

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 reader, in the future, some more JavaScript codes will be added here as I know about it.

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


Frequently Asked Questions

  1. How do I turn off copy and paste on Blogger?

    To disable blogger right click and copy-paste, you just need to add these simple JavaScript codes into your website by following the above procedures.

  2. How do you disable right click using JavaScript?

    JavaScript is a programming language that blocks the actions of right-clicking and copies the text on the webpage. To disable it, paste the above codes on your website.

  3. How do I protect my blog content from copying?

    Protection of own written content is crucial on the internet, but you can protect it by disabling copy text.


Wrap Up

I hope this article would be helpful for you, and now you can also disable blogger right-click just by adding these simple JavaScript codes.

If it is useful for you don’t forget to leave a comment and share with all your blogger friends.

Peace Out!

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

2 Comments

  1. heikeharman says:

    Attractive component to content. I simply stumbled upon your weblog and in accession capital to assert that I
    get actually enjoyed account your weblog posts. Any way I will be subscribing on your augment or even I achievement you access constantly fast.

  2. karine bruntnell says:

    Hi, i think that i saw you visited my blog thus i came to “return the favor”.I am trying to find things to
    improve my website!I suppose its ok to use a few of your ideas!!