HackingUniversity - Hacks . Tricks . How-To's

16 May 2012

How to Disable Right Click in Blogger Blogs

Blogger logoDisabling 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 I had also applied this script earlier which disables the right click on website but recently I just removed this script as many people were having problems.

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 Blogger > Template > Edit HTML.
  2. Now press Ctrl + F and search for </body> tag & paste below code above it.

&lt;script language=javascript&gt;

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.oncontextmenu=new Function(&quot;return false&quot;)

// --&gt;

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.