April 26, 2018

How to disable right click on blogger/blogspot, Easy steps!

Normally, most blogs keep the right click option enabled to let their users navigate, copy, print, save and reload their webpages. But sometimes the dirty minded users just visit your blog for just copy pasting your content. So to stop them copy pasting and to protect your blog, you have to disable the option of right click.

Once right click has been disabled the option of copying from right click is banned. But You all know the shortcut key ctrl+c to copy the text. so the content is till not secure.

So, the next step is that if you disable text selection in your blogs then ctrl+c also won't work.

Now, the blog is secure and protected. You can check out this by right clicking on my blog.

The Steps to disable right click in blogger is shown below.


Step 1: Go to Layout Tab in the left side of the blogger menu.



Step 2: Click on 'Add a Gadget' at anywhere (You can choose sidebar left or right or anywhere where you can add html script as this won't appear)


Step 3: Now choose the widget 'HTML/ Javascript'.


steps to remove copy paste option


The blank space to enter the blogger's html script would appear. Paste the following code from the link and click 'save'.


<script language=javascript>
<!--
//edit by iamravlo
var message="Right Click Has Been 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>
Link to copy this script: Click Here


NOTE: First Apply html script for disabling text selection in your blog : Click Here
and then apply html script for disabling right click in your blog: Click Here

Perform both these tasks to have complete protection of your blog.