WordPress

How to Disable Right Click, Copy Paste in WordPress with and without plugin

Blogging is the best way to share your ideas with the world, but what if someone copies your content? You don’t know what to do in that case. Some authors disable the copy-paste function for their websites. In this article, we’ll understand how to disable right-click on a WordPress website.

And also the impact of disabling the right click on Search Engine Optimization of the website.

How to disable right click WordPress
How to Disable Right Click WordPress

Disable Right Click Without using a Plugin.

In this method, you’ve to paste the following code into the theme file of WordPress. To do that, scroll to WordPress dashboard > appearance> edit theme. Now select the footer.php file to add the following code in the footer section of the website.

Find the </body> tag in footer.php, then paste the code provided just above the closing of the body tag.

	<script type="text/javascript">
		$(document).ready(function () {
			//Disable cut copy paste
			$('body').bind('cut copy paste', function (e) {
				e.preventDefault();
			});
			//Disable mouse right click
			$("body").on("contextmenu",function(e){
				return false;
			});
		});
		</script>

Save the footer.php file, and delete the cache (if any) to load the script with pages. This code will prevent right-click on every page of your website. So the website visitors not able to perform right-click or copy-paste functions.

. It will also protect the content from being copied by an average user. We added the javascript code in the footer section because it doesn’t affect the page speed/render-block of the website. But there is some drawback to this, that we’ll discuss in the latter part of this article.

You can also read how you can block right-click for a particular section of your page.

With the help of Plugin, Don’t Allow Copy, Paste.

Using this method, you can disable right-click with the help of a Plugin. First, you have to install a plugin called WP Content Copy Protection & No Right Click – WordPress plugin; if you don’t know how to do that, learn How to install a WordPress plugin.

After activating, you can enjoy its feature that will help you in protecting your content.

This will protect the website from being copied by disabling Ctrl+C, Ctrl+V, Ctrl+Shift+I, Ctrl+U. The plugin will also flash a notice that the content is protected when someone right clicks on your website. This is free to use.

Now it’s time to understand the disadvantage of disabling right-click. And who should disable the right-click?

The disadvantage of disabling Right-Click, ctrl button, Copy-Paste

We prefer SEO of the website. If you disable right-click, you are spoiling the user experience, leading to pogo-sticking. You can’t stop anyone from copying the content if they wish to do so. They can use any alternative methods to copy your content.

That means disabling right-click, you’re making a dent on your website. In other words, this practice is spoiling the search engine optimization of the webpage. That’s why we recommend not to use such methods if you really want to grow in blogging.

Should you disable the Right-Click?

Disabling the right-click will protect your content from being copy by the newbie. Nothing can stop a pro copycat from copying any content.

S/he can copy anything from the webpage or website as everyone has their own methods to do that, even if you’re using any plugin or script on the website. If this method can protect the piracy of content, then every developer, even myself, will use this.

How to avoid content to copy

You can interlink all the content of your website. So that, when someone copies the content from your site, They also copy the links of your website. This will provide a backlink to your website and help Google analyze that the content is yours.

Suppose someone copies your content and publishes that on their website. Google will crawl, analyze and process for indexing. Google understands the content is scrapped in the data process and will never index a scrapped content. However, if the content is internally linked with other content available, that site will also provide a backlink to your website.

We hope you like this article if you’ve any question regarding this. You are free to ask in the comment section below.

Ashok Kumar

Ashok Kumar working in the Search Engine Optimization field since 2015. And worked on many successful projects since then. He shares the real-life experience of best SEO practices with his followers on seoneurons.com. You also can learn Advance level SEO for WordPress, Blogger, or any other blogging platform. Stay tuned.

Related Articles

One Comment

Leave a Reply

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