How to Disable Copy/Paste in Blogger Using JS

How to Disable Copy Paste in Blogger Using a Script

Today after a long time, I am going to share a tutorial for Disable Copy / Paste function in Blogger [Disable Text Selection]. If you are a blogger and work hard to write content for your blog, then you should disable the copy/paste function in your blog and website. Let's look at this tutorial.

Why Disable Copy/Paste Function

Nowadays some blogger copies content from another blog and then rewrites the content using the article spinner tool for posts on their blog. Therefore, you should protect your website and blog content.

How to Disable Copy/Paste in Blogger

Here are the steps to Disable the Copy/Paste function on your website and blog.
  1. Go to the Blogger dashboard
  2. Then chose your website (if you have many more websites)
  3. Then click on the Theme option 
  4. Then click on Edit HTML
  5. Now Find </body> (Using Ctrl-F of your keyboard)
  6. Then paste this Javascript before </body> Tag (code is given below)
  7. Then click on the save theme button 
<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>

After put this JavaScript your website and blog will be protected. I hope this tutorial on 'How to Disable Copy/Paste in Blogger Using a Script' will be helpful for you. If you want to learn these types of tutorials, then comment on the comment box below. Don't forget to share these tutorials.

You may like these posts