Disable copy and right click on website or blog

It is very disturbing if someone copy your content and paste in his website or blog . Mostly people do this because to create genuine content it takes time .So if we coulddisable copy and right click on websites ,the rate at which the content’s being copied can be reduced  .I am gonna explain this trick with reference to Blogger service ofGoogle. Others may also use the code in their perspective . This is having some disadvantages if you are listing some useful sites for your users or some stuff that needs to be copied  .                  
Disable copy and right click  on website or blog
Now for Blogger , open Layout now edit HTML
Before you edit template save a copy for future use

Paste the following the JavaScript code just below <head> tag as shown in screenshot

<!-- 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>

 Here we are using JavaScript to disable copy and right click  on website or blog . So If someone disables the browser JavaScript support , the contents could be easily copied .

Related Posts with Thumbnails

Leave a Reply