Header Ads

Disable Copy/Paste in Blogger? [Disable Text Selection] - WaseemTechy

Hey guys, It's me, Waseem from WaseemTechy, and in this article, I am going to show you how we can disable copy-paste in Blogger. By disabling the text selection in Blogger or on our website, we will be able to protect our content from being copied. 


Step No.1: Go to blogger.com and open your website/blog. Then click on the theme option, which is on the left side of the Blogger. 

Step No.2: Then click on edit HTML Because we are going to add a code in javascript of our blog so that we could disable text selection in Blogger.


Step No.3: Now add the following code in your <head> section and click on the Save button, and that's it. Congrats you did it well, now your site is secured.

Click On Link to get your code or copy the code from below the picture.


Javascript for Disable copying text from website or webpage

<!-- disable copy
<!- START disable copy paste --><script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'/><script type='text/javascript'> if(typeof document.onselectstart!=&quot;undefined&quot; ) {document.onselectstart=new Function (&quot;return false&quot; ); } else{document.onmousedown=new Function (&quot;return false&quot; );document.onmouseup=new Function (&quot;return false&quot;); } </script><!-- End disable copy paste -->

No comments

Powered by Blogger.