Why websites block copying and what you can actually do about it
Some websites prevent you from selecting and copying text using JavaScript — code that runs in your browser and stops the copy command before it reaches your clipboard. This is different from a website being password-protected or legally restricted. The block only works in your browser, not on the website's server, which means several straightforward methods let you get the text anyway.
The most reliable approach is to view the page's source code, where the text sits as plain HTML that no JavaScript can hide. You can also disable JavaScript temporarily, use your browser's developer tools, or save the page as a file and open it in a text editor. Which method works best depends on how much text you need and how the website built the block.
Key Takeaways
- Copy blocks only work in your browser through JavaScript, so they do not prevent you from accessing the text itself.
- Right-click on the page, select "View Page Source" or "Inspect," and copy the text directly from the HTML code.
- Disabling JavaScript in your browser settings removes the block entirely, though some websites may not display correctly without it.
- Saving the page as an HTML file and opening it in a text editor gives you access to all the text without any blocks active.
- Browser extensions that disable JavaScript or remove copy restrictions are available, though you should only install them from trusted sources.
View the page source to find the text in raw HTML
Every website's text exists in HTML code before your browser displays it. The copy block only affects what you see on the page, not the underlying code. Right-click anywhere on the page and select "View Page Source" (Chrome, Firefox, Edge) or "Show Page Source" (Safari). A new tab opens showing the raw HTML.
Use Ctrl+F (Windows) or Command+F (Mac) to search for the text you want. Once you find it, select it directly from the source code and copy it. The text will be there, usually surrounded by HTML tags like <p> or <div>. You may need to clean up a few tags when you paste it elsewhere, but the content is fully accessible.
This method works on nearly every website because the text has to exist in the HTML somewhere for the page to display it. The copy block cannot hide the source code from you.
Use the browser's developer tools to inspect and copy text
The Inspect tool is faster than viewing the full page source if you only need one section. Right-click on the text you want to copy and select "Inspect" or "Inspect Element." A panel opens at the bottom of your screen showing the HTML for that specific part of the page.
Find the text in the highlighted code, select it, and copy. You can also right-click directly on the text in the inspector panel and choose "Copy" from the context menu. This method is quicker than searching through the entire page source, especially on long articles or pages with lots of content.
Disable JavaScript to remove the copy block entirely
Since copy blocks run through JavaScript, turning off JavaScript in your browser removes them completely. In Chrome, go to Settings > Privacy and Security > Site Settings > JavaScript and toggle it off. In Firefox, type about:config in the address bar, search for javascript.enabled, and toggle it to false. In Safari, go to Develop > Disable JavaScript (you may need to enable the Develop menu first in Preferences).
After disabling JavaScript, reload the page and you should be able to copy normally. Keep in mind that some websites rely on JavaScript for basic functions like navigation or loading content, so they may not work properly with it turned off. You can re-enable JavaScript afterward or use a browser extension that lets you toggle it per website instead of globally.
Save the page as a file and open it in a text editor
Right-click on the page and select "Save As" (or "Save Page As"). Choose a location on your computer and make sure the file type is set to "Webpage, HTML Only" or "HTML Document." This saves the page's HTML code as a file on your computer.
Open that file in a text editor like Notepad (Windows), TextEdit (Mac), or any code editor. The text is there in plain HTML, unprotected by any JavaScript. Search for the content you need, copy it, and paste it where you want it. This method also works if you are offline and want to access text from a page you saved earlier.
Use a browser extension to disable copy restrictions
Several extensions remove copy blocks automatically. "Absolute Enable Right Click & Copy" for Chrome and Firefox disables right-click blocks and copy restrictions on most websites. "Copy All Text" does the same thing with a simpler interface. These extensions work by overriding the JavaScript that creates the block.
Install only from the official Chrome Web Store or Firefox Add-ons page, never from third-party sites. Read the reviews and check when it was last updated before installing. Some extensions ask for broad permissions that are unnecessary for this task, so compare a few options before choosing one.
What to do if the text is in an image or PDF
If the website displays text as an image rather than HTML, the methods above will not work because there is no text code to copy. You can use optical character recognition (OCR) software to extract text from images. Free online tools like Google Lens (take a screenshot and upload it) or Tesseract OCR can read text from images and output it as plain text.
For PDFs, right-click on the PDF and select "Save Link As" to read it, then open it in a PDF reader. Most PDF readers let you select and copy text directly. If the PDF is locked against copying, the same OCR tools work on screenshots of the PDF pages.
Frequently Asked Questions
Is it legal to copy text from websites that block copying?
Copying text for personal use is generally legal under fair use, though the legality depends on what you do with it afterward. Copying an article to read it yourself is different from republishing it. Check the website's terms of service and copyright notice if you plan to use the text publicly or commercially.
Will disabling JavaScript break the website?
Some websites need JavaScript for navigation, forms, or loading content, so they may not work properly with it disabled. You can disable it globally and re-enable it when you are done, or use a browser extension that lets you toggle JavaScript on and off for individual websites without affecting others.
Can websites detect if I am copying text through the source code?
No. Viewing the page source or using developer tools happens entirely in your browser. The website cannot tell whether you copied text normally or extracted it from the HTML. The copy block is a client-side restriction that only affects your browser, not server-side tracking.
What if the text I want is loaded dynamically after the page opens?
If the text loads after you open the page (common on news sites or social media), wait for it to load completely, then use the Inspect tool or view the page source. The text will be in the HTML once it has loaded. If it still does not appear, the website may be loading it from a separate server, in which case OCR on a screenshot is your best option.
Do I need to install an extension to copy from blocked websites?
No. The source code and developer tools methods work without any extensions. Extensions are convenient if you copy from blocked websites frequently, but they are not necessary. Viewing the source code takes 30 seconds and works on every website.