How to disable copy and paste on WordPress without plugin 2023

In this post, I’ll show you how to deactivate copy and paste in WordPress without requiring a plugin. You only need to add a short line of CSS code to your website to prevent visitors from selecting text or copying material from your WordPress website. In this manner, you can prevent anyone from stealing your work simply by copying and pasting it as their own. This provides an extra degree of security to your original material.

Disable copy-paste in WordPress without a plugin!

  • Go to your WordPress dashboard and select Appearance > Theme > Customize.
  • Now navigate to Additional CSS and paste the code provided below.

body { 
-webkit-user-select: none !important; 
-moz-user-select: -moz-none !important;
 -ms-user-select: none !important; 
user-select: none !important;
 }
.post blockquote,.wp-block-code code { 
-webkit-user-select: text !important; 
-moz-user-select: text !important; 
-ms-user-select: text !important;
 user-select: text !important;
}

Leave a Comment