How to Prevent Text Selection and Copy/Paste in WordPress (Easy)

Beginner’s Guide for WordPress
WPBeginner» Blog» Tutorials» How to Prevent Text Selection and Copy/Paste in WordPress (Easy)
Recently, one of our readers asked us how they can prevent text selection and copy/paste in WordPress?
Many publishers who want to stop people from stealing their content may want to apply this. This basically just makes it a bit harder for people to copy text from your website.
In this article, we’ll show you how to easily prevent text selection and copy/paste in WordPress.
Preventing text selection and copying & pasting in WordPress
Many bloggers find that their content gets stolen and used without permission.
This can happen through automated content scraping. It can also happen if someone manually copies part or all of your content.
One way to make this more difficult is to prevent people from copying and pasting your text. You can do this by making it harder 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. These techniques will also not stop people who are using auto-blogging tools to fetch the content using RSS.
Keeping this in mind, let’s take a look at a few ways to prevent text selection and copying in WordPress.
This method is simpler, and you’ll just need to add some custom CSS code to your WordPress theme. If you haven’t done this before, then take a look at our guide on adding custom CSS to your site before you begin.
First, you need to visit the Appearance » Customize page in WordPress admin area to launch the theme customizer.
Opening the theme customizer to add custom CSS
In theme customizer, you need to click on the Custom CSS tab from the left column.
Now, you will see a box to add custom CSS to your WordPress theme. Simply copy and paste the following CSS code into that box.
(Code source)
This is how the code will look when added.
Adding the CSS code to prevent text selection and copy/paste
Now, go ahead and try to select some of the text on your page in the live customizer. You will find that you cannot select it.
Don’t forget to click the ‘Publish’ button at the top of the screen to put your changes live for everyone.
For this method, we will be using a WordPress plugin that disables text selection and right-click. 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 details, see our step by step guide on how to install a WordPress plugin.
Upon activation, the plugin will work straight out of the box. Users will no longer be able to copy and paste text from your site. They also will not be able to right click or print your content.
If you want to change the plugin’s settings, it’s easy to do so. Simply go to the Copy Protection page in your WordPress admin. Here, you can choose to enable or disable protection for specific types of content.
The settings for the WP Content Copy Protection & No Right Click plugin
Make sure you click the Save Settings button after making any changes.
You can also change the message that will appear if someone tries to print your content. The message will display like this in the print preview and on the printout itself.
The default message that users will see if they try to print a protected page/post
While many new website owners want to stop people from copy/pasting content from their site, these techniques do not really prevent content theft.
Any slightly tech savvy user can easily open your website code source to copy any content that they want.
Also not everyone copying your text will be a content thief. For instance, some people may want to copy the title to share your post on social media.
This is why it’s not best practice to prevent text selection. We recommend you only use this method if you feel it’s truly needed for your site.
In most cases, it’s better to look for an alternative way to prevent content theft. If a site is re-publishing your content without permission, then you could find out who is hosting the website and send a DMCA takedown notice.
We hope this article helped you learn how to prevent text selection and copy/paste in WordPress. You might also want to see our guide on how to create a membership site with protected content, and our comparison of the best email marketing services for subscriber only content.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
How to Properly Move Your Blog from to
How to Fix the Error Establishing a Database Connection in WordPress
How to Start Your Own Podcast (Step by Step)
Revealed: Why Building an Email List is so Important Today (6 Reasons)
Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.
Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Get fresh content from WPBeginner
WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!
Copyright © 2009 – 2020 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.
Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.


Leave a Reply

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