Internet Resource

How to protect your content from being copied

If you want to your content can not being copied by others easily, you can add these javascript codes in your html codes.
In fact, these codes can not run in all browers, but in IE and Firefox, the two most people using, they work wll.
copy the codes and put them after<head>, before </body>

<script type=”text/javascript>
<!–
document.oncontextmenu=function(e){return false;}
//–>
</script>
<style>
body {
-moz-user-select:none;
}

<script type=”text/javascript”>
document.body.oncopy=function(){
event.returnValue=false;
var s=””;
clipboardData.setData(‘Text’,s);
}
</script>

2 Comments on “How to protect your content from being copied

  1. But, at least it is useful for someone who want to protect his content from who want to copy his whole site!!!!!!

Comments are closed.