How to Protect your Content from Being Copied

How to Protect your Content from Being Copied

How to Protect your Content from Being Copied
How to Protect your Content from Being Copied
Everyone should be given credit for their work but today most of us make use of someone else efforts without giving them credit very big example is the software that we use on our computer devices.

It's a very big issue, most of the website creators do not write they're on content instead of that they copy content from other websites and use their content without giving them credit. This is not a good thing. We should have to give credit to the actual owner of that content.



I have seen many people copying my content and I have noticed that they are not giving me the credit I have also asked them but they are not doing that and it's a warning to them that if they continued to copy my content I can take strict action against that.


Today I will tell you how you can protect your website content from being copied. There are different ways to protect your website content and I will tell you all that methods which can be used to protect your content and after that, no one will be able to copy the content of your website but for those who have outstanding thinking, powers can do that easily, like me.

So now I will tell you the methods by which you can protect your website content from being copied. After placing the codes which are provided below into your website no one will be able to copy the content of your website but I am not sure about the professionals.


Using CSS:

Using CSS you can not completely protect your website content from being copied but using CSS code you can disable selection of text of your website for that you can use the code provided below.


<style>
body,*{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
</style>

Using Javascript:

Using JavaScript you can completely protect your website content if it is viewed online but if the user is viewing your article offline or if JavaScript is disabled on the s web browsers then this JavaScript code will not work. Using JavaScript you can disable context menu or right-click and also you can disable text selection and many other things using JavaScript. You can use the code provided below for that.

<script>
var image_save_msg="You Can Not Save images!",no_menu_msg="Context Menu disabled!",smessage="Double Click & Long Click is Disabled.",keypressmessage="You are not allowed to copy content or view source";function disableEnterKey(e){var n;if(e.ctrlKey)return 97!=(n=window.event?window.event.keyCode:e.which)&&73!=n&&99!=n&&120!=n&&26!=n&&85!=n&&83!=n&&43!=n||(alert(keypressmessage),!1)}function disable_copy(e){var n=e.target.nodeName,t=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor);if("TEXT"!=(n=n.toUpperCase())&&"TEXTAREA"!=n&&"INPUT"!=n&&"PASSWORD"!=n&&"SELECT"!=n&&"OPTION"!=n&&"EMBED"!=n)return""!==smessage&&2==e.detail&&alert(smessage),!!t}function disable_copy_ie(){var e=window.event.srcElement.nodeName;return"IMG"==(e=e.toUpperCase())?(alert(image_save_msg),!1):("TEXT"==e||"TEXTAREA"==e||"INPUT"==e||"PASSWORD"==e||"SELECT"==e||"OPTION"==e||"EMBED"==e)&&void 0}function reEnable(){return!0}function disableSelection(e){void 0!==e.onselectstart?e.onselectstart=disable_copy_ie:void 0!==e.style.MozUserSelect?e.style.MozUserSelect="none":e.onmousedown=function(){return!1},e.style.cursor="default"}document.onkeydown=disableEnterKey,document.onselectstart=disable_copy_ie,-1==navigator.userAgent.indexOf("MSIE")&&(document.onmousedown=disable_copy,document.onclick=reEnable),window.onload=function(){disableSelection(document.body)},document.ondragstart=function(){return!1},document.oncontextmenu=function(e){return alert(no_menu_msg),!1};!function t(){try{!function t(n){1===(""+n/n).length&&0!==n||function(){}.constructor("debugger")(),t(++n)}(0)}catch(n){setTimeout(t,5e3)}}();$("img").mousedown(function(){return false;});if(navigator.onLine != true){window.location.href="https://www.softwebtuts.com"}
</script>


Using PHP:

PHP is one of the advanced programming language used to develop websites. Using PHP you can completely protect your website content whether it is viewed online or offline.


<?php /* Reverse engineering of this file is strictly prohibited. Checksum: 59a10705f866f227059f4ea7c866015e */ $I11l1lIllI=file(__FILE__);eval(base64_decode("ZnVuY3Rpb24gT08wTzAwTzBPTygkYSwkYil7JGM9YXJyYXkoODYwLDMyNCwzMiwyNTM4KTskaz1nemluZmxhdGUoYmFzZTY0X2RlY29kZSgiS3lyTlRjb3NLUVlBIikpOyRPME8wPSRrWzZdLiRrWzFdLiRrWzNdLiRrWzZdLiRrWzVdLiRrWzBdOyRPMD0iJGtbNV0ka1swXSRrWzRdJGtbMl0iO2lmKCRiPT0xNzApeyRkPSRPME8wKCRhLCRjWzBdKyRjWzFdLCRjWzJdKTt9ZWxzZWlmKCRiPT04KXskZD0kTzBPMCgkYSwkY1swXSwkY1sxXSk7fWVsc2VpZigkYj09MTIpeyRkPSRPMCgkTzBPMCgkYSwkY1swXSskY1sxXSskY1syXSkpO31yZXR1cm4kZDt9"));eval(base64_decode(OO0O00O0OO($I11l1lIllI[0],8)));eval(IlIlllll1I(OO0O00O0OO($I11l1lIllI[0],12),OO0O00O0OO($I11l1lIllI[0],170),$I11l1lIllI));__halt_compiler();gEEvl26qPFgS7KKwF29G7hR5IBctRIyqrcM3iYNargJcd3eVLsbwJ60s9AFVMpuzo1kQ1HCjjefH5KkqhX1ke4OWtj6obDDTCYrWuzp5xCuGUsf7mIy8ixwUPnaWYoIWZ1bmN0aW9uX2V4aXN0cygiSWxJbGxsbGwxSSIpKXtmdW5jdGlvbiBJbElsbGxsbDFJKCRhLCRiLCRjKXskZD1pbXBsb2RlKCRjKTskZD1wcmVnX3JlcGxhY2UoIi9fX2hhbHRfY29tcGlsZXIuKi8iLCIiLCRkKTtpZigkYj09aGFzaCgibWQ1IiwiJGQiKSl7cmV0dXJuKGd6aW5mbGF0ZShiYXNlNjRfZGVjb2RlKCRhKSkpO31lbHNle2RpZSgiPHR0Pm1kNSBDb2RlIG1hbmlwdWxhdGlvbiBkZXRlY3RlZDwvdHQ+Iik7fX19a00f3e4a8d28e1fc47212249fecc4a0c3VjdbtvGEr434HeYsi5I1jYlOU1xIJE6cBU6duNYguykKOqChz8raRuKZJdLK0KUuz5J7/oafZQ+SWeWlETJ0kmKtDelQ4mcnZ355n+Vw4PDg8//kQvlgh/xOEj/+OVXuE1HcuYLBp9+Kckbl1e762S8as/by/vklpy4YQELuumvlISfZAs0ylUllJ6JYandqwR49AXlvkoysv4PFg21UMlVzPe0gp9w763fFuAt8PYaxOURb7kddNRHMu6XchdgKJiGt0KrEJuKZpZKam8lC32U/6rtC1CcizVehHPiLQgUfnnkgwU+ISQFtAHKLcs3UkpPC/VakdW+UhLxP47c33Mpub00mws+nkj4/Tc4a7aewkTKrN1olElohekUTsGPY1BcOQiWM/HAIqSexzGDIQsnksFDKgI28WPJEiX4H7n0Q6y7xpcAr93h7VX/BlpWCxAItL6yWmeWgg9fNhQXOu7WvXs1wOVBzPycwSiN43QGcs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1d5K2oFgnLQz9jlCY/5V71spSrmyquSsjn/0eKbr+dZl39+OOkUf++PO+92IZGBbKRNFQmO2zY7prb6/RY0pK0Sik8SdjLl65K5FzOY+ZoYRqnoj2boBWdwA/fjEWKsWjjkOtkfkTno/ZZM3vboWQ89WM+TtoYI5xHmPkSRWFKpMm4awd83L3Aabmsf2SV81UC5SgeuKQcWo6qOcgULfFpUFEy3ypsFtiB6NINlwx/ENGPIjrJ2T4e4gRWtqN5AZbBG20i2MjRqlPsbDazSlmn64KhQ21D22Go1uUJ4i4U0BwmdFrcgQXHIszTQsCMBRCIdIYnYrvhdy0c2WgtVnNle4McodqA3Vg5WVcREEwWIgGjio61ishqLK8a5jKqcIR6q5n1qaNwSdx1ilgmDeVGCZYUO1DI0X+8iBEYAylmbYlmNgafS87yXWt5xkLux6Qtf7YlgY7fZBuyNjv0bVM7QXGVwUQ7Pl7P6gl7i6yIAx8MPIdFJOqHI/4jDvSqUatBXzKSDetBT/slm2ZkDalQSKDav9pe40IkdOCM/RBL9ws6+eCtFuvM1XBNKY60ZumWXi3Xh+gWq2FUdhJS03HwRPJfxK03dQsXZFpkmYo62YG2tQ3YRQazrm1jfGzjPyb8Z02LTFDnhH2MHjE+vfgw46mS+GwnY61dHTvY9sJJkbzx8gzrX2X9ya7kOwFNLwfm5m5qkhsdbwuJ9uiH2XHVI6uQrdBVhVe1ws1K25eqqAlF/FzgyPJU10DteFL2ev2Xg/O7KrsqwRQjUW3xhfDn3ijmmYEdylMYJR5A89gnfZ6kxmLQFPZuB27v6vy6d4m/ezZ1mebjllAbIVhGVXZv1mxZV0d4ruoccXuZaVR0qpyWKblZTvVqWiU4VROxOehRc5XJG6m8Lqbl7uVmSv+de8DCetpTA1sloNYw/x+RKi0q4XcFFo86bv8CTrGFRjRy1HGF/n/gTw

The PHP code provided below will encode all the text provided on your web pages if the user wants to view source code or want to view the page source or want to save the page. You can use the following code for that.

Complete Code:

So now if you completely want to protect the ent of your website you can use the code provided below. It is the sum of all the codes provided above. You have to paste this code in the header section of your website.

<style>
body,*{-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}
</style>
<script>
var image_save_msg="You Can Not Save images!",no_menu_msg="Context Menu disabled!",smessage="Double Click & Long Click is Disabled.",keypressmessage="You are not allowed to copy content or view source";function disableEnterKey(e){var n;if(e.ctrlKey)return 97!=(n=window.event?window.event.keyCode:e.which)&&73!=n&&99!=n&&120!=n&&26!=n&&85!=n&&83!=n&&43!=n||(alert(keypressmessage),!1)}function disable_copy(e){var n=e.target.nodeName,t=/Safari/.test(navigator.userAgent)&&/Apple Computer/.test(navigator.vendor);if("TEXT"!=(n=n.toUpperCase())&&"TEXTAREA"!=n&&"INPUT"!=n&&"PASSWORD"!=n&&"SELECT"!=n&&"OPTION"!=n&&"EMBED"!=n)return""!==smessage&&2==e.detail&&alert(smessage),!!t}function disable_copy_ie(){var e=window.event.srcElement.nodeName;return"IMG"==(e=e.toUpperCase())?(alert(image_save_msg),!1):("TEXT"==e||"TEXTAREA"==e||"INPUT"==e||"PASSWORD"==e||"SELECT"==e||"OPTION"==e||"EMBED"==e)&&void 0}function reEnable(){return!0}function disableSelection(e){void 0!==e.onselectstart?e.onselectstart=disable_copy_ie:void 0!==e.style.MozUserSelect?e.style.MozUserSelect="none":e.onmousedown=function(){return!1},e.style.cursor="default"}document.onkeydown=disableEnterKey,document.onselectstart=disable_copy_ie,-1==navigator.userAgent.indexOf("MSIE")&&(document.onmousedown=disable_copy,document.onclick=reEnable),window.onload=function(){disableSelection(document.body)},document.ondragstart=function(){return!1},document.oncontextmenu=function(e){return alert(no_menu_msg),!1};!function t(){try{!function t(n){1===(""+n/n).length&&0!==n||function(){}.constructor("debugger")(),t(++n)}(0)}catch(n){setTimeout(t,5e3)}}();$("img").mousedown(function(){return false;});if(navigator.onLine != true){window.location.href="https://www.softwebtuts.com"}
</script>
<?php /* Reverse engineering of this file is strictly prohibited. Checksum: 59a10705f866f227059f4ea7c866015e */ $I11l1lIllI=file(__FILE__);eval(base64_decode("ZnVuY3Rpb24gT08wTzAwTzBPTygkYSwkYil7JGM9YXJyYXkoODYwLDMyNCwzMiwyNTM4KTskaz1nemluZmxhdGUoYmFzZTY0X2RlY29kZSgiS3lyTlRjb3NLUVlBIikpOyRPME8wPSRrWzZdLiRrWzFdLiRrWzNdLiRrWzZdLiRrWzVdLiRrWzBdOyRPMD0iJGtbNV0ka1swXSRrWzRdJGtbMl0iO2lmKCRiPT0xNzApeyRkPSRPME8wKCRhLCRjWzBdKyRjWzFdLCRjWzJdKTt9ZWxzZWlmKCRiPT04KXskZD0kTzBPMCgkYSwkY1swXSwkY1sxXSk7fWVsc2VpZigkYj09MTIpeyRkPSRPMCgkTzBPMCgkYSwkY1swXSskY1sxXSskY1syXSkpO31yZXR1cm4kZDt9"));eval(base64_decode(OO0O00O0OO($I11l1lIllI[0],8)));eval(IlIlllll1I(OO0O00O0OO($I11l1lIllI[0],12),OO0O00O0OO($I11l1lIllI[0],170),$I11l1lIllI));__halt_compiler();gEEvl26qPFgS7KKwF29G7hR5IBctRIyqrcM3iYNargJcd3eVLsbwJ60s9AFVMpuzo1kQ1HCjjefH5KkqhX1ke4OWtj6obDDTCYrWuzp5xCuGUsf7mIy8ixwUPnaWYoIWZ1bmN0aW9uX2V4aXN0cygiSWxJbGxsbGwxSSIpKXtmdW5jdGlvbiBJbElsbGxsbDFJKCRhLCRiLCRjKXskZD1pbXBsb2RlKCRjKTskZD1wcmVnX3JlcGxhY2UoIi9fX2hhbHRfY29tcGlsZXIuKi8iLCIiLCRkKTtpZigkYj09aGFzaCgibWQ1IiwiJGQiKSl7cmV0dXJuKGd6aW5mbGF0ZShiYXNlNjRfZGVjb2RlKCRhKSkpO31lbHNle2RpZSgiPHR0Pm1kNSBDb2RlIG1hbmlwdWxhdGlvbiBkZXRlY3RlZDwvdHQ+Iik7fX19a00f3e4a8d28e1fc47212249fecc4a0c3VjdbtvGEr434HeYsi5I1jYlOU1xIJE6cBU6duNYguyk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TFDnhH2MHjE+vfgw46mS+GwnY61dHTvY9sJJkbzx8gzrX2X9ya7kOwFNLwfm5m5qkhsdbwuJ9uiH2XHVI6uQrdBVhVe1ws1K25eqqAlF/FzgyPJU10DteFL2ev2Xg/O7KrsqwRQjUW3xhfDn3ijmmYEdylMYJR5A89gnfZ6kxmLQFPZuB27v6vy6d4m/ezZ1mebjllAbIVhGVXZv1mxZV0d4ruoccXuZaVR0qpyWKblZTvVqWiU4VROxOehRc5XJG6m8Lqbl7uVmSv+de8DCetpTA1sloNYw/x+RKi0q4XcFFo86bv8CTrGFRjRy1HGF/n/gTw

Blogger users can only use CSS and JavaScript codes but if you are a wordpress user then you have to create a separate PHP file by pasting the PHP code provided above and include it in the header.php file of your website.

Conclusion: 

After adding the code into your website now your website content is fully protected and no one will be able to copy the content of your website.

For those who don't write their own content I am requesting to them first of all write your own content but if you can't do that then please give the credit link to the owner of the content from where you copy anything. This is the right way.
Previous Post
Next Post

post written by:

I am a web designer and developer. Sharing knowledge is my passion and web designing is my interest but it is not bigger than my interest in Islam.

0 Comments: