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.

  • ihacktheworld

    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

    • madhukar

      Nice…..good

      • madhukar

        javascript:void(document.oncontextmenu=null)

    • king

      > wow works great

    • Shashank

      > It work.. Thank you

    • juandos

      This method of the shift + F10 key does NOTwork.

  • yeba

    you are a god

  • Peter

    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!

  • jon

    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.

  • odball

    great trick many thanx

  • Pissed Guy

    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.

  • LukeNewb

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

  • Vipin

    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

  • Udaya

    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.

  • prakash

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

  • Ryan

    This is awesome, thanks.

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

  • ali

    its works….

  • Sean

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

  • MELANIE NEWMAN

    CANNOT ENABLE RIGHT CLICK

  • Anonymous

    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?

    • Priestessofsatan666

      dude you suck!!!

    • sometimeitisthatextreme

      > 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!

    • sometimeitisthatextreme

      > 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!

      • Mr X

        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>

  • Anonymous

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

  • cat

    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.

    • tom

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

  • Anonymous

    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.

  • Akshitija

    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

  • Xyz

    how can i disable right click on my website

  • Serhii

    COOL!

  • Peterw Touch

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

  • famv

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

    • Anonymous

      Why?

  • Treetopsranch

    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

  • D. Dean

    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?

  • D. Dean

    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.

  • http://www.saloncolourdirect.co.uk David Clark

    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.

  • AB

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

  • Scarlett

    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.

  • iKimmybee

    Nice disclaimer. :)

  • http://www.filthyliberal.com helgramite

    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.

  • 666

    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.

  • chika.tambun

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

    work well on lyricsfreak.com

  • AJ

    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.

  • http://Postcardtraveler.net John

    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…

  • Jono

    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.

  • Jono

    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.

    • Runofthemill

      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…

  • Runofthemill

    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!

  • AHMED

    THX ALOT MAN :)

  • Nunya

    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.

  • Edward

    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

  • Kamakshya

    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?

  • dddddd

    Great

  • jb

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

  • dilu

    good. thanks…….

  • juandos

    This does NOT work: javascript:void(document.oncontextmenu=null)

  • juandos

    Well this particular web page offers totally useless solutions.