How to Disable Right Click on Blogger ?

Hello everyone, in this post I am going to talk about how to disable right click on blogger. You must have seen that some bloggers do not allow copy
How to Disable Right Click on Blogger

Hello everyone, in this post I am going to talk about how to disable right click on blogger. You must have seen that some bloggers do not allow copying of content from their blog and for this they disable right click on their blog. This means that when you select text from their blog and right click to copy that content, it will not work.

As such, overcoming copy-paste is actually quite important, but what can people who want to copy articles on our blog do, as the AGC tool is becoming increasingly sophisticated now.

Essentially, bloggers who copy the article will use the AGC tool to re-enable copy paste on your website. So that they can then easily copy your blog article.

It is a pity that someone steals our researched and hard written articles from our blog. But what if right click is turned off for not using features like copy paste on our website. In this post I will share a tutorial on how to turn off right click, so please read the post till the end.

How to Disable Right Click on Blogger :-

You can turn off right click in two ways, first way is html and second way is javascript. You can use either of these two methods. But you can use both the methods if you want.

Using Html

Step 1 :- First Go To Blogger.Com Then Login Your Account.
Step 2 :- Then Click on Theme Menu.
Step 3 :- After Click on Edit Html.
Step 4 :- Then Copy The Given Html Code and Put it Under <body>.

 <b:attr name='oncontextmenu' value='return false'/>
 <b:attr name='onkeydown' value='return false'/>
 <b:attr name='onmousedown' value='return false'/>
Step 5 :- Finally, Don't Forget To Click on Save.

Using JavaScript

Step 1 :- First Go To Blogger.Com Then Login Your Account.
Step 2 :- Then Click on Theme Menu.
Step 3 :- After Click on Edit Html.
Step 4 :-Then Copy The Given JavaScript Code and Place it Above </body>.

With Alert Notifications

<script>
/* Right Click Disable JavaScript By Www.SmartTechMukesh.Com */
document.addEventListener("contextmenu", e => {
alert("Sorry Right Click Disabled");
e.preventDefault();
});
</script>
Without Alert Notifications

<script>
/* Right Click Disable JavaScript By Www.SmartTechMukesh.Com */
document.addEventListener("contextmenu", e => {
e.preventDefault();
});
</script>
Step 5 :- Finally, Don't Forget To Click on Save.

Conclusion :-

You have never seen HTML and Javascript so easy to disable right click. In this post, I have shared a tutorial on how to disable right click on blogger. I hope this tutorial can be quite useful for all you bloggers and developers. Thank you for visiting our website.

Refrence :
Www.SmartTechMukesh.Com

About the Author

Hello Friends, My Name is John M Smith and Welcome To Our Website. My Passion is to Share Knowledge With Everyone. Also I am a Website Designer.

Buy me a Coffee

3 comments

  1. wow awesome thank you very much. i apply on my website <a href='https://www.therepublicpost.in> indian government jobs</a>
  2. wow awesome thank you very much. i apply on my website indian government jobs
    1. Welcome
Leave your opinion or any doubt about this article. Don't try to spam, our team reviews every comment.