How to: Prevent Text Copying and Pasting on your Blog

Recently, I've started to share a more posts that are quite personal. On my business website, I've also shared some examples of what I write to people and I really don't want people copying and pasting all my hardwork. As mean as that sounds, I did work hard and while I found inspiration from online resources I didn't do any copying and pasting. For that reason, I looked in how to prevent that and it was super easy!

  1. Go to Dashboard 
  2. Select your Blog 
  3. Go to Layout 
  4. Add a Gadget 
  5. Select HTML/JavaScript gadget
  6. Paste the following code in the box
  7. Save your new gadget
  8. Save your new layout
  9. Done
I'm not sure if you will be able to copy and paste it now that I have done this so you can also find it here. This is the 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 true" );

Let me know what you think of preventing copying and pasting of your work. Have you already done this? Will you in the future?