How to Protect Your Blog from Copying by Irresponsible Parties

If you have a blog where you write your thoughts, articles, or tutorial, then you must be aware of the possibility of your content getting plagiarized by other people on the internet. It’s an awful thing to happen and you might not know how to do that. Segue to our decision on writing a how to protect your blog from copying guide.





So, without further ado, let’s just start with the guide on how to protect your blog from copying, shall we?


Protecting your Blog from Copying

As it is right now, there are a couple of ways that you can do on how to protect your blog from copying. And on today’s article, we’ll be taking a look at two of them


One is by disabling the right click, CTRL+P, and CTRL+U functions. 


And second is by implementing a script to cite the source of the content that’s copied.


Disable the Right Click, CTRL + P, and CTRL + U on your Blog

The first way on how to protect your blog from copying will be done through Blogger’s template editor. If you don’t know where that is, go to your Blogger dashboard, click template, and then choose the Edit HTML option.


After you’ve successfully opened the template of your Blog, look for the <body> tag. If you’re having a hard time searching for it, use the CTRL + F to find it quickly.


After finding the body tag, add this line of code into it:

oncontextmenu='return false;' onkeydown='return false;' onmousedown='return false'


Your HTML body tag should look something like this after applying the code above:

<body oncontextmenu='return false;' onkeydown='return false;' onmousedown='return false'> 


When you’re done doing the steps above, don’t forget to click Save Template to make sure that your changes do indeed go live.


And that’s it, visitors won’t be able to right-click, CTRL + P, or CTRL + U on your Blog ever again. If you want to make sure yourself, you can just go to your blog and try the functions above and see if it works or not. If everything is done correctly, nothing will happen if you try those functions.


Adding a script to automatically cite the source

The second way on how to protect your blog from copying, or at the very least discourage it is to add a script that lets the user know where the content is copied from. 


This one is a bit too hopeful considering the state of the internet, but disabling functions such as right-click or CTRL commands is not something that one should do, either.


The way to add this is the same as the script above. Go to your Blogger Dashboard and navigate to the Template option and choose Edit HTML. The same steps as above. After you’re done, search for </body> tag. Use CTRL + F to find it quicker.


And when you’ve found it, copy the script below and put it above the </body> tag of your HTML

<script type='text/javascript'>

function addLink(){var a=document.getElementsByTagName("body")[0];var b;b=window.getSelection();var c="<br/><br/> Source: Flavor Text<br/><a href='"+document.location.href+"'>"+document.location.href+"</a> ";var d=b+c;var e=document.createElement("div");e.style.position="absolute";e.style.left="-99999px";a.appendChild(e);e.innerHTML=d;b.selectAllChildren(e);window.setTimeout(function(){a.removeChild(e)},0)}document.oncopy=addLink

</script>

 

You can change the red text to any message you want, just make sure that you don’t touch anything else from the script above, otherwise, it wouldn’t work.


Save the changes that you just made, and go test whether or not it works. If it works as it should, then you should see a text specifying where the copied content was from, as well as a link that you could follow.


Content thief is a real thing in these days and age, so we hope that our article on how to protect your blog from copying can help prevent the same thing to happen to your content that you make. 


If you want extra protection, you can incorporate both of the methods above together, but we don’t recommend doing so because it’s a bit of a tacky thing to do.


That’s all from us, thank you for reading and we’ll see you next time in another article.


Kommentar veröffentlichen for "How to Protect Your Blog from Copying by Irresponsible Parties"