Top 10 Ultimate SEO Plugins For WordPress 2017-18
ProTechnify

06/09/2015

Disable Right Click in Blogger or Website 100% Worked

Disable right click in blogger, disable right click
If you want to save your blog from content stealing so you are landing on a right page, because in this article I will explain you that how you can disable right click from a blogger or a web. Content stealing is become a big problem nowadays cause of high competition in search results so when a newbie enter in blogging without any great knowledge and experimental homework so he first think that he will get tons of visitors by stealing content from pro blogs who are getting high traffic from search results, but it’s thought work only in his dream because all knows copying content can’t get a singly visitor from search results due to Google web spiders which are doing his work very well and smartly.

There is other alternative also from which you can keep your blog content safe, but it will act when someone tries to steal your content i.e. DMCA. If you don’t want to take a risk so remove the main tool of copying, i.e. right click it is very useful for you if you removed the right click on your blog, it has lots of benefits mentioned below.
  1. It will save your content from copying.
  2. It will save your unique images, because content theft also tries to steal your post image which creates negative sign for your post image in Google image search.
  3. The main benefit to you, it will not allow users to see your blog template coding and styling from “View Page Source”.
So this was the risk free benefits for your blog, let’s start to implement the disable right click script in your blog.

How to Disable Right Click in Blogger Blog

First open your blogger account.

Go to Layout>> Add a Gadget>> HTML/Java script

Now paste the below code into HTML/Java script.
<script language="JavaScript">
<!--
//Disable right click script by http://www.protechnify.com/ Notice: Don't Remove the Credit
///////////////////////////////////
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>
Then, move on Template>> Edit HTML>> click anywhere (for concentration) and press CTRL+F (for search box).

Search the below code.
</head>
 Finally, add the below code just before the above code.
<script type="text/javascript">
//<![CDATA[
function nocontext(e) {
var clickedTag = (e==null) ? event.srcElement.tagName : e.target.tagName;
if (clickedTag == "IMG") {
alert(alertMsg);
return false;
}
}
var alertMsg = "Image context menu is disabled";
document.oncontextmenu = nocontext;
//]]>
</script>
Click on Save Template and click on view blog which is present on top of the blogger screen.

Read This: How to Add Flag Counter Widget in Blogger.

Now tap right click of your mouse and check your script is working fine or you have to do solve your template bugs. After disable the right click, your blog is 100% safe and nobody can steal your content and images. If you get any type of error, so discuss with me in the comment box which is present below.




0 comments:

Post a Comment