Protect Your Blog from Plagiarism: How to Disable Right Click

Have you observed or noticed some blogs or websites that won't let you to click with your mouse right button when your on their blog area? This function is very helpful to site owners especially when they want to lower the possibilities of contents to be copied and post to other sites.

Right click function is a very important element in web browsing, but others take advantage of this. And if you want to protect your site from Plagiarism take a look of the steps below. 

Step 1: Go to your Dashboard > Layout > Add Gadget > HTML/ Javascript
Step 2: Copy the code below and paste it the widget.

<script language=JavaScript>
var message="Function Disabled!";

///////////////////////////////////
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>

Step 3: Save the code and have a look in your blog or observe if it is working.





0 comments:

Post a Comment