How to highlight and copy text on sites that block it

Martin Brinkmann
Updated •
Internet

Every now and then I come across sites on the Internet that prevent you from copying some or all of the text displayed to the clipboard, or even selecting it in first place using the mouse or keyboard.

I noticed this on a bank's site recently for example where I was not allowed to copy the bank account number to the clipboard.

This guide looks at methods to overcome the limitation put in place by websites on the Internet. But first, why do sites implement these restrictions in first place?

While reasons are provided by companies and individuals who implement the functionality on their web properties, the most likely reason is some form of copy protection.

Method 1: Turn off JavaScript

javascript

Most websites use JavaScript to block mouse functionality. If you turn off JavaScript on the site temporarily or even permanently, you will be able to copy text displayed on it using the mouse.

Some websites rely on JavaScript on the other hand which means that you may run into issues doing so. Some may even refuse to display at all when JavaScript is turned off.

  • Firefox users can press F12, then F1 to open the preferences and check the disable JavaScript on the page that opens..
  • Chrome users can disable JavaScript in the Content settings: chrome://settings/content
  • Internet Explorer users can turn off JavaScript in Internet Option > Security > Zone > Custom Level > Active Scripting
  • Opera users can disable JavaScript under Websites in the Opera settings: opera://settings/

Extensions like NoScript can be useful in this regard as they block the execution of scripts as well.

Method 2: The source

Another option that you have is to display the source code of the website you are on. Since it is displayed in a plain text editor it is possible to copy anything from it without restriction.

Simply press Ctrl-u while you are on the site to display its source code. This works in most browsers including Firefox, Chrome and Internet Explorer.

It is still necessary to find the text or content that you are looking for in the source. Use Ctrl-f to jump directly to it.

There you may also find links to images and other contents that you could not save or copy.

Method 3: Extensions and scripts

The third and final option is most suitable if you encounter sites regularly that prohibit right-click use or text copying when you are on them, and if the methods outlined above don't work or are not really suitable.

You find numerous extensions for these two browsers that remove annoyances on websites.

Comments

  1. Anonymous said on
    Reply

    On Chrome something that works for me is to do ctrl+a then ctrl+c and paste onto a word doc. Then just copy and paste what you want from there! More useful if you want to copy ALOT of stuff because.

  2. Dan Dobar said on
    Reply

    Chose the print page option and copy from the print preview box. It is easy, and it works!

    1. Muhammad Azeem said on
      Reply

      save as pdf and enjoy

  3. shahar said on
    Reply

    the problem is that some sites won`t loading when you disable JavaScript

  4. kadi said on
    Reply

    Thanks bro , you helped me a lot 😇

  5. anonymous said on
    Reply

    thanks for all the help but it still doesn’t work for me and i’m extremely desperate to copy and paste for some really important images i need, could anyone help?

  6. Leila Carlyle said on
    Reply

    I use Pocket – https://getpocket.com – to save web pages (rather than bookmarking them). When I encounter a page that won’t let me right click or highlight text, I save it to Pocket. Then I go to my Pocket list, open the link, and copy it from there. Don’t click on ‘View original’ or you’ll be back where you started. Just copy from the cached page. Works for both text and images.

  7. Paul Merrifield said on
    Reply

    “JavaScript” isn’t even in the settings for Chrome.

  8. Phoe said on
    Reply

    Worked on Chrome. Thx a lot !

  9. Arin Saxena said on
    Reply

    Omg! I tried to disable javascript but site didnt run so i had to use the extensions RIGHT TO COPY. and it worked. thanks so much.

  10. Worries said on
    Reply

    Any luck on a Chrome workaround? I used to use Firefox, but it bogged both my systems and crashed randomly, no matter the update. So I switched and still getting used to it.

  11. PANAMA PATRICK said on
    Reply

    WHAT WILL WORK WITH BRAVE BROWSER?

    1. Arin Saxena said on
      Reply

      i tried to use right to copy and it worked for my brave. note all extensions of chrome can run on brave.

      right to copy

      https://chrome.google.com/webstore/detail/absolute-enable-right-cli/jdocbkpgdakpekjlhemmfcncgdjeiika/related?hl=en

  12. Howgeekis said on
    Reply

    Use a proxy website that allows you to disable JavaScript before opening the site that s of interest to you. Just go to your search engine and find a free proxy website.

  13. Fichfield said on
    Reply

    Thank a lot, The info was very helpful.

  14. DustieRose said on
    Reply

    As always Martin, I learn more useful, how-to information on your site than almost any other by far overall, for Linux, and Windows; which I do pass on to my customers whom I do computer work for when the occasion presents itself. I also want to express my gratitude for your years of sharing your experience and knowledge. I have the utmost professional respect for people like yourself who do what they do for the love of it.
    (please feel free to leave the following out if it doesn’t fit the article)
    I do try to support my top sites as money allows as much as I can. I will continue to follow the sites, yours is on my top 5, that I read faithfully before most.

  15. lalit said on
    Reply

    thank u very much

  16. Kuê龜ê said on
    Reply

    Extensions above are not working.
    Use it!!!!!!

    Enable right click
    https://chrome.google.com/webstore/detail/enable-right-click/gpeddepmnbmkjfnhifmggnjdggibjjkf/reviews?authuser=1&hl=en

  17. Anonymous said on
    Reply

    body, html{
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    }

  18. Adrian said on
    Reply

    The best way is open the website in Opera and right click to select “save to PDF”. There you can select all the texts you need and copy. :)

  19. Hank said on
    Reply

    Used the Mozilla / Firefox option – Worked Perfectly – Thanks!!!

  20. Dominik Sladký said on
    Reply

    I tried all of this things, but nothig works.

  21. Kumar said on
    Reply

    Paste Pro extension in Chrome does it all .

  22. ayieG said on
    Reply

    Thank you..

  23. Anonymous said on
    Reply

    thank you sooooooooooooooooooooooooooooooo much <3

  24. Matyas said on
    Reply

    One word, LEGEND!

  25. n0h4ckz said on
    Reply

    thx helped me a lot

  26. Musa said on
    Reply

    Hello, I have a browser made by Javascript disabling copying from it, how can I copy it. It’s not among the browsers you listed above. Can you help please

  27. Cici Grasa said on
    Reply

    The turning off javascript didn’t work for me…

  28. kedaxx said on
    Reply

    RightToClick Chrome extension worked perfectly for me..

    1. PR said on
      Reply

      Thanks so much for this. It saved me from taking several screen shots.

  29. DovahkiinSenpai said on
    Reply

    Sometimes, if you can highlight the text then you have the option to search Google for the text you’ve highlighted and then click back into the searchbar and your search history should pop up with the last searched item being the text you’ve highlighted on the previous website.

  30. jason said on
    Reply

    it works , thanks

  31. Ankit said on
    Reply

    Wastage of time.. literally of no use.

  32. Any said on
    Reply

    Make a bookmark and use this as URL:
    javascript:void(document.oncontextmenu=null); document.body.onselectstart = function() {return true;};

    Tested with Chrome.

  33. Dhruv Patel said on
    Reply

    Thanks a lot…

  34. Akshay said on
    Reply

    Thank you Martin. It totally helped me for my project work.

  35. Shri said on
    Reply

    thanks brotha!

  36. Anonymous said on
    Reply

    Thanks a ton!

  37. karel said on
    Reply

    This method worked for me on chrome:

    Try to print page, then you can select the text in the preview window.

    1. Ace said on
      Reply

      Thanks alot. Finally this worked for me to copy some text on page . You saved my day

    2. Ace said on
      Reply

      Thanks for this tips.. only way for me to copy some info on a page :D

  38. greg said on
    Reply

    in firefox one can use “reader mode” like described here http://useitsmart.com/copy-text-site-blocks-coping

  39. angela said on
    Reply

    I used to use the righttocopy extension but the person took it off. What else can I use for an extension on firefox to copy and paste sites that have disabled it?

  40. Ratna said on
    Reply

    Hi Martin,

    Nice article and it is very useful!

  41. Mboo Kubwa said on
    Reply

    This is priceless! Thank you all

  42. Robert Miles said on
    Reply

    I *really* hate it when sites do this to me. Any web publisher who is attempting to plagiarize will already know how to bypass this, and anyone who doesn’t can search for a solution in 30 seconds. All it serves to do is make me feel like an idiot when all I’m really trying to do is select a few words to use as a search term so I don’t have to manually type it. I ended up using RightToClick as an alternative to jumping into the inspector every time.

  43. Anil Tiwari said on
    Reply

    Thanks Man !!!

  44. Carmin said on
    Reply

    Thank you very much!! Really helpful and saves me a lot of time.

  45. loliconer said on
    Reply

    u can try reader view mode in firefox its easy

    1. Klaas Vaak said on
      Reply

      There are web pages that disable that feature.

  46. Tamara Aller said on
    Reply

    Method 3 for Chrome did it for me.

    Thank you for helping me to do my job better and more efficiently. God bless.

  47. Nasim said on
    Reply

    Thanks Bro

  48. Ahmad Ahmadli said on
    Reply

    In search machine or anywhere click right on website and choose print and you will able to copy

    1. Dan Dobar said on
      Reply

      Yes, you can use the print screen to copy! I was so happy to discover this today and offer it as a comment.

  49. David said on
    Reply

    You can use GT Text (softocr.com). Is a totally free program for windows. And just press ALT+C and with OCR you have the blocked text.

  50. Roby said on
    Reply

    Ctrl + U :) Thanks!

  51. Mischa said on
    Reply

    How to copy content of a website that won’t accept the disabling of Javascript?

    1. Martin Brinkmann said on
      Reply

      Disable JavaScript in the browser. Or, save the page, and copy it then.

  52. Laks said on
    Reply

    Thanks! Method 1 worked for me!

  53. wings said on
    Reply

    Thanks a lot! Method 1 worked. :D

  54. Ryko said on
    Reply

    thanks..really appreciate it! good job!

  55. david chase said on
    Reply

    simply use faststone capture to copy, print or save anything you want to on any site / desktop anywhere …no hassle no problem no magic…easy easy

  56. Ron said on
    Reply

    Thanks for the tip about “Ctrl-u.” It may come in handy sometime.

  57. Belga said on
    Reply

    What bothers me the most are the pages where it is not possible to use bookmarklets in the kind of “Printwhatyoulike” or “Printliminator” to create pdf-files to archive.
    All these methods don’t help in this case.
    Thanks for the tips anyway.

    1. Klaas Vaak said on
      Reply

      Reader View obviates the use of Printliminator.

    2. Tom Hawack said on
      Reply

      Basically a bookmarklet should always operate correctly if javascript is not disabled. But there are some pages which have been crafted in such a way that they cannot be scanned from another site, indeed. I don’t know how they manage but I’ve noticed it, very few times, when saving a page with printfriendly.com or a dedicated bookmarklet. Also, some pdf-makers don’t handle https pages.

  58. belwanj said on
    Reply

    Change browser View/Page option-Style …. to “No Style”

    Also, often it is only the on screen visual ‘highlighting’ that is disabled — you can still highlight/copy text as normal with mouse/keyboard… you just can’t see the color/shade change on the text you select.

  59. Dylan Groves said on
    Reply

    In Firefox shift+right click will always get the default menu. I learned this by accident when I was trying to make shift+right click do something and it just wouldn’t work. Not sure if Chrome has something similar.

    1. Tom Hawack said on
      Reply

      I learned something. Interesting. Many application shortcuts are unknown by many users. Shift+Right_Click on Firefox (at least) always brings up the default menu. Good to know.

      1. Martin Brinkmann said on
        Reply

        That’s really good to know. Great tip!

  60. onedeafeye said on
    Reply

    One method that has never failed me is to take a screenshot.

    1. Martin Brinkmann said on
      Reply

      Works, unless you need the text and not the information. Thanks!

      1. stilofilos said on
        Reply

        There is a nice tool to convert images to text : Free OCR from http://www.paperfile.net/
        Does a great job, but needs .Net v2 and the Tesseract language pack for the language used.

        You can also save the page as a PDF, and open that one in PdfXchange viewer, which in recent versions has a very efficient and nicely working ocr tool to export selected text.

        Besides, using Firefox, i often use an addon that saves a copy of the page as it is ,apparently without scripts. From that, you can just copy whatever you want.
        Find it at https://addons.mozilla.org/en-US/firefox/addon/mozilla-archive-format/?src=search

  61. Pants said on
    Reply

    I’ve never bothered to use it, but its been in my marklet folder on my toolbar for about 2 years

    javascript:function%20kill(d){d.onmousedown=d.onmouseup=d.oncontextmenu=d.onselectstart=d.ondragstart=function(){return%20true;};}try{kill(document);for(var%20j=0;F=frames[j];++j)kill(F.document);}catch(e){}

  62. Dwight Stegall said on
    Reply

    Reenable Right Click.

    javascript:/*Anti%20No%20Right%20Click.%20Copyright%20(C)%20CodeHouse.com,%202004*/function%20kill(doc){doc.onmousedown=doc.onmouseup=doc.oncontextmenu=doc.onselectstart=doc.ondragstart=function(){return%20true};if(window.releaseEvents){releaseEvents(Event.MOUSEDOWN|Event.MOUSEUP);}}onerror=function(){return%20true};kill(document);if(frames.length){for(i=0;i<frames.length;++i){kill(frames[i].document);}}else{kill(document);}

    1. V S Rawat said on
      Reply

      didn’t work to enable copy on
      1. Google news https://news.google.com/?hl=hi&gl=IN&ceid=IN:hi
      2. on basilisk and on palemoon http://tvwiz.in/app/app/channelBrowse/69 (on ff copy is already working o this page 2, but these 2 browsers are working on ff code, so it should work)

      when you say something earthbreaking and make us run a script, and it doesn’t do what you said it would do, we use to think whether you are a hacker and whether your said script has stolen our data from browser?

      be careful.

  63. Tom Hawack said on
    Reply

    Here I’ve bundled two scripts found on the Web into one and built a bookmarklet called whenever a page refuses right-click and/or refuses text copy. I haven’t yet encountered a page where the bookmarklet would be ineffective. Works with Firefox, elsewhere I don’t know.
    Bookmarklet’s script : http://pastebin.com/tYiV0UYZ

    Copy the script, create a new bookmark, give it as url the script, as name as you wish, call that bookmark on those naughty pages (for those who ignore what a bookmarklet is)

  64. toodess said on
    Reply

    another method I use,
    just create a new bookmark, name it as you want and paste this line as URL :
    javascript:void(document.ondragstart=document.body.ondragstart=null,document.oncontextmenu=document.body.oncontextmenu=null,document.onselectstart=document.body.onselectstart=null,document.onclick=null,document.body.onclick=null,document.onmousedown=document.body.onmousedown=null,document.onmouseup=document.body.onmouseup=null,document.onbeforecopy=document.body.onbeforecopy=null,document.onbeforecut=document.body.onbeforecut=null,document.oncopy=document.body.oncopy=null);

    usualiy it works well with Firefox, I don’t have to disable javascript, just send the instruction to re-enable features supposed locked on the Web page

    1. Anonymous said on
      Reply

      That use of bookmark is the best. Thanks

  65. willnotbepublished said on
    Reply

    Sometimes pressing shift, ctrl or alt is enough.

    1. Anonymous said on
      Reply

      dude it worked LOL control shift that is…you rock!

  66. Paul(us) said on
    Reply

    Martin, Thanks for again a really interesting to read and easy to understand article.

    Niks is mention this above but not answering all of main question so here is main question to you Martin:
    The only question your article leaves me with is or the above mentioned programs and also your guide
    to the actions I can follow also works with saving pictures?
    I often encounter sites who forbid me to save a/the picture(‘s) from there website so I am wondering
    are there outer methods for saving pictures from those sites?
    Or is this method working whit who I can save pictures from websites who forbid me to do so?

    1. Doc said on
      Reply

      You can always view *all* images used in a webpage (except those displayed by plugins like Flash) in Firefox by choosing Tools -> Page Info -> Media tab. This will also allow you to save any images.

    2. Martin Brinkmann said on
      Reply

      Yes disabling JavaScript will do that as well, provided that the images are still displayed after you disable it.

  67. Niks said on
    Reply

    Disabling javascript can also help in copying/saving images where right click is disabled . I use this method to download images from instagram .

Leave a Reply

By commenting, you accept our privacy policy and keep the discussion respectful and on topic.