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...
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.
- It will save your content from copying.
- 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.
- 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.
Search the below code.
Then, move on Template>> Edit HTML>> click anywhere (for concentration) and press CTRL+F (for search box).<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>
Search the below code.
Finally, add the below code just before the above code.</head>
Click on Save Template and click on view blog which is present on top of the blogger screen.<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>
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.
COMMENTS