How to Disable Right Click and Copy/Paste in WordPress 2022

Blogging is the best way to share your ideas with the world, but what if someone copies your content? You can disable right-click, copy-paste, and text selection. This article will understand how to do it and its pros and cons.

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

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">
    jQuery(document).ready(function () {
        //Disable cut copy paste
        jQuery('body').bind('cut copy paste', function (e) {
        //Disable mouse right click
            return false;

Save the footer.php file, and delete the cache (if any) to load the script with pages. This code will prevent right-clicking on every page of your website. So the website visitors are 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 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 protect 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 spoils 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 copied by the newbie. Nothing can stop a pro copycat from copying any content.

The copycat expert can copy anything from the webpage. No plugin or script can stop them. If this method can protect content piracy, every developer, even I, 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 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.


Leave a Reply

Your email address will not be published.

Back to top button