Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,170,946 members, 7,879,917 topics. Date: Thursday, 04 July 2024 at 09:26 AM

How To Prevent Text Selection And Copy/paste In Wordpress (easy) - Webmasters - Nairaland

Nairaland Forum / Science/Technology / Webmasters / How To Prevent Text Selection And Copy/paste In Wordpress (easy) (130 Views)

Easy Ways To Copy Content From A Website With Disabled Text Selection / How To Install Plugin On Wordpress – Easy Guide For Beginners / Step-by-step Guide On How To Embed A Facebook Video In Wordpress (2) (3) (4)

(1) (Reply)

How To Prevent Text Selection And Copy/paste In Wordpress (easy) by greattechy(m): 12:04pm On Jun 25, 2021
Why Prevent Text Selection and Copy/Paste on Your WordPress Site?

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.

Method #1: Preventing Text Selection Using CSS

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 the WordPress admin area to launch the theme customizer.

Opening the theme customizer to add custom CSS

In the 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.

Check out the (Code source) properly on the Blog >>> https://blog.oziconnect.com/protect-text-from-copying-in-wordpress/

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.

Method #2: Preventing Text Selection Using a Plugin

Continue Reading Here on the Blog for Method two ---> https://blog.oziconnect.com/protect-text-from-copying-in-wordpress/

(1) (Reply)

Get Your Movie Download Website/streaming Website + 1 Month Support / Build App For Your Blog / Best Review Sites Online

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.