Join our Telegram Channel to stay updated on Tech, SEO, and Online Money Making Join Now!

How to Disable Right Click on Blogger Blog?

You should disable right click on your blogger blog to protect your blog content from copying. Using this javascript you can block right click on blog
Today in this blog post I am going to share a method to disable right click on blogger blog. I have already shared a method on how to disable copy-paste in the blogger blog.

If you regularly read blogs. So you must have seen that some bloggers had disabled the right-click option in their blog. Let me tell you why they do this.

Those bloggers do this because they want to protect their blog content from copying. If you select any text in their blog and then right-click, nothing will happen. I mean there will be no option to copy.

disable right click on blogger blog
how to disable right click on blogger blog 2020?


However, there is another reason for disabling right-click on your blog. If you do not disable right-click in your blog. So the content thieves will save your blog post's web page offline by right-clicking on it.

After that, they can easily steal the content of your blog post, even if you have disabled the copy-paste in your blog. So let's start the tutorial to block right-click in your Blogger blog.

Steps to Disable right-click in blogger blog

  • Open your blogger account and choose the blog in which you want to turn off right-click options.
  • After choosing the blog navigate to its Layout settings.
Blogger layout settings tab

  • After that, click on add a gadget on the Blogger layout section
Add a gadget in blogger layout settings

  • When you click on add a gadget pop up window will appear in which you have to choose HTML/Javascript Gadget.
Add HTML/Javascript gadget in blogger layout

  • After choosing the HTML/Javascript Gadget. It will open a window in which you have to copy and paste the javascript code to disable right-click on your blog which is given below.

<script language=JavaScript>
<!--
//Disable right mouse click Script
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>.

  • In the above code, you will see var message="function disable". You can put your custom message at the position of function disable. It is shown to the user when the user tries to make a right-click on your blog.
Javascript code to disable right click in blogger blog

  • After entering the above javascript code in HTML/Javascript gadget. Just Click on the Save button.

Conclusion 

Now you have successfully disabled the right click on your blogger blog. So nobody can't copy your content But make sure that if you want to share some code which you want to allow copying.

You should make that code in double-quotes. So anyone can copy it easily.

Hope this post on How to disable right click on blogger blog helps you out to prevent your content from getting copied.  If it helps then share this with any needy person because sharing is caring.
My name is Md Shoyab. I am a YouTuber and Blogger for my passion. I love discussing Technology, Blogging and Video Editing. I want to solve problems in your life by sharing my knowledge with you.

2 comments

  1. Sir please i need some help regarding blogger please share your facebook id i wana talk in detail thanks.
  2. Please help! Your other post for copying nothing EXCEPT blockquote, pre, code was working fine.
    But it wasn't working on images!

    I tried this but now even on pre, blockquote, and code I am not able to copy.

    Please help!

    www.doveranalyst.com
Thanks For comment and please don't spam the comment section.
© Tech Generator. All rights reserved.