How to Stop/Disable Copy-Paste On Your Blog

How to Stop/Disable Copy-Paste On Your Blog

For those of us that have have been looking for methods to prevent other people from copying your hard written posts, I will be using this opportunity to teach you guys how to do that through a JavaScript code which you will use to disable copy paste on your blog.



Now copy and paste this code BEFORE </head> tag in your HTML code..

<!-- Disable Copy and Paste-->
<script language='JavaScript1.2'>
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function (&quot;return false&quot; )
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>


and that's all your post are now safe...

I've applied it and tested it on this blog and it is working fine but I had to remove it so as to enable you guys to copy the above code and paste on your blogs.

SHARE THIS

0 comments:

We Love To Hear From You But Don't Spam Us With Links!

Want to be notified when I reply your comment? Tick the "Notify Me" box.