How to prevent blog or website content from being copied and disable right click? - FindersAdda : Tutorials of Make Money, Computer or Internet

Sunday, 27 August 2017

How to prevent blog or website content from being copied and disable right click?



Today, I will tell you that how to prevent blog or website content from being copied and how to disable right click? It is very important for blogger because many new bloggers copied another blog content and paste into own blog. 

That's why, we use some code for disable right click or prevent blog or website content from being copied.

In this article, I am going to tell a simple methods to prevent blog or website content to be copied and disable right click.


how to prevent blog or website content from being copied and disable right click



Prevent Blog or Website Content From Being Copied By using JavaScript



The below JavaScript code helps us to prevent content from being copied. You have to put this code above </head> or </body> tag in coding area.

This code will work all plate form like blogger, word press, tumbler etc. 

copy the below java script code.


<!-- Start mozedia disable copy paste code -->
<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 mozedia disable copy paste code -->

Step 1. First of all, logon to blogger

Step 2. Now, click on the Theme tab in blogger dashboard

Step 3. Then, click on the edit HTML and then click anywhere between coding area and press Ctrl + F and search </head> or </body> tag.

Step 4. Now paste the copied code above </head> or </body> tag and then click on the Save Theme option.

Step 5. This step is optional to 3 and 4. click on the Layout tab in blogger dashboard and click on the add gadget anywhere.

Step 6. Then a new pop-up page will be opened. In this page click on the HTML/JavaScript and then paste the JavaScript code in content area box.

Step 7. Then click on the Save button and then click on the Save Arrangement option.







I hope you liked this post so much. If you loved this post, Then, share with your friends and also give some suggestion that what should i improve in this post. Thank You So Much...... 

About Author

SUMIT KUMAR GUPTA
SUMIT KUMAR GUPTA

Author & Editor

Myself Sumit Kumar Gupta & 21 year's old person. I am a programmer and blogger. I spend much more time on programming and blogging and helps other programmers and bloggers.

0 comments:

Post a Comment

We are eager to see your comments.
Comment Rule :

1. Don't use any link in the comment box. If you have any problem related to link then contact me with the contact form.

2. Don't use the wrong word if you write the wrong word in comment box then it will get spam.