Monday, 5 August 2013

How to disable right click on your website or blog


In this post I will tell you how to disable right click on your website or blog. Sometimes you write an original content for your blog. But some persons copy your blog content and publish on their website or blog. So your hard work becomes useless. So if you want to save your content then my post is very useful for you. By this method you can disable right click button of mouse on your blog/website post. So they will not be able to copy your content. Now follow these steps to do this:-
 1.       Go to blogger Dashboard > layout
       2.       Click on Add Gadget > select Html/Javascript 
       3.       Now copy and paste the following code in the Pop Window


<script language='JavaScript1.2'>
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.       Now Save it and it is done.

In this way you have disabled right click on your website or blog.

No comments:

Post a Comment