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!
Let me know what you think of preventing copying and pasting of your work. Have you already done this? Will you in the future?
- Go to Dashboard
- Select your Blog
- Go to Layout
- Add a Gadget
- Select HTML/JavaScript gadget
- Paste the following code in the box
- Save your new gadget
- Save your new layout
- 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" );
}
</script>
Let me know what you think of preventing copying and pasting of your work. Have you already done this? Will you in the future?
Comments
Post a Comment