How to protect your content from being copied

2

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

  1. Flex

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

Follow Me