Code to protects web content from being copied

It feels very upset when the articles are made with difficulty so easily duplicated and reloaded in another web/blog. Even worse, the name of the original maker of the article isn't included. Most people like it simply to increase the number of visitors to their website. What would you do if you know your web content duplicated?, anger toward the person who did it?, cursing these people?, I think it's not the good solution.
There is really the way so that your web content is not easily duplicated. Below is an example of code to protect your web content from the act of duplication.

Disabled right click:
<script language=JavaScript> var message="Function Disabled!"; function clickIE4(){ if (event.button==2){ alert(message); return false; } } function clickNS4(e){ if (document.layers||document.getElementById&&!document.all){ if (e.which==2||e.which==3){ alert(message); return false; } } } if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4; } else if (document.all&&!document.getElementById){ document.onmousedown=clickIE4; } document.oncontextmenu=new Function("alert(message);return false") </script>

Disabled CTRL + A, CTRL + C and text block:
</script>
<script type="text/javascript">
function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof target.style.MozUserSelect!="undefined") //Firefox route
target.style.MozUserSelect="none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false}
target.style.cursor = "default"
}
</script>
<script type="text/javascript">
disableSelection(document.body);
</script>


Keyword: web protect source code | script to protect web content | script anti right click | script anti right click and copy web content

You may also like: