How to disable right click in blogspot or any webpage?



This post explains how to disable right click on blogspot (Blogger) or any other webpage using a Html (Javascript) code.

It is so annoying if someone copies(thefts) your blog posts,articles,images and another kind of information owned by you saying that they are the original owners of the content.


But,I think 'disabling right click' is not the right solution for that.


Most people come to your site to read information and very small percentage of people come to your site to steal your work,images,etc.So,most people feel it insulting and I think it's very unprofessional thing to do

If you want to protect your images,my suggestion is to add a Watermark(logo) of your site name,or your name on the images,pictures,etc.


Note:Using this javascript code,you only disable the right click by warning the visitors that the content is copyrighted.

That's all my personal opinion, However if you desperately want to add this feature.

Copy code given below:


<SCRIPT language=JavaScript>
<!-- http://www.spacegun.co.uk -->
    var message = "function disabled";
    function rtclickcheck(keyp){ if (navigator.appName == "Netscape" && keyp.which == 3){     alert(message); return false; }
    if (navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2) {     alert(message);     return false; } }
    document.onmousedown = rtclickcheck;
</SCRIPT>

Where to paste it in blogger ?
Sign in to your blogger Dashboad > Layout > Add a Page Element > Html/Javascript


Paste the given code and Save the changes.

How it works?
If you right click on the webpage,a message will pop up on screen saying "function disabled".If you want to change the message to you own one like "sorry....the work is copyrighted" or something like that,replace the "funtion disabled" text with your own message in the Javascript code.

Post a Comment

Previous Post Next Post