How to Disable Right Click on Blog or Website

5
1051

In This article, we are going to share Some Amazing Trick For Blogger that How to Disable Right Click on Blog. Have you noticed, that many websites don’t allow their visitors to use of right-clicking on Blog area? This is very useful for a webmaster or blog owner. Because of this feature minimizes the possibilities of the content direct copying to other posts. Right-click enables more features like see the source codes of website, copy-paste and other things.

So if still, you haven’t disabled right-clicking on your website then there are many chances that your images and contents can be copied by the user.

So if you want to know that How to Disable Right Click on Blog you can follow the given steps.

For WordPress:

If you are the owner of a WordPress Site then you have many methods to disable right click on WordPress. here both methods are given.

With Plugin-:

You can install a plugin named “Wp-content copy protection & No Right click“.

It disables Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+S, Ctrl+A.

Without Plugin:-

  1. Go to the theme editor
  2. Then go to header.php
  3. Copy the given code.
<script language=JavaScript>
<!--



var message="Disabled!";

///////////////////////////////////
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>

5.Paste this code between <head> …,</head> tags.

For Blogspot:

  • Go to Dashboard >Layout > Add  Gadget >HTML >JavaScript.
  • Copy the code from this file and paste it in that blogger widget.
  • Save the HTML/javascript and view your blog.

Now on your Blogspot right click has been disabled. if anyone tries to click,  it’ll show an error message that Disabled!

How to Disable Right Click on Blog?

Even if you do not have a Blogspot user, you can use this code to disable right click of the mouse.

Follow these Steps to disable right click

  1. Copy The Given Code
  2. <script language=JavaScript>
    <!--
    
    
    
    var message="Disabled!";
    
    ///////////////////////////////////
    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>
  3. Edit Source Code of the website.
  4. Paste the given copied code between the <head> ….</head> tag.

Now save your source code and test your website you’ll find that the right click has disabled.

So this code is very useful for those bloggers who want to prevent the copy of their articles, images, contents from their blog or websites.

Read More:

I hope this article will be helpful to tell you that How to Disable Right Click on Blog but still you have any question in your mind you can ask in the comment box. I will try to give a proper solution.

SHARE
Previous articleHow to Install Android Studio : Tutorial For Beginners
Next articleHow to Make Money with Clickbank
Hello, I am passionate about blogging and this is my hobby to share information to people that make a sense and work for people to save their time and money and increase their information. I always share here Technology, Make Money Tricks, Mobile, Computer and many Such Information.

5 COMMENTS

  1. Amazing blog! Is your theme custom made or did you
    download it from somewhere? A design like yours with a few simple adjustements would really make my blog shine.

    Please let me know where you got your design. Bless you http://yfrhh.info

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.