You might have seen websites with no right clicking on their pages. This is just to minimize the risk of content copy. The right mouse button won’t work in their sites, basically used to select contents & copy or to save images. Blocking or disabling right click will make other things work normally, people can view and surf everything, all they can’t do is copying any text or image from your site. And now we can apply this blocking trick to disable right click in blogger/blogspot blogs.
To block people from copying text or image from your blogger/blogspot blogs, you need to disable right click. And in order to do this, you need to add a code to your blog. This code needs to be added in the page elements page as a new widget. Follow the below steps.
- Log into your blogger dashboard.
- Navigate to your blog’s Layout >> Page Elements page.
- Now add a new widget by navigating to Add a Gadget >> HTML / JavaScript
- Add the following code to HTML / JavaScript box.
- Save the widget and you are done.
<script language=”JavaScript”>
<!–//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//For full source code, visit http://www.dynamicdrive.comvar message=”Function Disabled!”;
///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}document.oncontextmenu=new Function(“alert(message);return false”)
// –>
</script>
Now no one can steal your contents as you have disabled right clicking on your blogger blog. But still I would like to advise you not to do this. It might affect innocent people from copying some necessary codes from your blog. You can deal with those people who steals your content in a legal way. Read what to do when someone steals your blog post contents?
Also Read : How To Copy Text & Save Images From Right Click Disabled Websites




Hi there. I've been following your site for quite sometime and I must admit you're doing teribly great.
I tried this tip in one of my blogs http://www.sietecontrados.blogspot.com but it is not working.
I haven't remove the html code I placed on the blog so maybe you cancheck it out if I did something wrong.
I guess you can answer my problem also since Im guessing you are exceptionally great. I would like to insert images in my feeds with feedburner but I don't know how to do it.can you help me? Or can you make an entry about this?
Another one, I'm observing a site who has a widget placed on the right side of his blog. The widget automatically list down at least 5 newest articles about a certain topic. This is powered also by feedburner. How about a blog entry also on this?
Thank you so much!
I've wanted to protect my images (all original photos), but since I'm not tech-savvy, manipulating the html code in my blogger template proved too difficult. You're instructions for a widget add-on were attainable, and it works like a charm.
Thanks again -
Athalia
I forgot to thank you for all the tips you've shared. Thanks. You're a star.
@ Karl : Have you followed everything correctly? This is a plain simple trick and does not need any expertise. I guess you have written the above code in a Text widget! Make it sure that you have posted this in a HTML/JavaScript widget
Feel free to comment here for any problems.
Thanks for your suggestions. Will surely post about formatting images in feed soon. And I did not get you, you mean to say that blog is showing recent 5 posts from a particular label using a feedburner widget?
And yes, thanks for your kind words.
sure, i'll gonna check it again. hope it will work this time
yes, you got it. it's "posts from a particular label using a feedburner widget" that's the right term
Thanks Bapun.. Im waiting for these posts
Although if the widget creates a dialog box Google chrome will ask the user if you want to block it
Just a thought…
I have tried this so many times and it is not working. the words right click disable show up on the right side of my blog, so I know its there but its not working. Can you please guide me
Layouts/page elements
add a Gadget
HTML/Java Script a box pops up with title and body paragragh and this is where I copied and pasted your html code for this.
I then rightclick on my picture and sure enough you can save it and it is not working.
in the right hand side of my blog it says rightclick disable as if it did recieve ityet its not applying it. please help if you dont mind thanks Jennifer
Well, I guess this is not working perfectly. I tried applying this on one blogger blog, but the right click is still working there. wait for sometime till i come up with an another trick to block right click on blogger blogs.
NOTE TO SELF AND ALL I FORGOT TO HIT THE SAVE BUTTON..AFTER I DID THAT IT WORKED JUST FINE….THIS DOES THE TRICK AND IF NOT YOU ARE DOING IT WRONG.. THANKS BAPUN!!!
hello, i istalled the code and it worls on the main page but i still can click on the picture and it will open in a bigger size and i still can copy it. i just cant copy it if i click right right away on the homepage. but i would like to protect my pictures of being copied. hope u can help me.
If they left click on an image and it opens in a new window, then right click is no longer disabled.. Is there any way to disable right click after they click on the picture where its a new screen with a full sized pic? Because if someone can left click on it to have the pic pop up then right click protection is gone~ Thanks for any help!
This code is not supported by Blogger fully. So, wait till I find a working script.
any luck on finding a code that works for blogger?!
this unfortunately still isn't working for me
ahhh its not working
pls come with a solution soon:D right click disable ummmm:-? hope im geting a new trick soon:D
could u telll me a method for wordpress bloggers to do so
why there's no difference even i follow the steps?
This doesn't work
the script doesn't working
This is script does not work. Someone can still copy & save my pics.
guys just watermark ur pics and they cant copy them for example my site is bmxbonkers.com just add text to ur image saying (bmxbonkers.com)
its simple!
thanks ~brad
Hi There ! This Post Is Perfect !My Blog http://www.rockwithking.blogspot.com Is doing well with this ! Thanks for sharing this valuable post !
Hey can you tell me if i can insert this script directly without using widget…
This would only disable the right clicking but if the user highlight the content and press ctrs+c then she/he could still copy and paste your site content.