WordPress

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

In this article, we’ll discuss how to disable right-click on WordPress as our primary focus is on Search Engine Optimization so that you can grow. We’ll also discuss the impact of disabling right-click on SEO.

Disable right-click on WordPress to Protect the content, with and without using a plugin.

Disabling the right-click will protect your content from being copy by the newbie. But you’ve to keep one thing is in your mind. You can’t protect the content from being copied by a copy cat developer. S/he can copy anything from the webpage or website as everyone has their own methods to act, even after using any plugin or script. But still, you can use these methods in your WordPress website.

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

Disable Right Click Without Plugin.

In this method, you’ve to paste some code into the theme file of WordPress. To do that, visit admin dashboard >appearance>edit theme. Now select the footer.php file to add some code in the footer section of the website. We add it in the footer section because it doesn’t affect the page speed/render-block of the website.

Just find the </body> tag in footer.php then paste the code provided below.

	<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>

This code prevents right click on every page of your website. Now no user can right-click on your website. It will also protect the content from being copied by a normal user.

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 by simply using a Plugin. 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, so if you want to disable it using plugin only. Then you’re free to use the plugin provided above.

But with this, there are a lot of disadvantages of disabling right-click or copy-paste. Let’s discuss all the cons of doing so.

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

As we always prefer a better SEO for a website to boost that website. If you disable right click using any method provided above. You are spoiling the user experience, and this would lead to pogo-sticking. You can’t stop anyone from copying your content if they wish to do so. They can use any alternative methods to copy your content.

Using the above methods, you’re making a dent on your own website. That’s not a good sign of on-page SEO. That means this practice spoiling your search engine optimization. So we recommend not to use such methods if you want to grow in blogging. They are newbies or copycats who copy your content. With copying content, google analyze that the content is scrapped, so not able to rank. So don’t worry about them.

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

Leave a Reply

Back to top button