Pages

Wednesday, August 13, 2014

How To Disable Right Click on Blogger

Disabling right click on your blogger blog is the best trick you can do to protect your valuable content, we as blogger work so hard to research and write quality and unique content for our visitors but as you know that there are many spammers and scrappers out there who just want to copy our article and paste on their blog thus wasting our hard work and time So to avoid this and protect our blog from scrappers we can disable right click on our blogger blog so that whenver anyone tries to copy our content doing right click they will not be able to do in short we are going to disable the function of right click from our blog

Disable Right Click Blogger
How To Disable Right Click on Blogger

But I would like to tell you one this that even though this is good trick to prevent your content but if your blog is for tutorials then be careful because like in many blogs they provide code for thier visitors like in this blog post where they have to do right click and copy the code. So think about this also anyways without wasting much time lets see how to protect our blog from scrappers

Disable Right Click In Blogger



1) Log in to your blogger dashboard

2) Go to layout and click on Add Gadget

3) Now from pop up menu choose HTML/Javascript and paste the below code in the content box

<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 click on Save and go and check your blog do right click and you will not be able to do it because it is not disabled Well this was using Gadget method well there is another way to do the same is by placing the code in your blogger template

Disabling right click through blogger template

1) For doing this go to Template >> Edit HTML

2) Press CTRL+F and find <head>  tag and place the below code just above it

“<script type="text/javascript">

var omitformtags=["input", "textarea", "select"]

omitformtags=omitformtags.join("|")

function disableselect(e){

if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)

return false

}

function reEnable(){

return true

}

if (typeof document.onselectstart!="undefined")

document.onselectstart=new Function ("return false")

else{

document.onmousedown=disableselect

document.onmouseup=reEnable

}
</script>

       
3) Now click on Save Template and you are done So friends this was how to disable right click on your blogger blog if you like this trick please share with your friends and don't forget to subscribe to get more such blogger tips and tricks! Keep Blogging Guys
Read more ...