Advertisement

Easily Disable Copy/Paste and Right Click in Blogger Blog

To prevent your blog articles and posts from getting stolen, it is very important to disable copy/paste and right click in your Blogger blog.

Easily Disable Copy/Paste and Right Click in Blogger Blog

When it comes to blogging, Blogger is the best, free and easy blogging platform. Almost everyone who does blogging knows about Blogger.


As Blogger is a free platform, it is not as customizable as other blogging platforms. We cannot use plugins like we can use in WordPress, but still we can manage our work with some HTML and JavaScript codes.

Disable Copy/Paste in Blogger Blog

If you want to disable copy/paste in your blogger blog so that no other blogger can steal your blog posts, then you can use HTML/JavaScript given below.

JavaScript Code:
<!- start disable copy paste -->
<script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script>
<script type='text/javascript'> if(typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" ); } else{document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false"); } </script>
<!-- End disable copy paste --></!->

By copying and pasting the above code to your blogger's HTML/JavaScript gadget and saving it, copy/paste will be disabled in your blogger blog.

Disable Right Click in Blogger Blog

After using above code, no one will be able to select the content of your blog. And after disabling the right click in your blogger blog no one will be able to use options like "copy, paste, edit or inspect element" in your blog.

If you want to disable select function as well as right click in your blogger blog then you can use the JavaScript code given below.

JavaScript Code:
<script language=javascript>
<!--
//edit by safeseotools

var message="Right Click Not Allowed";
///////////////////////////////////
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>

After pasting and saving above code in HTML/JavaScript gadget of your blogger blog, right-clicking in your blog will be disabled.

Steps To Implement HTML/JavaScript Code in Blogger Blog

Step 1: Add a Gadget

Go to "Layout" section of blogger and click on "Add a Gadget" as shown in image below.

Step 1: Easily Disable Copy/Paste and Right Click in Blogger Blog

Step 2: Select HTML/JavaScript

Now select "HTML/JavaScript" gadget in list of all blogger gadgets as shown in image below.

Step 2: Easily Disable Copy/Paste and Right Click in Blogger Blog

Step 3: Paste Codes

After "HTML/JavaScript" gadget opens, paste both "disable copy paste" and "disable right click" codes in Content section of that gadget.

Step 3: Easily Disable Copy/Paste and Right Click in Blogger Blog

Step 4: Save Gadget

After pasting both the codes in Content section of the blogger "HTML/JavaScript" gadget, click on Save as shown in above image. And DONE!

Now no one will be able to select text or do right click in your blogger blog. This code exactly works as disable copy paste or disable right click plugin available on WordPress.

Conclusion: In this post I have tried to be as informative as possible. I hope that this trick will help you to protect your hardly written content by disabling copy paste and right click in your blogger blog.

Post a Comment

0 Comments