Home
Website PHP Tutorial
Template Website
Business Info
Blogger Templates
Free CSS Template
Online Tools
Search
Do You Want to use our services or want to establish cooperation please contact us on whatsapp +6285244351343

Artikel Terbaru , 2020-02-29

Content protection from copy paste

PenulisIndra Rani

Content protection from copy paste

Content protection from copy paste

Published : 2020-02-29 by Indra Rani | Website PHP Tutorial

Content protection from copy paste

Sitemap Content protection from copy paste

Hello . do you a content writer. if so, surely you don't want your content copied by irresponsible people. but is it possible to protect our content, the answer is "Impossible" 

Any content that appears on a computer screen can be copied because the content is just writing, but for that maybe we can make them bother to copy your content.  Like turning off the CTRL, ALT, or buttons that can speed them up to copy your content.  Here I share tips for making your content a little safer than before .That is my goal to make this content " Protect content from copy paste "

List Feature - Content protection

Maybe you can directly use / download the code I provided. but you better know what features I provide from content protection from copy paste

  1. Remove the block feature on content 
  2. Remove the save as feature 
  3. Remove the right-click feature 
  4. Displays a message when successfully downloading HTML code

Download Script - Content protection 

//JAVASCRIPT

var qii2 = ""; 
var xxww = "You Dont Have Access For This Content Bro. Please Dont Copy any content on my website"; 
var content_element = "#content"; 
 
$(document).ready(function () { 

$("body").on("contextmenu",function(e){ 
return false; 
}); 
  
$("body div").on("contextmenu",function(e){ 
return false; 
}); 
  
$(document).keydown(function(e) {     
if ((e.ctrlKey || e.metaKey)) { 
  e.preventDefault(); 

}); 

$('body').prepend('<style> *{-moz-user-select:-moz-none; -moz-user-select:none; -o-user-select:none; box-shadow:none!important; -khtml-user-select:none;   -webkit-user-select:none; -ms-user-select:none; user-select:none;} .dn2wqkw{float:left;position:absolute; left:0px;display:inline-block;  height: 1px;width:1px;overflow:hidden; } </style>'); 
var kkw = '<span class="dn2wqkw" '; 

var url = window.location.href; 
if(qii2 != ""){ 
var n = url.indexOf(qii2); 
if(n <= 0){ 
$('body').html(xxww); 
alert(xxww); 




if((content_element != "") || (content_element == "full")){ 
 
if(content_element != "full"){ 
 content = $(content_element).html();  
} else { 
 content = $('body').html();  

 
contentx = content.replace(/<br>/g, function(match, contents, offset, input_string) 

rand = (Math.floor(Math.random() * 10000) + 10000).toString().substring(1); 
kkwx = kkw +' id="'+rand+'"> '+ rand +'</span> <br>'; 
//console.log("-"+match+"-"); 
return " "+kkwx; 
}); 


contentx = contentx.replace(/<p>/g, function(match, contents, offset, input_string) 

rand = (Math.floor(Math.random() * 10000) + 10000).toString().substring(1); 
kkwx = kkw +' id="'+rand+'"> '+ rand +'</span> <p>'; 
//console.log("-"+match+"-"); 
return " "+kkwx; 
}); 


contentx = contentx.replace(/</p>/g, function(match, contents, offset, input_string) 

rand = (Math.floor(Math.random() * 10000) + 10000).toString().substring(1); 
kkwx = kkw +' id="'+rand+'"> '+ rand +'</span> </p>'; 
//console.log("-"+match+"-"); 
return " "+kkwx; 
}); 


contentx = contentx.replace(/</div>/g, function(match, contents, offset, input_string) 

rand = (Math.floor(Math.random() * 10000) + 10000).toString().substring(1); 
kkwx = kkw +' id="'+rand+'"> '+ rand +'</span> </div>'; 
//console.log("-"+match+"-"); 
return " "+kkwx; 
}); 

contentx = contentx.replace(/,/g, function(match, contents, offset, input_string) 

rand = (Math.floor(Math.random() * 10000) + 10000).toString().substring(1); 
kkwx = kkw +' id="'+rand+'"> '+ rand +'</span> ,'; 
//console.log("-"+match+"-"); 
return " "+kkwx; 
}); 

 
$(content_element).html(contentx); 
}  
});

6 Latest articles

Update your latest information by increasing reading. Knowledge is not everything but everything requires knowledge