How to protect your web page from copy cats

Wah! You finally wrote a blog post that
But wait, what if users or other bloggers copy the information and use it somewhere else without any credits?

Say no to copy paste



 Which may
  • Make your audience feel awkward
  • Bring down search rankings
To solve this problem, you can add a small code to your blog, which makes your posts non copyable and protect articles from copycats, this code is called no copy code

Code to Protect Webpage from Copying

<!-- No copy code by booost bloggers -->
<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<!-- Visit booostbloggers.com for more-->

Add this code before </head>
If you are using it in your blog post, make sure to link back to this post


Happy Blogging!!

No comments:

Post a Comment

All comments will be moderated before it's displayed, so don't include hyperlinks in comments