Home › Blog › Is web scraping legal?

Is web scraping legal? US, UK, and EU rules

By the ScrapeSheet team · Published August 4, 2026 · Updated November 19, 2026 · 6 min read

Two leather-bound law books and a wooden judge's gavel on a polished table

In short: Is web scraping legal? Scraping is generally not illegal in itself, but it depends on what you collect, how you access it, and what you do with it. In the US, UK, and EU, computer-misuse laws, site terms, data protection such as the GDPR, and copyright or database rights drive most of the risk. Not legal advice.

Not legal advice. This article is general information only. Laws differ by country and change over time, and every situation is different. For anything important, or anything commercial, talk to a qualified lawyer in your jurisdiction.

Reading a public web page is something billions of browsers and search engines do every day, and collecting publicly available information is, in many contexts, permitted. Scraping is generally not illegal in itself. What can create problems is the combination of what you collect, how you access it, and what you then do with it. Three things drive most of the risk: the site’s rules, the nature of the data, and your conduct.

Is web scraping legal in the US, UK, and EU?

No country has a single “web scraping law.” Instead, the same few areas of law come up again and again: rules against unauthorized computer access, contract law (the site’s terms), data protection, and copyright or database rights. The table below names the main frameworks in each place. It is a starting point for your own research, not a complete list.

RegionComputer accessData and content
USComputer Fraud and Abuse ActCopyright Act; state privacy laws
UKComputer Misuse Act 1990UK GDPR; database right
EUNational computer-crime lawsGDPR; Database Directive

United States

The main federal statute is the Computer Fraud and Abuse Act (CFAA), 18 U.S.C. § 1030. It covers anyone who “intentionally accesses a computer without authorization or exceeds authorized access” and thereby obtains information from a protected computer. In Van Buren v. United States (2021), the Supreme Court read “exceeds authorized access” narrowly: it applies when someone with access obtains information from areas of a computer, such as files, folders, or databases, that are off-limits to them. That ruling did not settle every scraping question. A site’s terms can still matter under contract law, copied content can raise copyright issues, and several states, including California, have consumer privacy laws that can apply to personal data.

United Kingdom

The Computer Misuse Act 1990 makes it an offense to make a computer perform a function intending to secure access that you know is unauthorized. Personal data is covered by the UK GDPR and the Data Protection Act 2018, overseen by the Information Commissioner’s Office (ICO). The UK also has a database right similar to the EU’s, and copyright protects original content as usual.

European Union (including Germany)

The GDPR applies directly in every EU member state, including Germany. The Database Directive (96/9/EC) gives makers of databases that required substantial investment a sui generis right to prevent the extraction or reuse of a substantial part of the contents, while lawful users may still take insubstantial parts, though not through repeated and systematic extraction that conflicts with the normal use of the database. The 2019 Directive on copyright in the Digital Single Market allows text and data mining of lawfully accessible content, but rights holders can reserve their works from the general exception; for online content, this must be done in an appropriate manner, such as by machine-readable means. Unauthorized access to information systems is a crime under each country’s own criminal law, harmonized by Directive 2013/40/EU.

Across all three, the pattern is similar. Public pages, gentle access, non-personal data, and analysis rather than republication sit at the low-risk end. Getting around logins or technical barriers, collecting personal data, or copying whole databases sits at the other end.

What do robots.txt and terms of service mean?

Robots.txt: the polite convention

Most sites publish a file at /robots.txt that tells automated crawlers which paths the site would prefer bots not to visit. Its format is standardized in RFC 9309. It is a widely respected convention rather than a law in most places, but honoring it is good practice and a clear signal of good faith. If a section is disallowed, treat that as a request to stay out. You can read any site’s file by adding /robots.txt to its domain.

Terms of service

A site’s terms of use may restrict automated access or bulk collection. Terms can be legally relevant — especially where you have an account and have agreed to them, or where access is clearly conditioned on them. They are not identical everywhere, and their weight varies, but ignoring an explicit prohibition is a risk you should take seriously. Read the terms before scraping a site systematically, particularly behind a login.

Open combination padlock standing on a laptop keyboard

Personal data and the GDPR

This is the area that most often turns a harmless-looking scrape into a real problem. Names, email addresses, phone numbers, photos, and profiles are personal data, and their collection and use are regulated by laws such as the EU GDPR, the UK GDPR, and similar frameworks elsewhere. “It was public” does not automatically make it fair game: you generally still need a lawful basis to process it, and duties around transparency, purpose, and retention can apply. When scraping, the basis usually relied on is legitimate interests (Article 6(1)(f)), which requires weighing your purpose against the rights and reasonable expectations of the people concerned. Those people keep their rights, including the right to object (Article 21), which must always be honored for direct marketing. Again, this is general information, not legal advice.

Copyright and databases

Facts are generally not owned by anyone, but the way they are expressed can be — articles, photos, and creative text are usually protected by copyright, and in the EU and the UK some databases carry their own sui generis protection. Copying and republishing substantial protected content is a different matter from noting a price or a spec. Use scraped content for analysis and internal decisions rather than wholesale republication.

How to scrape responsibly

  1. Check robots.txt and the terms first. If something is clearly off-limits, respect it, and never get around logins, CAPTCHAs, or other access controls.
  2. Be gentle. Do not flood a server with rapid-fire requests; scrape at a human-like pace so you do not degrade the site for others.
  3. Take only what you need. Favor non-personal, factual data and a narrow scope.
  4. Use it responsibly. Analysis, price comparison, and research sit very differently from republishing content or profiling people.
  5. When in doubt, ask. Many sites offer an official API or will grant permission if you ask.

How to do it with ScrapeSheet

ScrapeSheet works on the page already open in your own browser and exports what you see to Excel (.xlsx), CSV, or the clipboard. It is closer to an assisted copy-paste than to an aggressive automated crawler hitting a server thousands of times.

  1. Open a public page you are allowed to use, such as a Wikipedia table or an open-data portal.
  2. Click the ScrapeSheet icon and then Extract; it detects the tables and lists on the page.
  3. Export to Excel, CSV, or the clipboard. The free plan exports up to 20 rows from one page per run; Pro removes the row limit and follows all pages.

Even when Pro follows many pages, keep the pace gentle and the scope narrow. ScrapeSheet does not, of course, decide the legality of any particular use. That is on you, and the habits above still apply. You can see the everyday jobs it is built for on the use cases page.

For the practical side, read how to scrape a website to Excel and the other guides on the ScrapeSheet blog.

FAQ

Is web scraping illegal?
Scraping is generally not illegal in itself, and accessing publicly available data is often permitted. But what you scrape, how you access it, and what you do with it can raise issues under terms of service, copyright, and data-protection law. This is general information, not legal advice.

What does robots.txt do?
Robots.txt is a file in which a site states which paths automated crawlers should not access. It is a widely respected convention rather than a law in most places, and honoring it is good practice.

Can I scrape personal data?
Personal data (names, emails, profiles) is regulated by laws such as the GDPR. Collecting or processing it needs a lawful basis (for scraping, usually legitimate interests, which require a balancing test) and respect for people's rights, such as the right to object; when in doubt, avoid it or seek professional advice.

Is web scraping legal in the US?
There is no single US law on web scraping. The main federal statute is the Computer Fraud and Abuse Act, which the Supreme Court read narrowly in Van Buren v. United States (2021), but site terms, copyright, and state privacy laws can still apply. This is general information, not legal advice.

Is web scraping legal in the UK and Europe?
It can be, depending on the data and how you access it. The UK has the Computer Misuse Act 1990 and the UK GDPR; EU countries, Germany included, apply the GDPR, the database right, and national computer-crime laws. Personal data needs a lawful basis, and copying a substantial part of a protected database can infringe the database right.

Sources

General information, not legal advice. Always check the website's terms and the data-protection rules that apply to you.

Keep reading

← Back to the blog · ScrapeSheet home