Wednesday, May 15, 2013

How To Disable Right Click On Your Blog

How To Disable Right Click On Your Blog ?

If you own a blog or a website then you always want to prevent other malicious bloggers from copying the content from your blog. 


You might have written an article with great efforts and lots of research and other just copy/paste it on their blog.

To prevent such users from copying content from your blog i will show you Javascript Trick to disable right click on your blog. So lets get started.





1. Go your blogger Layout dashboard.

2. Add gadget and select HTML/JavaScript.


3. Copy & paste below code.


<script language='JavaScript'>


function disableselect(e){
     return false
}
function reEnable(){
    return true
}
document.onselectstart=new Function ("return false")
   if (window.sidebar){
        document.onmousedown=disableselect
        document.onclick=reEnable
   }
</script>


4. Save and test your blog.

Cheers...!!!

No comments:

Post a Comment