Disabling right click in Blogger websites is really
easy as it does not need any technical knowledge you simply have to
copy and paste some script into your <body> and that’s it
everything is done.
var message="";
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>
Now why will anyone want to
disable the right click in their website,Well there can be many reasons
but the main reason which comes to anyone's mind is the content copying
and the page source viewing well there are many another ways to view
the source or copy content as you can see on my website I had also
applied this script earlier which disables the right click on website
but recently I just removed this script as many people were having
problems.
Follow below steps .:
1. Go to your dashboard in Blogger.com
2. Now click Template and than click Edit HTML, now click on Proceed.
3. Now simply copy and paste the below script right before the </body> tag.
<script language=javascript>
<!--
3. Now simply copy and paste the below script right before the </body> tag.
<script language=javascript>
<!--
var message="";
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>
4.
That’s it now click on Save Template Button, now script is up and
running on your blog just check it out refresh your blog and try to
right click you will not be able to do that, ask your readers to do
this thing.
Have Fun :) Guys and now enjoy secured blog.