The collection of many electronic circuits and electronic projects that easy to build with PCB layout for the hobbyist and study.

How to Protect your Blog Contents from Being Copied

No comments
It is awful to see word for word copy of your original content on others’ blogs. Content filching has become a real nuisance for those who post quality content on their blogs but soon see it exactly copied and pasted on other blogs. The most annoying thing is when this copied content mars the ranking of your own blog in search engines.

How to Protect your Blog Contents from Being Copied

Though it is impossible to totally wipe out the content stealing, yet there is an effective way to prevent the content stealers to a large extent from pinching your hard worked content. Through this post I intend to tell you about a simple JavaScript code to prevent copycats from copying your text or scrapping your RSS feed.

It is a very simple script preventing the CopyCats from Copy option as well as Select All option even using short cut keys. This keeps the people away from scraping your content. Follow the instructions mentioned below to install the JavaScript code in your blog and get rid of content scrappers.

Follow these steps


1: Go to Blogger Dashboard

2: Select Layout from drop down menu >> Add a Gadget >> Select HTML/JavaScript Gadget

3: Now Copy the below code and paste inside that HTML/JavaScript gadget

<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>

Save your template and view your blog. Just select any text and try to copy it; you'll see the you can’t do it. It has disabled all options of copying, i.e. CTRL+A and CTRL+C on keyboard. Hope you enjoy and benefit from it.

Hopefully you will like this article same as our previous posts. We always give respect to our reputable readers by providing the latest and informative knowledge. Again if you need any assistance or tips feel free to contact us. We always appreciate your advises and comments.

No comments :

Post a Comment