disable right click

Bloggers always wanted to prevent users or other bloggers from copying the content from their blog or website. Few Bloggers do lots of efforts by researching and writing great articles for their blog, whereas some just copy and paste article and tutorials on their blog from others. So to prevent such bloggers from copying the content from your blog i will teach you to disable right click on your blog with just simple Javascript. So lets get started.

How to disable right click on blog or website ?


  1. Go to Blogger Dashboard-->Design--> Edit Html.
  2.  Copy the code below and paste it in Edit HTML  before the </head>
<!--ittechnohub.com-->
<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>
.
   5. Now save it and you are done disabling right click on your blog.

Share Us:

0 comments:

Post a Comment

 
Top