Find out how to Stop Textual content Choice and Copy / Paste in WordPress (Simple)

Recently one of our readers asked us how to prevent text selection and copy / paste in WordPress.

Many publishers who want to prevent people from stealing their content may want to apply this. This basically just makes it a little harder for people to copy text from your website.

In this article, we are going to show you how to easily prevent text selection and copy / paste in WordPress.

Why should you prevent text selection and copy / paste on your WordPress site?

Many bloggers find that their content is stolen and used without permission.

This can be done through automated scraping of content. It can also happen that someone manually copies some or all of the content.

One way to make this difficult is to prevent people from copying and pasting your text. You can do this by making it difficult for them to select the text on your website.

Remember, tech-savvy users can still view the source code or use the Inspect tool to copy anything they want. Also, these techniques won’t stop people from using auto-blogging tools to get the content using RSS.

With that in mind, let’s take a look at a few ways to prevent text selection and copying in WordPress.

Method 1: preventing text selection using CSS

This method is simpler and all you have to do is add custom CSS code to your WordPress theme. If you haven’t already done so, read our guide on adding custom CSS to your site before you get started.

You have to visit them first Appearance »Customize Page in the WordPress administration area to start the theme customizer.

Open the Design Customizer to add custom CSS

In the Design Customizer, you need to click the Custom CSS tab in the left column.

Now you will see a box where you can add custom CSS to your WordPress theme. Just copy and paste the following CSS code into this field.

* {-webkit-touch-callout: none; / * iOS Safari * / -webkit-user-select: none; / * Safari * / -khtml-user-select: none; / * Konqueror HTML * / -moz-user-select: none; / * Old versions of Firefox * / -ms-user-select: none; / * Internet Explorer / Edge * / User selection: none; / * Version without prefix, currently supported by Chrome, Opera and Firefox * /}

(Code source)

This is what the code looks like when added.

Adding the CSS code to prevent text selection and copy / paste

Now try to select some of the text on your page in the live customizer. You will find that you cannot choose it.

Don’t forget to click the “Publish” button at the top of the screen to publish your changes for everyone.

Method 2: preventing text selection using a plugin

For this method we are using a WordPress plugin that disables the text selection and right-clicks. This would also protect images from being downloaded and reused.

First, you need to install and activate the WP Content Copy Protection plugin. For more information, see our step-by-step guide on installing a WordPress plugin.

After activation, the plugin works immediately. Users can no longer copy and paste text from your site. You also cannot right-click or print your content.

If you want to change the settings of the plugin, this is very easy. Just go to the Copy Protection page in your WordPress administrator. Here you can enable or disable protection for certain types of content.

The settings for the WP Content Copy Protection & No Right Click plugin

Make sure to click the Save Settings button after making changes.

You can also change the message that appears when someone tries to print your content. The message is shown in the print preview and on the printout itself.

The default message users see when trying to print a protected page / post

Is it a good idea to prevent text selection in WordPress?

While many new website owners want to prevent users from copying / pasting content from their website, these techniques don’t really prevent content theft.

Any slightly tech-savvy user can simply open your website code source to copy the content they want.

Also, not everyone who copies your text will be a content thief. For example, some people may want to copy the title to share your post on social media.

For this reason, it is not recommended to prevent text selection. We recommend using this method only if you think your website really needs it.

In most cases, it’s better to look for an alternative way to prevent content theft. If a website republishes your content without permission, they can find out who is hosting the website and send a DMCA deactivation notification.

We hope this article has helped you prevent selecting text and copying / pasting it in WordPress. You might also want to check out our guide on how to create a membership site with protected content and our comparison of the best subscriber-only content email marketing services.

If you enjoyed this article, please subscribe to our YouTube channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

Comments are closed.