Wednesday, May 23, 2012

How to Disable Right Click in Blogger Blogs


Disabling right click in Blogger websites is really easy as it does not need any technical knowledge you simply have to copy and paste some script into your <body> and that’s it everything is done.
Now why will anyone want to disable the right click in their website,Well there can be many reasons but the main reason which comes to anyone's mind is the content copying and the page source viewing well there are many another ways to view the source or copy content as you can see on my website 
So you can check out the steps below for disabling right click on Blogger Blogs and protecting your content from being copied.
1. Go to your dashboard in Blogger.com
2. Now click Template and than click Edit HTML now click on Proceed.

3. Now simply copy and paste the below script and paste it right above the </body> tag.
&lt;script language=javascript&gt;
&lt;!--

var message=&quot;&quot;;
function clickIE()
{
  if (document.all) {
    (message);return false;}
}
function clickNS(e)
{
if (document.layers||(document.getElementById&amp;&amp;!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(&quot;return false&quot;)
// --&gt;
&lt;/script&gt;
4. That’s it now click on Save Template Button, now script is up and running on your blog just check it out refresh your blog and try to right click you will not be able to do that, ask your readers to do this thing.

No comments:

Post a Comment