Like every content creator you update your WordPress website regularly with new fresh articles and pages, so you want your effort to be indexed first by Google as soon as possible. And also you want to prevent others from copying your content or add at least they need to give you a credit which is the original source URL.
In the previous articles about WordPress tutorial, There’s one I showed you how to add watermark to your WordPress images and internal links which is really effective to protect your copyrights. Let’s now enhance it by automatically adding source URL copyright notice to copied text if it is greater than a paragraph.
This way you still asks the copiers to give you credits and a natural backlink but also don’t block regular readers from selecting a quote or a link. Follow the steps below:
Inside your WordPress admin dash board, go to Appearance » Theme File Editor
In the right side of the screen, under Theme Files, find header.php and click on it
As shown in the image , now in header.php, insert the below code to above </head>
There in the code, you see a line says if (words.length < 40) meaning if the system detects if less than 40 words selected and copied then it’s regular users trying to copy a quote or a link otherwise greater than or equal to 40 then someone is copying your content. Change the number to fit your situation.
Now click Update File
Go to any of your WordPress articles, copy and paste any text