How to disable right click in blogger(blogspot) or any webpage
Posted by kranthi on Thursday, December 20, 2007This post explains how to disable right click on blogger(blogspot) or any other webpage using a html(javascript) code.
It is so annoying if someone copies(thefts) your blog posts,articles,images and another kind of information owned by you saying that they are the original owners of the content.
But,I think 'disabling right click' is not the right solution for that.
Most people come to your site to read information and very small percentage of people come to your site to steal your work,images,etc.So,most people feel it insulting and I think it's very unprofessional thing to do
If you want to protect your images,my suggestion is to add a Watermark(logo) of your sitename,or your name on the images,pictures,etc.
Note:Using this javascript code,you only disable the right click by warning the visitors that the content is copyrighted.
That's all my personal opinion,However if you despirately want to add this feauture,You can get this code here.
Where to paste it in blogger ?
Sign in to your blogger dashboad>layout>Add a Pageelement>html/javascript(look at the screenshot below)
and paste the below javascript code and Save the changes.
How it works?
If you right click on the webpage,a message will pop up on screen saying "function disabled".If you want to change the message to you own one like "sorry....the work is copyrighted" or something like that,replace the "funtion disabled" text with your own message in the Javascript code.








82 comments:
Super! worked 100% for me......
Thanks for sharing
-------------
Andrew
Thank you Kranthi,very helpful information to the new bloggers like me...
thanks again......
hi kranthi, i want to discuss the most important matter with you just add me on
beautifulgirl_376@hotmail.com
If they left click on an image and it opens in a new window, then right click is no longer disabled.
Great tips and ideas. Thank you.
//Erik
It worked! Thanks a lot!!!
After reading what you've said, I won't be putting this code to my blog.
Anyway It's nice to know how.
Thank you for the tip and "how to"..
thank you so much for the codes!
Thanks for sharing & it works. But still it open a new window. So how to solve this problem? Thanks
hey its not working just pop-up's the warning && giving the right clk options
Good information. I recently had some one copying word by word of one of my articles. I was wondering what to do.
omg thank you!!
thanks for this code!
hey kranthi you r great thanks a lot.
u help me lot
keep going
Thanx
can i use this script on wordpress?
if so, how?
anybody know this?
hey its not working dear......it do promt the message but then also one can copy paste it easily.it doesnt stops one to copy paste.
hey kranthi,
thanks for this trick.
i dont want to disable right click in my blog, i just want to disable copying. is there any trick for the same.
thanks
http://cooltechwares.blogspot.com
Would love to know how to disable source code on the main tool bar under edit. Even though I can protect my blogger blings with a watermark I can't protect the page using a bling without disableing both right click and source or by encripting the source code.
Thanks pj
Http://craftykid-tcollectables.blogspot.com
It can't work...
This is good for my blog.Thanks for the useful tips.
me
http://borneo-tourism.blogspot.com
its not working for me either
i can't see any code after click HERE... so, plz guide me ya... tq
nice blog u have...
me,
http://jariketot@blogspot.com
hey its not working just pop-up's the warning && giving the right clk options
Hi , kranthi, First of all thanks for ur wonderfull tips & trick ,, that is u r giving us... really hats off to u ... now I tried this cool disable right click option in my blog.. but there is some problem with diffrent browsers.... This disable Right Click codes are working fine with Internet Explorer ,, but not with Opera 9.52 .. Opera is my default browesr.. and I surf net thru this.... Do tell me.. is there is any option / codes so that right click disable will immplemrnt in opera too... I dunt know abt Mozilla ... I didnt checked this with mozillaa..
In Firefox the code brings up the "function disabled" box AS WELL AS the right click menu. Firefox 2.
I have tried using the right click code, but with NO success :(
Where do you out the code??? I placed it in with the header text, above, below, where are you supposed to paste it???
any sample watermark logo? how to do?
thanks for the info...i have been trying out alot of ways...but failed...anyway i succeed with ur great info...thanks!!!
Kranthi,
Ok, using Firefox it disables right click, but what about CTRL+C for text and double click plus right click (or CTRL+C) for images?
I agree with you, it's better NOT to disable right click. Any idea of a solution to protect TEXT? Like watermark for images...
Right click may disable but still keyboard can do the same job. How to protect from it?
Is there any way to disable right click after they click on the picture where its a new screen with a full sized pic? Or is there any code that can disable being able to click on the picture at all to keep it from opeing to a new screen and enlarging the 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!
tahnks now i can stop people from taking my stuff:):):). oh and thanks alot know i CANT get other peoples stuff!!!!!!!!!!!!!!!!!!
grrrrrrrrrrrrrrr ruff ruff ruuffrufff grrrrrrrrrrrrrrr lol
thank you. . .much appreciated..
just until I create that perfect watermark. . :)
It does work, however, once you highlight the desired portion, ctrl+c will copy it no problem. If someone is smart enough to know how to use the right mouse button, I am sure they know how to use the keyboard.
its not possible to drag it and copy but byt ctrl+C it can be able to do... :-(
I've added a "no right-click" to protect my images, but you can still left-click on it and save it to your computer. How do you disable a total image click, both right and left???
There is no absolute way to stop someone from jacking your page short of encrypting the source. If you use javascript to block right-clicking, I can just disable javascript in my browser with a click. No-right-click methods are just deterrents for nubs.
Doesnt work at all??
This doesnt work at all, images and text can still be right clicked on??
i've tried using the code but it seems to be of no use... because even if it pops a message "function disabled"... the menu still pops out and all of its function is still clickable.
Its really good tip,thanks a lot.I use it in my blog.But i want to use it in my forum too,coz im running a forum.But how can i do that? Thanks in advance:)
thanks a lot bro!!!
its works.perfectly...
http://my-sansar.blogspot.com
all about recent event in the world....
SARTHAK JOSHI - from NEPAL
I'v done that & its perfectly working thanx
Another problem occured
Right click works with the window which opens afer clicking the image
Y is that????
I works only on IE
In Firefox the code brings up the "function disabled" box AS WELL AS the right click menu. Firefox 2. just like what deps said...
is there other way??
I know you have a million questions, so maybe you can get to mine by New Years. LOL Hope you feel better or get back to being healthy soon by the way.
Okay so I add this code and it worked, HOWEVER if you click on the image to zoom it and it zooms in another window you still can then right click on it then and do what ever you want to that image. I don't want to stop them from clicking on image to zoom, but I would like to protect the right click botton that way too if possible, with out having to add watercolor marks on the images. Can you help a girl out?
Also I am searching your site, but have yet to find it, I want to learn how to buy an element package and make my own header etc on photoshop, I already know how to do that, but I don't know how to code in the background to fit that design. I can make headers, and images for sidebar but I don't understand how to imput a costum background. HELP????
thank you for your tips about disabling right click,
I do not see the Add Page Element on my blogger template. It have a section called Add A widget? Can you explain where i should paste the code?
Great stuff !!
It worked for me. Thanks :)
AWESOME
I WORKED
it worked, but still showing the option menu.
Tq for sharing dude!
Rgrds,
http://hisyam2009.blogspot.com/
MALAYSIA
good tip.
still i can copy the code , it is just showing the alert mess :-(
hello, krant... whatta wonderful tricks! :) i love your blog.
it does not work on firefox
Ok. So I read your tutorial about right clicking. I've since disabled the right clicking on blogger. I also read that left click is impossible. So I was wondering if there was a universal way to disable right click when they are looking at the enlarged left clicked photo? I know you can do it to each photo by deleting the link in the html. but it's time consuming and annoying Do you have any ideas?
Ps. I hate watermarks. Also it's time consuming and takes up extra space in my computer.
nice.
Thanks,what Ive found is how insulting it is when people take my pics & reads my blogs with no comment. I always leave a comment.
Wonder how to post a blog about that....
I add html gadget and same code but it isn't working help me please.
Hello.I cant find anything revelant to what I'm going to ask right now but nevertheless here goes.Uhh so what I wanted to know is how can I highlight the words that people search for in my search box at the top of my blogsite.I was wondering if you know how I can do that and send the codes to only let the word be highlighted when people search in the search box on my site and not from google or anything else.Anyway man, many thanks if you are able to answer my question...take care :)
it does not work for firefox...
just internet explorer
=(
not worked for me
I cannot see the javascript??
didn't work
The most beautiful Blog I read so far
Thank you very much
Hi, there. Thanks for sharing this. Initially I was thinking to disable the right click. After reading your post here, I've changed my mind, but I've put a water mark in all my photos. :) Great sharing!
Thanks so much. Worked great! KUDOS!
Excellent! Most grateful.
not working... It's just a message box...
This is another very good tip !
This Blog is amazing, very Helpful !
Thanks
Eleanne
nice post....
thanks
yaar....i cant get it...i mean i am using a completely different template of my own..there is no ADD A PAGE ELEMENT but there is ADD A GADGET...
solve my problm yaar...my ID is sai_Krishna225@yahoo.com...plz
good trick.. i love it..^^
i dont get the point of your right click is just useless reason why because after u attempt to right click it makes no difference its just the message comes up along with the script i dont want appear SO no point
OMGOMGOMGOMGOMGOMGOMOMGMG
THANKKK YOU SOO MUCHHH!!!! X]
I've been looking for this in FOREVER! :)
it works, but when you right click you can still copy it!!!!
Thank you..!
Assallam :) The Right Click disabling works only in IE!!! Has there been any developments to avoid it in Google Chrome & Firefox?
That worked! Thanks.
My blog
It works...
But its not preventing from copying by allowing us to use ctrl+C and paste...
so wat to do for that...
yey, it really works. thanks :)