Follow On Google News

Disable copy paste and right click in blogger using HTML or Javascript

If you want to disable copy command in blogger website, so that no one can copy and use your content, then in this article I tell you the process to

How to Disable Copy Command in Blogger:

If you want to disable copy command in blogger website, so that no one can copy and use your content, then in this article I tell you the process to disable copy command in blogger blog.

Need to disable copy command in websites:

There is a need to disable the text copy command especially in websites, so that content cannot be stolen. Since some people copy and paste the content of a website to their website which is a well-known online fraud, the copy command has to be disabled to avoid it. Because if you do not disable the copy command in your website, then your hard-earned content may be stolen or someone will start copying the content of your website and putting it on their website, which will reduce the ranking and importance of your website. It is possible.

Disable copy paste and right click in blogger using HTML or Javascript

Types of disabling the copy command:

To prevent anyone from copying the content of websites, the copy command is specially disabled in two ways:

Disabling the copy command from HTML code:

In this type, no one can select the text that appears on the webpage and when the text is not selected, then definitely the text cannot be copied. However, the address of any hyperlink and image can be copied, and the image can be downloaded. Because the left mouse button is disabled to select the text of the webpage, while the right mouse button remains enabled. If a webpage is open on a smartphone, tapping on text without a hyperlink is ineffective, while tapping on text or objects with a hyperlink can proceed with the process.

If you want to disable the copy command in this way in your blog website, then by opening the edited HTML of your blog theme, somewhere between <head> and </head> or <body> and </body> Save the theme by adding this HTML code to the appropriate place somewhere between:

<style>body {-webkit-user-select: none; /* Chrome all / Safari all */-moz-user-select: none; /* Firefox all */-ms-user-select: none; /* IE 10+ */-o-user-select: none;user-select: none;}</style>

If you add this HTML code in direct theme it will disable copy command on all webpages of that website. If you want to disable copy command in a particular post or page or some post, do not add this HTML code in the direct theme and update the post by adding the above HTML code at the appropriate place in the HTML coding of that blog post. .

Disabling the copy command from JavaScript code:

In this way anyone can select the text visible on the webpage but will not be able to copy the selected text. In this mode, no objects (text, hyperlinks, and images) can be copied, and images cannot be downloaded. Because the left mouse button remains enabled to select the text of the webpage, but the right mouse button remains disabled. Tapping anywhere other than a hyperlink fails if the webpage is open on a smartphone.

If you want to disable the copy command in this way in your blog website, then by opening the edited HTML of your blog theme, somewhere between <head> and </head> or <body> and </body> Save the theme by adding this JavaScript code in the appropriate places between:

<script type='text/javascript'> 
//<![CDATA[ 
function arpianDisableClick() { 
if (document.all) { 
return false; 


function arpianNoRightClick(e) { 
if (document.layers||(document.getElementById&&!document.all)) { 
if (e.which==2||e.which==3) { 
return false;} 


if (document.layers) { 
document.captureEvents(Event.MOUSEDOWN); 
document.onmousedown=arpianNoRightClick; 
} else{ 
document.onmouseup=arpianNoRightClick; 
document.oncontextmenu=arpianDisableClick; 

document.oncontextmenu=new Function("return false") 
//]]></script>

If you add this JavaScript code in Direct theme it will disable copy command on all webpages of that website. If you want to disable copy command in a particular post or page or some post, instead of adding this javascript code directly in the theme, update the post by adding the above javascript code at the appropriate place in the HTML coding of that blog post. 

Conclusion:

If your niche is on coding stuff then you should not add this copy disable code in your site because the code which you provide direct to your users will not copy.

I hope this article was helpful to you so please let me know in the comment section below. As always, feel free to share this post on your social networks!

If you have any questions, then you should comment on any of our posts because we will always help you to solve your problems with blogging and SEO.

Able People Encourage Us By Donating : सामर्थ्यवान व्यक्ति हमें दान देकर उत्साहित करें।

Thanks for reading: Disable copy paste and right click in blogger using HTML or Javascript, Please, share this article. If this article helped you, then you must write your feedback in the comment box.

Getting Info...

Post a Comment

Comment your feedback on this article!

Recently Published

10+ Foods To Improve Your Vision

आँखों की कमजोरी या कमज़ोरी के लक्षण कई लोगों को होने वाली सबसे आम दृष्टि समस्याएं हैं आंखों में दर्द, आंखों में पानी आना, पढ़ते समय आंखों में पानी आ…
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.