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

Shares:

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *