Last Updated on January 17, 2024 by Justin Su

Are you a hard-working blogger and want to save your content from getting copied? Then you should know how to disable copy paste in Blogger.

Most people want to not allow others to copy their content and use it on other websites.

There is a basic method of disabling content from copy and paste.

Benefits Of Disable Copy & Paste

The basic benefit of disabling copy and paste is that your contents are safe and unique but do you know even after blocking users from right-click there are people who still copy content from your site.

Like, Chrome allows you to check code (page source) click CTRL+U and you can check all codes from a specific page. And if you don’t know how to use this method then you don’t need to understand and write your own content.

Also Read: How TO Change Theme in Blogger

Also Read: How To Remove Powered By Bloggers

How To Disable Copy Paste In Blogger

Want to disable right-click in Blogger then follow the below steps.

  • Log in to Blogger
  • Go to the Layout tab
  • Click on Add a Gadget, you can add anywhere
  • Now choose the HTML/JAVASCRIPT option
  • The new blank page will be open
  • Paste the below code and click on SAVE

Code to Copy and Paste:

<!- 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 –></!->

Or

Copy and paste the below code to disable the right-click option on Blogger Above code disables copying and paste.

<script language=javascript>
<!–

//edit by dev

var message=”Right Click Has Been 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>

How To Enable It

You can remove the code and everything is fine. And nothing else you have to do. Just visit the layout section click on the widget where you added that code and now delete that widget or code.