WORLD Best WebSite for Solve your Computer Problems, Download Free Register Software & Games, Mobile Application, Watch Live TV Channels, Make Money Online, Learn Complete Computer Softwares and Computer Tips in Urdu n English Language.

Saturday 13 April 2013

How to Disable Right Click on Blogger Blogs?



We recently faced many probelems regarding our content copyrights, every day our content is copied by newbie bloggers. To overcome these everydays issues, I've decided to take some major actions. When you find someone violating your copyrights then the first thing is to do; report that blog to Google instantly, And Google helps faster regarding this. However, you may also take some measures in order to protect your content from copycats. And one of the measures is to disable right click on your blog. By doing this, no one will be able to right click on any image or any other icon available on your blog. When someone will right click, a pop up will be shown with an error message. This is very useful for those who want to protect their images and icons etc from being copied by others. However, visitors can still select your text/articles and can copy by using their keyboards' short cut keys. Tomorrow we'll overcome that issue as well. 

How to Disable right click on your blog? 

Now let's start disabling right click in blogger blogs, this is very very easy process and you'll just have to add a peice of JavaScript code, which will prevent visitors from right click on your blog. Follow given steps:
  1. Go to Blogger 
  2. Layout >> Add a Gadget >> Select HTML/JavaScript Widget
  3. Now copy below code and paste inside HTML/JavaScript
<script language=JavaScript>
<!--
var message="Right Click is disbaled!";
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>
4. Save the widget and view your blog, and right click somewhere on your blog and you'll see a pop up box saying "Right Click is Disbaled".

This was an easy to use code which will disable right click on your blog and will also protect your images and icons from being copied by others. But for protecting your articles and text you may wait till tomorrow.

Take Care and please don't copy content from other websites/blogs instead write your own, write less but your own, you can only get respect when you try to write and create everything by yourself, copying from other sources can only hurt you. Thanks

0 comments:

Post a Comment

facebook like

Receive all updates via Facebook. Just Click the Like Button Below...