How To Protect Your Content From Being Copied Easily


This is a simple way to disable the text selection and the right click functionality on a webpage. It helps webpage owners protect their original contents from being copied.

Stop CopyingAlthough this is a temporary method, but comes handy when your website comes across visitors that intent to simply copy your content into their pages and call it theirs.

All you need to do is copy these JAVASCRIPT code into your webpage.

To disable TEXT SELECTION

<!– Disable Copy and Paste–>
<script language=’JavaScript1.2′>
function disableselect(e){
return false
}
function reEnable()
{
return true
}
document.onselectstart=new Function (&quot;return false&quot;)
if(window.sidebar)
{
docment.onmousedown=disableselect
document.onclick=reEnable
}
</script>

Please see that you insert the above Javascript code in between the <head> and </head> section of your webpage.

Here is another JAVASCRIPT that disables Right click functionality on your page.

To disable Right Clicks

<script language=JavaScript>
<!–

//Disable right mouse click Script

//By Hackerzgeeknet

 

var message=”Function Disabled! Copying others material is not a good idea. Create yours.”;

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>

Another suggestion is to watermark your images so that they may not be copied.

Filed in: How To Tips, Internet Tips Tags: , , , ,

You might like:

How To Involve Yourself In Blogging And Make It Interesting How To Involve Yourself In Blogging And Make It Interesting
Top 10 Programming Languages To Boost Up Your IT Career Top 10 Programming Languages To Boost Up Your IT Career
Just Drag And Convert Time Zones Easily Just Drag And Convert Time Zones Easily
How To Download Your Complete Facebook Data How To Download Your Complete Facebook Data

Leave a Reply

You must be Logged in to post comment.

© 2014 EnterWebHub. All rights reserved. XHTML / CSS Valid. XML Sitemap
.
Wordpress Themes -
Key navigation plugin by Jaspreet Chahal