How to copy protect a website or blog

       Today I am going to explain you the most interesting concept of copying scripts. As all we know that some of the web bloggers copying script from another blogs or websites and paste it into their posts or pages.

website copy protector
          Basically some of the top adsense companies like Google adsense doesn't accept the websites or blogs which contain copy scripts. To become a best blogger, every one should remember that we should write our own articles without copying.
If you want to protect your website or blog from copying just include the scripts as given under.

For Blogger:

Step 1: Login to Blogger Dashboard >> Template >> Edit HTML


edit template in blogger

Step 2: Just paste code below right after “<head>” tag
<!-- start Copy restriction code Lonarbi.com-->
<script type="text/javascript">
var omitformtags=[&quot;input&quot;, &quot;textarea&quot;, &quot;select&quot;]
omitformtags=omitformtags.join(&quot;|&quot;)
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!=&quot;undefined&quot;)
document.onselectstart=new Function (&quot;return false&quot;)
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<!-- End Copy restriction code Lonarbi.com-->

Step 3: Now Save Template and it will protect your entire blog.

Disadvantages:
The above code will protect entire blog, that affects content on "blockquotes"  also. But some blogs guides tips about blogger. They give us some piece of code, need to copy and paste into our blogs. To achieve this disadvantage, go to  >> Next Tutorial 

For Websites:

Step 1: Edit your webpage script which you want to protect.

Step 2:
Just paste code below right after “<head>” tag.

<!-- start Copy restriction code Lonarbi.com-->
<script type="text/javascript">
var omitformtags=[&quot;input&quot;, &quot;textarea&quot;, &quot;select&quot;]
omitformtags=omitformtags.join(&quot;|&quot;)
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!=&quot;undefined&quot;)
document.onselectstart=new Function (&quot;return false&quot;)
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
<!-- End Copy restriction code Lonarbi.com-->

Step 3: Now save your webpage. Continue this for each webpage you want to protect.


You may Interested
>> How to disable mouse right click on a webpage or blog. 
Previous
Next Post »
Related Posts Plugin for WordPress, Blogger...