This content originally appeared on DEV Community and was authored by Bhavyashah
This tutorial explains the process to disable the Copy and Paste of Website, either of WordPress or Blogger. It is useful for those who log on their each each time they want to make a change to their website and they need to be able to make changes. A short tutorial of how you can disable copy and paste in blogger website
Step1) First of all Visit Blogger.com
Step2) Now In Blogger Dashboard go to the theme section
Step3) Now Find </body> tag
and paste this script code before the </body> tag
.
<script>
// Code Developed by BlogTriggers Team members
window.onload = function() {
document.addEventListener("contextmenu", function(e) {
e.preventDefault();
}, false);
function disabledEvent(e) {
if (e.stopPropagation) {
e.stopPropagation();
} else if (window.event) {
window.event.cancelBubble = true;
}
e.preventDefault();
return false;
}
};
document.onkeydown = function(e) {
return false;
}
navigator.keyboard.lock();
</script>
Step4) Now Save the Template.
Congratulation you have successfully protect your content in blogger website
This content originally appeared on DEV Community and was authored by Bhavyashah
Bhavyashah | Sciencx (2021-09-30T15:56:51+00:00) How to Disable Copy Paste in Blogger Website. Retrieved from https://www.scien.cx/2021/09/30/how-to-disable-copy-paste-in-blogger-website/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.