If you're a blogger and you spend a lot of time writing quality content for your blog then you must know that there are some people who can copy your content to their site. Obviously you would not want that.
Your content belongs to you and no person has the right to copy that unless you give them permission but what about others?
You can stop others also by disabling copy paste in your blog.
This trick will disable text selection from your blog that way no one would be able to select any text or paragraph to copy.
Steps to follow
- Open blogger
- Go to 'Layout' and click on 'Add a gadget'
- Select 'HTML/Javascript gadget' from the list like this
- Paste this code directly in that gadget
<!- START disable copy paste --><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><!-- End disable copy paste -->
- Save gadget and visit your blog to see live changes.
very helpful.. thanks
ReplyDeleteHi I just checked. Thanks for your valuable info but I just checked it doesn't disable copy/paste from mobile. What shall i do?
ReplyDeleteHey Tooku,
DeleteI've checked and the code is working on mobile also. You may want to check if some other script is not conflicting in your theme. :)