Welcome to our AllBlogTools.com v.3 new version, We are still in beta, please contact us to report an error.
Disable right click on blogger blogspot
You’ll learn in new blogger trick to disable
right click in your blog pages.
Blogger tricks and hacks
Right click on any internet browser is very important element.
and we must use it when it comes to copy or editing texts and etc..
and it’s very important when it comes to webmasters too.
but some people may use it in a bad way, and you may want to make click right disabled on your blog.
to protect you text, images links and etc….
so all what you have to do is only simple step.
you’ll need to add new html/javascript element to your layout.
now go to your blogger account.
navigate to Layout >> Add a GadGet >> and select html/javascript
then copy the next code and past in in html/javascript text box area
<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.com
var 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>
then save the html/javascript. and view you blog.
when you try to do right click. a message will tell you that “Function disabled”
and if you want to change this words” Function Disabled”
find the next line in the code
var message="Function Disabled!";
and change Function Disabled! to what ever you want.
i hope it helps.
Related Tricks & Tutorials
Comments will be closed off on this post 365 days (1 year) after it is published. Apologies to this, but it's all about avoiding a growing comment spam problem. See our most recent posts where you can comment here
Try Advanced Blogger Templates Search >> 


Wouldn’t work for me.
it does not work. please fix!
Try this
–THIS SUPPORT JUST FOR MICROSOFT INTERNET EXPLORER –
yeah… me tooo… it does not work…
yeah!
doesn’t work!
hi dear friends, Noles, Edward/Azul, yaniez and cristine.
thanks for your comment on “Disable right click on blogger blogspot”
and sorry for this temporary problem
we fixed every thing and we hope you visit us again and try to apply the trick for your blog.
it’s 100% working now.
to be sure please visit the following blog
allblogtools-elisa.blogspot.com and try to “right click”
thanks
thanx bro..it’s work for me.
ok , its work now
thx
ok its work..
thank you..
We have to love people like you Max! Thank you so so much!
thax
itz–workng
it does not work. please help me
regards
when I copy view code it is working thanx
It is working but I use photobucket for image on my blog. When I click the pics opening image url and then of course everybody copy the image. Can we fixed this problem
hi df
thanks for your comments, and unfortunately, you cannot do this, you cannot hide the image url from the browser, but you may try to make the image not click able,
I can my template and I dont like it I back my old template and update html gadget but it isn’t working why I will be crayz
I change my template and I don’t like it I back my old template and update html gadget but it isn’t working… why I will be crayz
It’s wonderful tips, thanks it si work for me
Isn’t working for me
it’s saying that it’s a problem and to try again.I’m using blogspot.com.Please help me
It worked for me, thanks!
Worked for me, awesome — thanks!
hi
What are the text to disable the right click in my own website. I would also like to learn because i like to know about webdesigning. Also how do you do it with pictures? thank you very much. looking forward for your response.
sue
This feature is awesome! I wish it could also work for the image that opens in a new window. (People won’t have to right click, all they would have to do is click the image to see it larger and right click the image when it opens in a browser winder for large view) Any advice, if you don’t want to disable ‘click to enlarge’?
Hi, it works for me. This is a wonderful site! Thank you very much.
Is there any way to make the text field generate a random message?
Thanks, working fine for me, too.
Have to agree however with “fotojunki” that anyone who wants to copy the photograph from my blog will only have to click on it, which will open another window, from where the the copying can still be done with a right click/copy without “function disabled” functionality.
If that could be blocked as well, then we would have the perfect tool !
Can it be done ? Thanks!
Thank you very much!! Works fine for me
Thank that’s work for me. Keep you work up.
best regard
Thanks max…that’s works for me.
it work fine
Try editing to . It works for me.
Whoops! Sorry for the previous post! Try editing “” to “” (without quotes).
Never mind! HTML QUOTES hide in comments:
This is what i need to say:
Edit:
to
Without spaces (except between body and oncontext menu, and return and false)
Replace:
body
to
body oncontextmenu=’return false’
That’s it! Sorry for previous comments! Enclose with > and <
This is totally awesome! It works perfectly. Thank you!
it does work to me..thank you very much..excellent
i’m very happy today and i have to admit that all you people are great,
your comments makes me want to help your more and more
thanks all for your comments.
thanks for this great tip, i will check it out now.
Works great!
This works great for the main page but once you double click the pic you can then save it. How can you disable that too??
hi Janine
actually this only can be disabled by making your pic not click able.
and we’ll make a tutorial about how to do it later.
yeah man,its working…thnx
where can i paste these html? it doesn’t work for me. i couldn’t save the changes after i paste this html.help!
hi meera
where do you past this code?
i did paste the code onto a new gadget n as it always does, nt sure y it shows error while i use the option of using html in adding new gadget, bt wld work wid rest n here it dint work , what can i do
It’s really a good tips.
Great site, Good info
It works great on my blogger blog, this site is great!
~Ehtie~
man this is kewl. tnx
hi,, bro, thank you so much,, it is so work for me and I like to use it,, thx a lot,,
hehehe…
if not take a headache … add widget it may i hope work to this script LoL
It works!!
Thank you for sharing..
Hahaha Thank you so much, Now no one can copy my blog posts Only I can copy their hehehe aaqil66.blogspot.com
hi pakistani.
i’ll add soon a tutorial about how to protect your Images too.
Thank ypu so much……
i like it..
cheers mate for this function!
Thank Friend……
i just love people like you! awesome !
hi Emelia , ghissy, kalpesh and thezombiemaster,
thanks all for your comments, i really appreciate it.
Thanks for sharing this!
it work for me ! thanks very much…
THE BEST THING FOR ME….THANX A LOT!!
thhhannx so much it work 100%
Hello MAX.
That will not work with Ctrl+c?
Not you can’t disable Ctrl+c with this code, but I’ll try to add more similar posts to secure your content soon.
This is the best gadget i hv ever added!
thnx a ton!
Thanks Abijah
Thankyou so much… working fine
Thanks so much. It’s working perfectly on my blog.
max..it doesnt work for my blog.is dat bcoz i m using a tamplet? i really need dis trick to avoid people steel my photo
@ natasha ,please try to reapply the trick correctly.
my 3rd time trying…but still not sucess
natasha, this is really wired, this is one of the most used and working tricks, actually i donno what to say.
natasha, we are in the same boat…
Max, pls help us..
I’m using a customized Blogger Template, is that effecting to this trick doesn’t work??
thank 4 your repply to my comment on ‘Adding chat box on blogger’.
forgot
for your consideration, this is a link to the sample of my blog template…
http://www.4shared.com/file/165181783/40c6a045/girlystuffzone.html
Sorry if i bothering you…
THX before for your help…
My Bad, it’s working now…
The HTML code above is totally not working, but if i click “view code HTML”, that show me another code which different with the code on the main page, but that code 100% work…
Hope this will help you Natasha…
Your Comment Here …. *
Right click is working as you said, but if I Left click on my photos, I get an enlargement of the photo and the right click appears as usual with copy/paste/save pic as, etc.
Hi,, but i’ve got a problem,, maybe i’ve set it out wrong or something but it wouldn’t workk for me =[
Why does this work excelently on the sidebar when I put into a gadget there, but it doesn’t work on the main page when I put into a gadget there – as I said before the RIGHT click works but if I LEFT click I get an enlargment of the photo with RIGHT click accessible?
@ gypsyroz, the only solutuin for this problem is to make your image not clickable or to use the lightbox widget.
@ nDulzz and natasha, i wish you are ok now,
thank you very big!!!!! this works in my bloG!!!!
tq for the tutorial. works well for my blog.
why it does not work for my blog?
Entirely off topic – I just happened to land on your site ( which is very good btw ) – but your little About brief bio you have here totally cracked me up ! And here I was thinking that I would be dying alone on my computer !
A kindred soul ! Very nice to meet you Max !
Well, if I never meet ya in this life – I guess we’ll be meeting up in Computer Heaven !
Have a great Life Max – all the best to you ( like a 4TB HD Comp ! – if you dont already have one that is !
)
M.
!!!!Thanks a lot it works for me!!!!
@ yeng, carlofina, and tyrant eee thanks for commenting.
@ Mia woooooooow. i’m really happy to read this amazing comment, it’s the most beautiful comment I’ve ever read. thanks very much.
thanx a lot bro.. its working for me… huhu
Max, it’s work to me! thanx for this.
i like it.
now, nobody can copy my BlOG.. ahah
try this.
http://dalilasoffian.blogspot.com/
enjoy.
@ kiki & dalila, thanks and i saw your blog dalila, great.
Thank you very much!! Works fine for me
how to enable right click, please
@ Agata, thanks for your comment,
@ nay, please apply the steps in a backward.
Thankzzzzzzzzzzzzz you
yes!!
hey thats a nice one http://freewebdesigndepot.blogspot.com/ visit my site for great free nulled scripts and more
it doesnot work on opera fix it plzzzzzz
This works perfectly!Long life and prosperity man!
Thank’s, works like a charm!
Today Infolicious
thank ! its work !