Friday 25 April 2014

How to Disable Right Click Button on Blogger

How to Disable Right Click Button on Blogger



With millions of Bloggers around the World, You can't really prevent other bloggers to copy your Blog's Content. But a simple way to protect your Blog is by Disabling the Mouse's Right-Click button on Blogger to avoid other people copying your own stuffs. But this procedure can't make sure that your Blog is now really protected because there are still many bloggers that has no conscience. So if you can't prevent them from copying your content, You can just report them on DMCA and let them take the site down.

This Trick is now used by many Blogs right now but it is most used on Internet Marketing using Blogger Platform. There are two codes below, The first one is when you hit the right-click button on your mouse, It will not show any warnings but the other one shows warning message when you hit the right-click button.

How to Disable Right-Click Button on Blogger - Without Warning Message:

For Disabling Right Click mouse button, I most recommend this script below without a warning message because your visitors won't be annoyed on the warning message that pops out when they hit the right-click button.

  • The First thing you need to do is to Go to Templates.
  • Edit HTML.
  • Then put the Below Code just above </head>.

<script language=JavaScript>
<!--
//For full source code, visit http://www.dynamicdrive.com
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
// -->
</script>
You don't need to edit any codes or words above so you just need to click Save Template and you're done!

How to Disable Right-Click Button on Blogger - With Warning Message:


  • Go to Templates.
  • Edit HTML.
  • Then copy the code below and paste it above </head>

<script language='JavaScript'>
var msg="Function Disabled";
function disableIE() {if (document.all) {alert(msg);return false;}
}
function disableNS(e) {
if (document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(msg);return false;}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=disableNS;
} else {
document.onmouseup=disableNS;document.oncontextmenu=disableIE;
}
document.oncontextmenu=new Function("alert(msg);return false")
</script>

Customizations: 

Function Disabled- Change this to what warning message you want to be displayed when they hit right-click.

Final Words:

This codes aren't mine and the credits are given to the respected owner of this cool scripts. If you have any comments, problems, or suggestions. Please dispose your comments below.

No comments:

Post a Comment