Today we are going to tell you how you can save your written post from being copied. The script that is going to be given here. With its help, you can protect the blog post you have written.
Suppose you have used any script like this before. So let us tell you that this script differs from all those scripts. The code you used will be java-script or HTML, which can be disabled in the browser and your post can be copied.
Read More: How to add Automatic Table Of Contents In Blogger
But the code we are giving you. After installing it, your blog is completely safe. It cannot be copied under any circumstances.
Benefits of Disabling the Right Click
If you are a blogger then you must know how hard we write a post and make thumbnails and images for the post and there are some people who copy the content of our blog and use it in their posts.
If you also disable the right click of the mouse on your website, then no one can copy the content of your posts like images, thumbnails, and text, and even can not see the source codes of your website like this. This trick is very useful for any blogger.
Here we are going to give you 2 codes that you can use according to your need.
1. Disable Right Click On Blogger Post in java-script
- Go to Blogger Dashboard
- Go to the Layout Tab
- Click Add a Gadget
- Now choose HTML/JAVASCRIPT Option
- Paste the below Javascript Code with script tags
- Save
<script> jQuery(document).ready(function(){ jQuery(function() { jQuery(this).bind("contextmenu", function(event) { event.preventDefault(); }); }); }); </script>
2. Disable Right Click On Blogger Post in CSS
This is CSS, you have to put it under ]]></b:skin> in Blogger Blog.
<style type='text/css'> body{ display:block;-khtml-user-select:none; -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; -o-user-select:none; user-select:none; unselectable:on; } </style>
In this way, you can Disable Right Click On Blogger Post. I hope you liked this post. If you have any problem setting up a Disable Right Click On Blogger Post, you can write your comment in the comment box.