Tuesday, 25 July 2017

How to Disable Right Click On Blogger Blog?


Under: ,
You might have been noticed that some bloggers don't allow copying contents from their blogs and to do so they disable the right click on their blog. It means when you select any text from their blogs and do a right click to copy that content, nothing will happen. Recently, we have shared a great tutorial on how you can disable text selection in blogger and this post is indirectly linked to that one as both of these tutorials help to get rid of copycats and content stealers. So let's check you how to disable right click on blogspot blogs.
Simply follow the below steps to disable right click on blogger.

How to Disable Right Click on Blogger Blog:

You just need to follow the step by step tutorial as guided below:
  1. Login to Blogger Dashboard and navigate to Layout.
  2. Click on ‘Add a Gadget‘ on the sidebar or anywhere you like.
  3. Select ‘HTML/Javascript‘ and Paste the below-given code.
  4. <script language=javascript>
    <!--
    //Disable right click script - By www.BBeginner.com
    //
    var message="Function Disabled";
    ////////////////
    function clickIE() {if (document.all) {(message);return false;}}
    function clickNS(e) {if
    (document.layers||(document.getElementById&&!document.all)) {
    if (e.which==2||e.which==3) {(message);return false;}}}
    if (document.layers)
    {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
    else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
    document.oncontextmenu=new Function("return false")
    // -->
    </script>

  5. Click on Save and You're all done!
Customization: You can also change Function Disabled with your own Custom Message. It will display when someone tries to do right click on your blog.


I hope you successfully disabled right click on your blogger blog to get rid of copycats. If you still face any difficulty or for any suggestion, you can drop a comment below.

0 comments:

Confused? Feel free to ask!

We love comments! We appreciate your queries but to protect from being spammed, all comments will be moderated by our human moderators. Read our full comment policy here.
Let's enjoy a happy and meaningful conversation ahead!

 

Copyright © 2017 All Rights Reserved by BBeginner.Com ׀ Designed by Hammad Ansari. DMCA.com Protection Status