Monday, October 17, 2016

How To Disable Copy & Paste On Blogger Posts

How To Disable Copy & Paste On Blogger Posts


Hey guys today am going to show you how to disable copy and paste on blogger

The best way to Disable Text Choice on Blogger 2016. Many of you’ve found individuals reproducing content from other sites to rate their sites by copying what they see in a site and pasting it on there own, making your content to depreciate and not able to make enough money from it because his content has been duplicated by someone and got rated. That is what occurs in some situation(happened to you ? ). This is unfair. As we understand every issue as an answer, Thus were are here about the Best Way To Disable Text Selection in Blogger.


How Disable Copy & Paste On Blogger


Step 1: Go to Dashboard > Select the blog where you would like to implement the code

Step 2: Go to Layout > Add a Gadget > Select “HTML/JavaScript gadget”

Step 3: Paste the following code in the box Below


<script type=text/javascript>
var omitformtags=[input, textarea, select]
function disableselect(e){
for (i = 0; i < omitformtags.length; i++)
if (omitformtags[i]==(e.target.tagName.toLowerCase()))
return;
return false
}
function reEnable(){
return true
}
function noSelect(){
if (typeof document.onselectstart!=undefined){
document.onselectstart=new Function (return false)
if (document.getElementsByTagName){
tags=document.getElementsByTagName(*)
for (j = 0; j < tags.length; j++){
for (i = 0; i < omitformtags.length; i++)
if (tags[j].tagName.toLowerCase()==omitformtags[i]){
tags[j].onselectstart=function(){
document.onselectstart=new Function (return true)
}
if (tags[j].onmouseup!==null){
var mUp=tags[j].onmouseup.toString()
mUp=document.onselectstart=new Function (return false);n+mUp.substr(mUp.indexOf({)+2,mUp.lastIndexOf(})-mUp.indexOf({)-3);
tags[j].onmouseup=new Function(mUp);
}
else{
tags[j].onmouseup=function(){
document.onselectstart=new Function (return false)
}}}}}}
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
}
window.onload=noSelect;
</script>
                                                                                                                             


   Or You Can Use This Code Below


<div dir="ltr" style="text-align: left;" trbidi="on">

</div>
<!- start disable copy paste --><script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script><script type='text/javascript'> if(typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" ); } else{document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false"); } </script><!-- End disable copy paste --></!->

After Implementing the code save it and load your blog and see if you can copy, the two codes work very well. leave your comments if you have any issues.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home