Please find the below code snippet for restricting content copying in a website
<html>
<head>
<META HTTP-EQUIV=”Pragma” CONTENT=”no-cache”>
<META HTTP-EQUIV=”Expires” CONTENT=”-1″>
<META HTTP-EQUIV=”imagetoolbar” CONTENT=”no”>
<script type=”text/javascript”>
function clearData(){
window.clipboardData.setData(’text’,”);
}
function ccb(){
if(clipboardData){
clipboardData.clearData();
}
}
setInterval(”ccb()”, 1000);
</script>
</head>
<body onload=”ccb()” onbeforeprint=”return false” onprint=”return false” onbeforecopy=”return false” oncopy=”return false” onbeforecut=”return false” oncut=”return false”>
Pradeep ASSRR
</body>
</html>
Restricting content copy from a website involves the following:
1. Ctrl + C should be disable
2. Print screen should be [...]