How to Disable Right Click on Your Blog ?
Have you visited sites where the right click was disabled, Do you tried to find out the answer why if not today in this post I am going to tell to you why more popular sites disable this function?When It comes to editing documents right click is the button you press for copying, pasting and editing.
But why popular websites disable this function answer is they want to protect their article from being copied and published on other sites.
Implementing the same on Blogger/Wordpress Blog is quite an easy task just follow the steps below:-
Step1. Go to Dashboard > Layout > Add Gadget > HTML / JavaScript.
Step2. Copy the following code and paste in HTML/Java Script Box.
<script language=JavaScript>
<!--
//Disable right mouse click Script
//Code by www.lafandar.org
var message="Function Disabled for protecting our data";
///////////////////////////////////
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>
Step3. Click on Save and then Save Arrangement.
Step4. You can change the message which is displayed red in above script.
Result will be like this:-
Conclusion
Blogger Should implement this script on their blog to protect their data from being copied to another website.Some bloggers use Copyscape badge to protect the data but this is not enough. Just implement this easy script on your blog saves you from plagiarism.
How to Disable Right Click on Your Blog ?
Reviewed by Ankita
on
शुक्रवार, फ़रवरी 05, 2016
Rating: