Monday, November 19, 2012

How To Disable Right Click on Blogger: Protect Blog Contents

Disable right click on Blogger and protect it from CopyCats
How To Disable Right Click in Blogger(Disable right mouse click Script): Do you want to protect your Blog posts to be copied?.Do you want your posts be unique and no one can't to copy your blog contents.The Optimum solution is to prevent others to copy your posts.and to disable right click on Blogger blogs. so that even if user select the text, they can't to copy it. because the right click will not work and also CTRL+C.
However if you are providing services for the Bloggers and users by giving them codes such as widgets,plugins. then it will be the drawback. however you can also get rid of this problem. then there is another method that you can use which allow users to copy codes just by pressing a javascript button.

How To Disable users to copy your posts?:
The Best way is to Disable right click on your blogs.
Follow the Below Steps To implement this technique on Your Blogger Blogspot Blog:
Step-1: Go Your Blogger Dashboard Select A Blog.
Step-2: Go to Layout of your Blog and Add A Gadget Select HTML/JAVASCRIPT
Step-3: Now Copy Below code and Paste.

<script language=javascript>
<!--
//Disable right mouse click Script
//By TrixKing Blog

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>

Finally Save it and You are Done!
Now try to select some text in your Blog and you will see that right click does not works.
When you right click this message will Pop "function disabled".
Now if you want to change this text then change the text in above codes.
This Line : var message="Function Disabled!";

No comments:

Post a Comment