How to Add an Anti-Copy and Paste Article to Your Blog
It's really annoying when someone else just copies and pastes a piece that you've put a lot of heart and time into writing. One of my blogs had a similar issue in the past. Perhaps someone else has copied your blog?
This time, in order to address the issue, I will provide advice on how to minimize the likelihood that your best work will be copied and pasted by others. However, if you write instructional essays about coding, like I do on my blog, it's best to avoid using anti-copas. This is due to the possibility that users may not be able to copy the code you share if you use this script.
However, you should first read the prior post on How to Create Automatic Selections by Double-Clicking on a Blog if you still wish to utilize anti copas. Why is that? so that visitors may copy the code you share by double-clicking.
Follow the simple instructions below to learn more about setting up script to prevent copying and pasting.
How to Install an Anti-Copy-Paste Script
Create your blogger account
Select Template > Edit HTML from the menu.
Look for the code before the code, then insert the following code before the code.
if (typeof document.onselectstart !== "undefined") {
Document.onselectstart = new function("return false");
}
or else
new Function ("return false") was assigned to the document's onmousedown event.
The document's onmouseup event is now set to a new function that returns true.
}
Lastly, save the template.
