How to protect articles and images on your wesite from being copyed and pasted? Following methods can make it harder for web content theft.

Method 1: disable right click,disable any paste and copy。

<body topmargin=”0″ leftmargin=”0″ bgcolor=”#ffffff” oncontextmenu=’return false’ ondragstart=’return false’ onselectstart =’return false’ onselect=’document.selection.empty()’ oncopy=’document.selection.empty()’ onbeforecopy=’return false’ onmouseup=’document.selection.empty()’>

Explain:
oncontextmenu=’return false’ <!–disable right click –>
ondragstart=’return false’ onselectstart =’return false’ onselect=’document.selection.empty()’ oncopy=’document.selection.empty()’ onmouseup=’document.selection.empty()’<!–//disable select –>
onbeforecopy=’return false’ <!–disable copy–>
Method 2: disable “save image as” function, without disable right click

In “HEAD” section, add following code:
<meta http-equiv=”imagetoolbar” content=”no”>

In”BODY”section, add following code:

<script language=”javascript”>
function Click(){
if(window.event.srcElement.tagName==”IMG”)
{
window.event.returnValue=false;
}
}
document.oncontextmenu=Click;
</script>

Method 3: only disable copy and paste function .

<body self.event.returnValue=false onselectstart=”return false”>

Method 4:disable image toolbar and right click on a image.

Disable image toolbar:<img src=”EXAMPLE.jpg” width=”300″ height=”300″ galleryimg=”no”>
Disable right click:<img src=”EXAMPLE.jpg” width=”300″ height=”300″ oncontextmenu=”return false”>

Method 5: disable web cache.

First in “HEAD” section add following code:
<!– MICROSOFT/NETSCAPE/MOZILLA BROWSERS all add following tag –>
<meta http-equiv=”Pragma” content=”no-cache”>

<!– MICROSOFT BROWSERS add following tag –>
<meta http-equiv=”Expires” content=”-1″>

Second between</body>and </html> insert following code:
</body>
<!– add additional HEAD code –>
<head><meta http-equiv=”Pragma” content=”no-cache”></head>
</html>

Method 6: disable web browser.

For example, to disable: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1) Opera 7.54
You can add following code in “JAVA” setting in “HEAD” section:
if(navigator.userAgent.match(/Opera/ig)) {
location.replace(”opera-not-supported.html”);
}

Method 7: always use frame to hide your real URL.

<script language=”javascript”><!–
if (window == top)top.location.href = “frames.htm”; //frames.htm为框架网页
// –></script>

Method 8:protect your page from being framed into otherone’s webpage.

<SCRIPT LANGUAGE=javascript><!–
if (top.location != self.location)top.location=self.location;
// –></SCRIPT>

Method 9:encode your webpage and watermark your images.

1-8 methods can only make trouble to web theaf who know little about computers. A more effective method to protect your website content is to encode your webpage and water mark your images.