How to prevent people from copying your posts with CSS/JavaScript

How to prevent people from copying your posts with CSS/JavaScript

What to do when someone doesn't respect your content. This post will show you how to prevent people from copying your posts with CSS/JavaScript.

Why should you protect your content?

Your content is the product of your creative process. Do you accept when it is appropriated by others? Definitely not. That's why it's so important to protect your own creations.

Those who do not know how to respect copyright are always snooping on the content you create. They will take it and use it freely for their own personal purposes. And you absolutely don't want that to happen. That's why you should protect your creative content yourself.

How to prevent people from copying your posts?

There will be more than one way to protect your content. If you're willing to pay, you can use the DMCA.

DCMA is roughly understood as copyright protection law. This law was created to protect the copyright of technology products on the Internet and to criminalize acts of copyright infringement such as cracking, supplying and trading in illegal technology products.

But if you don't want to spend a fortune, this post will help you. In this post, I will use css and javascript code to prevent others from copying the content on your blogspot website. Ok! Let's start.

CSS code

Here, the css code does not allow others to blacken the content on your website. You can place this css code in the <style> css code </style> tag pair or place it above the ]]></b:skin> tag.

body {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;}{codeBox}

JavaScript code

This javascript code prevents pressing keys like F12. You can place it above the closing </body> tag.

<script type='text/javascript'>//<![CDATA[
document.onkeypress=function(event){event=(event||window.event);if(event.keyCode===123){return!1}};document.onmousedown=function(event){event=(event||window.event);if(event.keyCode===123){return!1}};document.onkeydown=function(event){event=(event||window.event);if(event.keyCode===123){return!1}};function contentprotector(){return!1}
function mousehandler(e){var myevent=(isNS)?e:event;var eventbutton=(isNS)?myevent.which:myevent.button;if((eventbutton===2)||(eventbutton===3))
document.oncontextmenu=contentprotector;document.onmouseup=contentprotector;var isCtrl=!1;window.onkeyup=function(e){if(e.which===17)


Above are my shares as well as my guidelines so you can protect your creative content from copyists. Hope what I share will help you. Don't forget to continue to support me in the next post. Thank you.

Post a Comment (0)
Previous Post Next Post