How To Disable Copy Paste in Blogger in 2021 - School Tech

2 years ago

Here, In this artical I will guide you to disable text selection and protect your blogger content from stealing. There are many other methods to disable select text option in website which uses Javascript code. 

If you disable text selection on your blog then nobody can copy your content. So, to disable text selection. Follow the following steps. 

 

Step 1: Goto your blogger and click on Layout Menu from the left. 

Step 2: Click on Add Gadget from the layout. (You can add it anywhere on sidebar, footer etc.)

Step 3: Choose HTML/JavaScript widget. Blank window with Title and Content will appear. 

Step 4: Put anything in title and copy the following script and paste it into content. Finally save it. 

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>

Now, Text Selection will be disable in your blog and no one can copy your content. 

  1819