How To Protect Website Content Text From Being Copying Using Javascript 2021

 Importance of Protect website content


Content is very important material for a website. In this case, Content could be a article or photo or video etc. But we need to keep this safe. I mean we should protect our content. Because maybe your content being copied. So if you want to protect you website content then you can do it by completing some effective steps.


In some case, your website visitors copy your text content from your blog or website and published another place without giving any Credit. This is so disturbing matter. Again If you want to earn from website content with google ads. Then your content should be 100% Unique but if someone copied your content before indexing then google select your content as plagiarism. So get rid of this problem you can fix it by many process. But today i will talk about one process. I will show you, how you can protect your content using Javascript in your blog or website.


Ways to protect website content


Well, First of all you can protect your website content using DMCA but in this case you have to pay for it. This is not free service but it's work very much better.

Also Read : Best 5 Gaming Earphones for pc and mobile .

Again you can protect website content using theme html and CSS code. By this, if anyone trying to copy your content text then a pop-up alert will show like  " Alert ! this website content is protected  " but for this you have to gain some coding knowledge.


And the final and easy way to protect website content is using JavaScript in your website. It's so easy and quick responding way. In this case no one can copy anything from your website. You provide information they can read but can't copy anything. In this article i will show you how can you protect website content using JavaScript on your website.


Protect  website content using javascript 


If you are using Google's Blogger then the task will be very easy for you. Just you have to go Themes Layout section and paste JavaScript code on any widght and save. You can also do this on theme HTML section, in this case you have to paste JavaScript code Between <body> JavaScript code </body>  tag section.

If you website host on WordPress  then use this code on your website HTML section. In that case you have to edit HTML code and drop this code between <body> DROP CODE <\body> Tag.


How to Add JavaScript on website


I will show you how you can paste and add JavaScript code on Blogger Step by Step. If you are on Wordpress then just copy JavaScript code and paste it on your HTML file section. Let's see how can add code on blogger.

Also Read : Walton AVIAN WS Gaming Pc Review

  • First you need to log in to Blogger
  • When the dashboard is open, you have selected the Layout from there.
  • Now you have clicked on the cassette from the sidebar.
  • This time you can show many option, Find HTML / JavaScript from options. And click on it
  • Now copy the code given below and  paste it. And this will be done only after saving.


JavaScript Code


<script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script><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>

            

About The Post

Hope you like this article or you have found out something through this article. If you have benefited from this article, please let us know in the comment box.


1 Comments

Post a Comment

Previous Post Next Post