Re-Enable Right-Click When Web Pages Turn It Off

Several web pages turn off the ability to right-click. The following tutorial contains examples of how to turn it back on.


People are nuts about protecting their website from unauthorized copying. One of the most frequently used ways to prevent copying is to use javascript or to disable the ability to right-click.

Of course, users can use javascript to turn it back on.

To re-enable right-click when visiting the offending website, type the following into the URL bar of your browser:
javascript:void(document.oncontextmenu=null)

This example works against the following page:
www.users.totalise.co.uk/~bigoleg/javascript/javascript_disable_right_click.html

If a dialog box opens whenever you right-click, you can often get around it by using the following sequence:
Hold the right mouse button, hit Enter to close the dialog box, and then release the right mouse button.

This example works against the following website:
www.cof.orst.edu/net/software/web/html/disable_rtclick.htm

Disclaimer:
Copying websites is not cool but disabling right click is not either.

The Conversation

Follow the reactions below and share your own thoughts.

56 Responses to “Re-Enable Right-Click When Web Pages Turn It Off”

  1. October 18, 2008 at 3:36 pm, ihacktheworld said:

    One other thing you could do in relation to the second scenario
    is instead of clicking and holding right click
    just hit SHIFT + F10 and it will open the right click menu

    Reply

    • January 24, 2013 at 7:38 am, madhukar said:

      Nice…..good

      Reply

      • January 24, 2013 at 7:38 am, madhukar said:

        javascript:void(document.oncontextmenu=null)

        Reply

    • February 03, 2013 at 9:28 pm, king said:

      > wow works great

      Reply

    • October 18, 2013 at 8:59 am, Shashank said:

      > It work.. Thank you

      Reply

  2. October 29, 2008 at 3:43 am, yeba said:

    you are a god

    Reply

  3. November 10, 2008 at 11:50 am, Peter said:

    Sweet!
    I tried: “javascript:void(document.oncontextmenu=null)” now I can right click! This is cool! Thanks!
    However, I am still not able to copy any text in the webpage!

    Reply

  4. November 12, 2008 at 12:54 am, jon said:

    Another way websites try to prevent right click is by placing a transparent .gif directly over an image, so that when you right click and hit save, it saves a blank file. this can be averted by ad-blocking the offending .gif and refreshing the page.

    Reply

  5. November 12, 2008 at 10:27 pm, odball said:

    great trick many thanx

    Reply

  6. November 20, 2008 at 12:47 am, Pissed Guy said:

    Hi, i stumbled upon this site yesterday and I couldn’t but sharing my experience.

    There is this site that provide free wallpaper [NOT PORN !!] download for registered user. After registered, I start browsing for wallpaper (browsing for wallpaper only meant for registered user). When i clicked at the wallpaper image, a new window open with full size wallpaper preview. Then, as usual I right click to save the image. To my suprise, the window immediately closed. Now, I’m pissed.

    So i tried this java trick and i got like “user being banned permanently and my IP address displayed”. Okay now I’m really really pissed.

    Then I remember that i had this good FIREFOX extension called “SCRAPBOOK” that used to capture a webpage. Yes, It worked. The preview window was captured and I re-open the captured page to save the wallpaper. i should call it Superfox since it always saves me when i’m in some trouble.

    I wonder why they would do such thing if they wan to provide free wallpapers. I can accept the register thing but not being able to download wallpaper is way out of line. If they don’t want to share their precious wallpaper then don’t say its FREE or don’t even bother uploading those images.

    Reply

  7. November 20, 2008 at 9:06 pm, LukeNewb said:

    Hold the right click down did the trick! You haxxor!

    Reply

  8. November 22, 2008 at 5:39 pm, Vipin said:

    Thats what exactly my prob was… i dont have a printer in my home and no internet at workplace… so it was creating difficulty for me while purchasing tickets online… the print screen trick doesn’t help coz… it does not copy the whole ticket…. but the right click + enter helped me to copy it and to paste it in MS Word

    Reply

  9. January 08, 2009 at 5:39 am, Udaya said:

    Great. The trick “right mouse click and hold”. I have to add one more thing.when we do this trick I did like bleow.
    right mouse click and hold and move to the messege.then dont unhold the right mouse click and click the ok button with left click.Then messege disapear.Then release the right mouse click.Now you can see the property box.
    try it.
    thanx.

    Reply

  10. March 10, 2009 at 2:43 am, prakash said:

    great !!!!! it works..and i m happy now :>)

    Reply

  11. March 11, 2009 at 8:05 pm, Ryan said:

    This is awesome, thanks.

    I added the javascript as a bookmark, so I can just click the bookmark and have my right click back.

    Reply

  12. May 13, 2009 at 5:30 pm, ali said:

    its works….

    Reply

  13. May 20, 2009 at 6:41 am, Sean said:

    Fact is, of course, the content is usually automatically copied. All you have to do is rummage through the cache.

    Reply

  14. June 28, 2009 at 12:49 am, MELANIE NEWMAN said:

    CANNOT ENABLE RIGHT CLICK

    Reply

  15. July 16, 2009 at 4:30 pm, Anonymous said:

    As the developer of multiple Social Networking Websites, I utilize a right click disable for 2 reasons, 1 is as you stated, to keep people from stealing work. But that is really become a useless means as more and more hackers find ways around it. The 2nd reason was to protect the media of my members that others choose to steal and create fake profiles with it.

    With the development of browsers such as Firefox and their add on tools, the issue has less to do with people stealing code now as it does to detering the average person from stealing the photos/video/audio files that belong to the members and sites.

    As far as claiming that locking down a site is not cool, it’s also not cool to spend months developing a site option to have someone else come in and take it without paying for it. Would you go into a store and just take a watch without paying? I think not but that is all to often what people seem to think they can do on the internet.

    Thanks for the tips you guys are using though to bypass the right click disable and help us circumvent it. Now, where did I put that little .htaccess file?

    Reply

    • November 11, 2010 at 10:49 pm, Priestessofsatan666 said:

      dude you suck!!!

      Reply

    • October 07, 2012 at 11:37 pm, sometimeitisthatextreme said:

      > Thank you! I couldn’t have said it better! I worked hard in designing my website that hosts my artwork in which I work even longer to create! I did this beautiful sketch of my mother and it was stolen right off of my site (in which didn’t have right click disabled). The thief was another local artist and was rude enough to display a poorly re-created sketch at a local cafe style pub!

      I was at the pub to meet with the owner about displaying my work there when I caught sight of the stolen re-creation. For the record, I lost my whole family when I was 13 and my mother’s death hit the hardest so in seeing this, my heart hurt! I showed the owner of the pub the actual picture of my mother along with a picture of the original sketch and he was kind enough to take it down. The owner also connected me to the thief!

      When I contacted this thief to anonymously ask about the work of art, he had the nerve to lie to me and say that it was his girlfriend. I told him that I had seen this woman’s image before on a website, he told me that it was also posted on his art website. He showed me the site and his website was a complete rip off of mine. Art images of my friends, family and landscaped art of the property that I live on! I had all the information I needed to sue him, if I wanted to. Instead, I decided to tell him the woman’s name, when and how she died and info about ALL the pictures that he had stolen! I didn’t have the location of my studio listed at the time and wasn’t advertising to site other then having it view-able to people that I know. I think that he thought the artist lived in another country and never bothered to truly pay attention to the text because all he wanted the art and the site layout!

      I had a lawyer contact him to remove the art from public viewing and remove the website or I would sue him as all my work (even my website) is under copyrights but I should not have had to go through that in the 1st place as life is already hard enough for me! To those of you that think that taking extra measure to protect my work; in which, is my livelihood is “not cool”…you bend over and take it up the rear because I’m personally tired of it!

      P.S. Pay attention to what is being said in the comments…”Thanks!
      However, I am still not able to copy any text in the webpage!” <—stealing!
      If the person doesn't wish you to "TAKE" the content on their page and you do it anyway, this is stealing! How hard it is to visit a different page and respect the person's webpage? There really is NO excuse for being lowlife or helping others to be lowlife!

      ~ A tired work at home single mother, artist and web designer with cancer and no family other than my 3 children that is sick of being screwed over by thieves!
      _______________________________________

      *I NEVER use images of the public or public places! I only work with people that I know and with their expressed permission! All of my work (sketches, graphic and even the fonts are custom created and are truly original works…I don't steal from others…I HAVE PRIDE!

      Reply

    • October 07, 2012 at 11:38 pm, sometimeitisthatextreme said:

      > Thank you! I couldn’t have said it better! I worked hard in designing my website that hosts my artwork in which I work even longer to create! I did this beautiful sketch of my mother and it was stolen right off of my site (in which didn’t have right click disabled). The thief was another local artist and was rude enough to display a poorly re-created sketch at a local cafe style pub!

      I was at the pub to meet with the owner about displaying my work there when I caught sight of the stolen re-creation. For the record, I lost my whole family when I was 13 and my mother’s death hit the hardest so in seeing this, my heart hurt! I showed the owner of the pub the actual picture of my mother along with a picture of the original sketch and he was kind enough to take it down. The owner also connected me to the thief!

      When I contacted this thief to anonymously ask about the work of art, he had the nerve to lie to me and say that it was his girlfriend. I told him that I had seen this woman’s image before on a website, he told me that it was also posted on his art website. He showed me the site and his website was a complete rip off of mine. Art images of my friends, family and landscaped art of the property that I live on! I had all the information I needed to sue him, if I wanted to. Instead, I decided to tell him the woman’s name, when and how she died and info about ALL the pictures that he had stolen! I didn’t have the location of my studio listed at the time and wasn’t advertising to site other then having it view-able to people that I know. I think that he thought the artist lived in another country and never bothered to truly pay attention to the text because all he wanted the art and the site layout!

      I had a lawyer contact him to remove the art from public viewing and remove the website or I would sue him as all my work (even my website) is under copyrights but I should not have had to go through that in the 1st place as life is already hard enough for me! To those of you that think that taking extra measure to protect my work; in which, is my livelihood is “not cool”…you bend over and take it up the rear because I’m personally tired of it!

      P.S. Pay attention to what is being said in the comments…”Thanks!
      However, I am still not able to copy any text in the webpage!” <—stealing!
      If the person doesn't wish you to "TAKE" the content on their page and you do it anyway, this is stealing! How hard it is to visit a different page and respect the person's webpage? There really is NO excuse for being lowlife or helping others to be lowlife!

      ~ A tired work at home single mother, artist and web designer with cancer and no family other than my 3 children that is sick of being screwed over by thieves!
      _______________________________________

      *I NEVER use images of the public or public places! I only work with people that I know and with their expressed permission! All of my work (sketches, graphic and even the fonts are custom created and are truly original works…I don't steal from others…I HAVE PRIDE!

      Reply

      • November 29, 2013 at 9:49 am, Mr X said:

        What do you expect when you put all your artwork on the web, if I was you I would watermark any images you upload onto your site straight across the middle>

        Reply

  16. August 28, 2009 at 9:05 pm, Anonymous said:

    What is YOUR suggestion concerning the protection of a web author’s intellectual property if disabling right click “isn’t cool”?

    Reply

  17. September 04, 2009 at 3:25 pm, cat said:

    If you find that nothing happens when you right-clickhold down the Ctrl key while you click on a webpage, it is a known issue caused by the Yahoo! Toolbar for Firefox.

    Yahoo!® has been contacted about this issue.

    For now, disabling the Yahoo Toolbar add-on will prevent this issue.

    1. At the top of the Firefox windowOn the menu bar, click on the Tools menu then select Add-ons, to open the Add-ons window.
    2. Select the Extensions panel.
    3. In the list of extensions, select the Yahoo! Toolbar, and click Disable.

    Reply

    • March 29, 2010 at 9:56 pm, tom said:

      thank you it workred now if only I could get my numbers on my keyboard to work lol thanks again

      Reply

  18. September 27, 2009 at 5:02 pm, Anonymous said:

    It’s more interesting to allow right click at any site altering fire fox config.

    about:config
    find: contextmenu

    double click on it, it’s done.

    Reply

  19. June 18, 2010 at 4:32 am, Akshitija said:

    It did work for couple of sites but did not work on http://qtp.blogspot.com/2007/04/object-repositories-in-qtp-9-quicktest.html

    Reply

  20. July 24, 2010 at 12:06 am, Xyz said:

    how can i disable right click on my website

    Reply

  21. September 12, 2010 at 12:25 pm, Serhii said:

    COOL!

    Reply

  22. December 05, 2010 at 5:09 pm, Peterw Touch said:

    added 05/dec/2010 ..excellent solution ..tried many other explanations like yahoo toolbar and other add ons…this is the real answer…thank you

    Reply

  23. February 15, 2011 at 12:03 am, famv said:

    small suggestion: change the first 4 words of the article to “people are very worried about”

    Reply

    • February 15, 2011 at 12:23 am, Anonymous said:

      Why?

      Reply

  24. April 22, 2011 at 8:11 pm, Treetopsranch said:

    None of the suggested solutions work for the new yahoo mail. They have disabled right click so that I can not open mail in another tab on FireFox

    Reply

  25. September 23, 2011 at 6:12 am, D. Dean said:

    To all those who are all puffed up cause someone might “steal” their precious photographs: Don’t you just love it when they take a picture of a property that doesn’t belong to them?

    Reply

  26. September 23, 2011 at 6:19 am, D. Dean said:

    Flickr is particularly annoying because people have this “owner has disabled downloading of their photos” when they are taking photographs of people they don’t ask permission to take, and places and things that don’t belong to them.

    Reply

  27. September 29, 2011 at 4:03 am, David Clark said:

    Flickr “owner has disabled downloading of their photos”. Right click on picture/Save as. Find folder to which page saved. The webpage will be there and a folder with webpage contents. In this folder will be the picture. Move picture to pictures folder. Then delete saved webpage (associated folder will also be deleted).

    BTW None of the above seems to work on Firefox and Rymans website.

    Reply

  28. October 14, 2011 at 10:35 pm, AB said:

    On Windows 7, you can just use “Snipping Tool” to capture and save an image.

    Reply

  29. October 15, 2011 at 2:30 pm, Scarlett said:

    Thank you for the assistance on enabling the right click to enable a print function that was disabled.

    I am taking college classes and sometimes just want to copy the work to save for studying. I am not trying to steal or sell someone else’s work, I just want to use the material for study. Our college will disable printing so students cannot print quizzes that we have taken. I print the quizzes so I can go back to the book, make notes, figure out why I answered the question right or wrong. Thanks for your assistance.

    Reply

  30. November 03, 2011 at 8:01 am, iKimmybee said:

    Nice disclaimer. :)

    Reply

  31. November 18, 2011 at 1:52 pm, helgramite said:

    If you see it as the same size you want, and don’t care about resolution or resizing you can also do a ctrl-prtsc (print screen) to grab the whole thing then take it to photoshop and clip it out, etc. You can also look in your cache too. Be aware this violates copyright if present.

    Reply

  32. February 26, 2012 at 12:42 am, 666 said:

    thank you, holding right click and pressing enter worked just fine..
    now i can view a main page and right click to view images in new tab/window.
    save me the hassle of having to keep pressing back.

    Reply

  33. April 02, 2012 at 2:43 pm, chika.tambun said:

    just save the page (win: ctrl+s button) as html only then you’ll get the text

    work well on lyricsfreak.com

    Reply

  34. June 27, 2012 at 8:32 pm, AJ said:

    Why do people think that it is okay to steal other people`s work by right clicking? Most thieves will find a work around
    to most security. People that infect computers with viruses do it all the time. Unless you have permission to take anything, you are a thief.

    Reply

  35. August 26, 2012 at 11:30 am, John said:

    The solution is simpler than the problem:
    Target and penalize offenders, but when all users are treated like offenders thats so much like punishing everyone for the mid-deeds of a few. How is this different than making everyone install an ignition interlock (for instance) because a minority of drivers choose to drive drunk? Fact is, its not.
    When I see people with scans of public domain works on Flicker and other websites, with no original “interpretation*” or creative content, and that person (or flickr) disables “right click” saving, I understandably get upset that they are in stark violation of the principles of “Fair Use”.
    Not everyone is online to steal precious code, or original works.
    Im an amateur photographer , and have spent much time thinking this through with regard to my own works–I watermark-discretely. The reason?
    People who are going to steal, will steal. To me, sharing the works is important without ruining them with huge watermark overlays that target that very small group that does such things.
    Treating all your visitors as if they are a crime in progress guarantees one thing:
    If they were inclined to support you or your work in some way: they will be less inclined now.
    Target the offenders-not everyone.
    And seriously: because the odd individual chooses to spoof a profile, or create a harassing account- you treat everyone as suspects?
    In many states–and even more countries, that type of activity is prohibited by law. Its a crime. And at the very least its a violation of your EULA (if you have one) and/or terms of service-take action.
    But targeting everyone?
    It aint winning you customers-and its probably getting in the way of making friends.
    If you’re a “part time” entrepreneur online: Be honest with yourself, and realistic: Think Creative Commons for the little things, treat your visitors with respect, and market your skills in the appropriate forums if you have a product, service, or skill to do so with. But nobody is buying wall papers, javascripts or backgrounds. Sell ad space like the big boys and get over yourself.
    BTW: For me: when I right-click and cant save a public domain work?
    MWSNAP.
    You cant stop my desktop actions with all of the javascipt and cute browser tricks–so good luck circumventing my process.
    Cheers.
    j.
    *Original interpretation is why someone can take a picture of anyone in a public place and copyright that work as an “original work”. FYI: You have no expectation of privacy in a public place…

    Reply

  36. October 29, 2012 at 12:57 pm, Jono said:

    Another solution is to temporarily disable javascript in your browser settings and reload the page. Preventing users from right-clicking is done via javascript and so no javascript=no protection. Of course, some pages may not display correctly without javascript.

    Reply

  37. October 29, 2012 at 1:03 pm, Jono said:

    In Firefox you can prevent sites from disabling right-click menus by going to “Tools->Options->Content->Enable Javascript->Advanced->Disable or replace context menus” and unclick the checkbox.

    Reply

    • November 11, 2012 at 10:02 pm, Runofthemill said:

      That is a good tip but while it allows you to see right click and copy you cannot actually copy it because it shows a window popup and even though I did right click on mouse and enter enter it just cycles and does not really work in the end…

      Reply

  38. November 11, 2012 at 9:57 pm, Runofthemill said:

    I do not get the first part of the paragraph because it does not show to work as they suggested.

    How can I disable a site like; http://www.skymem.com

    And I tried the shift F10 and that did not work either.

    I would really appreciate any feedback!

    Reply

  39. July 03, 2013 at 8:52 am, AHMED said:

    THX ALOT MAN :)

    Reply

  40. August 05, 2013 at 11:31 am, Nunya said:

    I don’t know why these morons continue to disable right-click on any page, ever foar any reason as it’s annoying as all get out and it can always be overcome. It only serves to make people pissed off and determined to defeat it.

    BTW, the ” SHIFT + F10″ doesn’t work if you’re looking to open a particular link on the page in another tab however “clicking and holding right click” does work for that purpose, thanks for the info.

    I’ve found it to work on pages where my add-on “right to click” does not.

    Reply

  41. October 10, 2013 at 11:26 pm, Edward said:

    Any method that allow right-click (exact possition in mail.com inbox)? Javascript javascript:void(document.oncontextmenu=null) doesn’t work there. Shift+F10 only turn on right-click menu but in fixed conner, can’t right-click in the possition which I choose to do.

    Reg a email in mail.com and give me suggestions if anyone have a bit spare time. Thanks

    Reply

  42. November 16, 2013 at 1:41 pm, Kamakshya said:

    Thanks for the information but I got the content of the example page through parsing.So if someone tries to parse the source code ,then how will you protect that?

    Reply

  43. November 29, 2013 at 9:53 am, dddddd said:

    Great

    Reply

  44. February 07, 2014 at 3:21 am, jb said:

    is there any way to remove/disable the javascript after enabling it?

    Reply

  45. March 15, 2014 at 11:19 am, dilu said:

    good. thanks…….

    Reply

Leave a Reply