DarkWebCode is a place where you can find a lot of exciting and inspiring stuff about Web Development, Blogging, SEO and many more

Breaking

How to disable copy and paste on Blogger blog posts

How to disable copy and paste on Blogger blog posts


Hi friends, today I will show you How to Disable Copy Paste in your Blogger Blog Post Contents.
This article very useful for you to protect your blog content from plagiarists. If you are running your blog in blogger and don’t want to let anyone “copy and paste” your blog content then, this simple tutorial will help you to disable copy paste in Blogger posts.
You can disable copy past by adding small JavaScript code on your Blogger blog.
There are two methods
1. Add JavaScript on blog theme.
2. Add JavaScript on blog Gadget.
Both methods using the same JavaScript code. You can follow anyone method.
 Let's discuss the first method:
Add JavaScript code on a blog theme
Step 1: Open Blogger Blog dashboard.
Step 2: Click  theme button.
Click theme button screen shot
Click the theme button

Step 3: Click Edit HTML.
Click Edit HTML screen shot
Click Edit HTML

Step 4: Copy the below JavaScript code and paste it anywhere between the head tags
<!- 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 --></!->

JavaScript code pasted above closing head tag
JavaScript code pasted above closing head tag

Step 5: Finally, Save your changes and reload your blogger blog post.

Let's discuss the second method:
Add JavaScript code on blog Gadget.
Step 1: Open your Blogger Blog dashboard.
Step 2: Click the Layout button.
Click the Layout button
Click the Layout button

Step 3:Select Add a Gadget.
Select Add a Gadget.
Select add a Gadget

Step 4: Select HTML/JavaScript.
Select HTML/JavaScript.
Select HTML/JavaScript.

Step 5: Leave the title section as blank and paste the JavaScript code given above on the content section.
Paste the JavaScript code  on the content section and Save
Paste the JavaScript code  on the content section and Save

Step 6: Finally, Save your changes and reload your blogger blog post.