Friday, 9 December 2016

Disable Right Click on Your Blog | How to

In this tutorial, you will learn how to prevent using right click on your blog or website. You might question why should I disable right click at all? Of course you actually don't need to do. But there are some people who look for delicious content to scrap and paste on their blog. The brighter side is they can make few bucks doing so. But the hard truth is they damn don't give the credits to the original authors or content creators. 
So, if you are worrying someone is actually copy/paste-ing my content then you should want to try this little trick. Of course you can select a portion of your content and search on Google. By doing so, you will discover which sites are actually copy-ing your content and yes you can report it to Google and/or DMCA. But it is said that prevention is better than cure.
So, let us come to our actual topic. All it may take two minutes more or less to implement this trick.

How to disable right click on your blog

step 1. Log in into your Blogger dashboard.
step 2. After successfully login, click on Layout tab from your Blogger dashboard.




step 3. Click on Add a Gadget. It does not matter where you actually add this current code.But what I recommend is add the gadget at the end that is in the footer section.
step 4. Now find the gadget that has HTML/JavaScript. If you don't see, you just need to scroll down until you find it.
step 5. Leave the title as it is that means blank. And add the below given code in the content box. Click save.
<script language=javascript>
<!--
//edit by unwanted

var message="Please Do NOT try to Copy my Work.\n\n\n By All Useful Tutorials\n";
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}
function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}
document.oncontextmenu=new Function("alert(message);return false")
// -->
</script>
step 6. Click on Save arrangement.And you're done.
Now the fun part. Open your blog and try to right click on your mouse. Boom!! you'll see a pop up box that says some message.
So, now it is pretty hard for copy cats (bloggers who actually copies other content and claims it is their own sweat.But anyway who wants to use right click on their mouse when they have just come for reading your content.
If you have any questions or queries related to this topic, don't hesitate to leave your comments in the comment box. 

  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Item Reviewed: Disable Right Click on Your Blog | How to Rating: 5 Reviewed By: admin