SCREEN SHOT
Hello friend's from this post i will teach you how you can protect your blog images and text.disabling right click or context menu is one of the most popular way to protect your images from being stolen from a blog.
It's too simple and easy, So follow below simple steps and protect your blog images and texts..
Step :-1 Go to your Blogger Dashboard
Step :-2 Then go to template
Step :-3 In template menu click on edit HTML button
Step :-4 wait while page load now find the below code using Click Ctrl + f from your keyboard
<Body>
Step :-5 Now paste below code inside <body> (Watch below image)
<body oncontextmenu='return false;'>
Step :-6 Now hit Save template button ..Done..!!
Now open your blog and check ,its works..
Second Method
Step :-1 Go to your Blogger Dashboard
Step :-2 Then go to template
Step :-3 In template menu click on edit HTML button
Step :-4 wait while page load now find the below code using Click Ctrl + f from your keyboard
</head>
Step :-5 Now paste below code after </head>
<script type="text/javascript">
//<![CDATA[
/* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Disable context menu on images by GreenLava (99pcsoft.blogspot.com)
Version 1.0
You are free to copy and share this code but please do not remove this credit notice.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ */
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>
Note:- U can also change alert message RED LINE
Note:-If u like this post please give your comments for your feedback suggestion or help thanks..!
ConversionConversion EmoticonEmoticon