Skip to content

Is web scraping legal? What to check before you collect data

By the ProxyOnly team · 14 Nov 2026 · 5 min read

Whether web scraping is legal depends on the data, the access, the terms and the use. Five questions to ask, what key rulings say, and a checklist.

There is no single answer. Whether web scraping is legal depends on what data you collect, how you reach it, what the site's terms say, which countries' laws apply, and what you do with the data afterwards. Scraping publicly visible pages is not automatically illegal, and publicly visible does not mean free to use however you like.

This article is general information, not legal advice. Laws differ between countries and change, and for a commercial project you should speak to a lawyer where you and the site operate. What follows is a map of the questions that matter and the decisions that shaped them.

Five questions that decide most cases

  1. Is the data behind a login, a paywall or another technical barrier?
  2. What do the site's terms say, and have you agreed to them?
  3. Is the data protected by copyright or a database right?
  4. Does it include personal data?
  5. What will you do with it, and does your access harm the site?

Computer misuse laws

In the United States the main statute is the Computer Fraud and Abuse Act, which prohibits accessing a computer without authorization or exceeding authorized access. Two cases shaped how it applies to scraping.

In Van Buren v. United States (2021), the Supreme Court read "exceeds authorized access" narrowly. By a 6 to 3 vote it held that the phrase covers getting information from parts of a system that are off limits to you, not misusing information you were entitled to see. Lawyers describe this as a gates-up-or-down approach. The Court left open whether the gate must be technological, such as a password, or could also be a contractual limit. You can read the opinion yourself.

In hiQ Labs v. LinkedIn, the Ninth Circuit ruled in April 2022, after the Supreme Court sent the case back in light of Van Buren, that the CFAA's "without authorization" concept likely does not reach pages that are open to anyone, such as public profiles. That was a ruling at the preliminary injunction stage, and you can read the opinion.

The case did not end there. LinkedIn later won summary judgment on its breach of contract claim, and in December 2022 the parties agreed a consent judgment that included $500,000 in damages and an order that hiQ stop scraping and delete data. The lesson is that a scraper can avoid the CFAA and still lose on contract. Proskauer's summary covers the settlement.

Other countries have their own computer misuse laws, and their reach differs.

Terms of service and contract

A site's terms can bind you if you agreed to them, for example by creating an account. Enforceability of terms that you never actively accepted varies by jurisdiction. Scraping while logged in is riskier for this reason, because you have accepted the terms.

In Meta v. Bright Data (N.D. Cal., January 2024), the court found that Meta's terms, as written, did not bar Bright Data's scraping of public pages while logged out. Meta later dropped the case. Commentators stress how narrow it is: it concerned Meta's terms, not every website's, and it did not decide whether scraping behind a login is permitted. A client alert from Quinn Emanuel summarises it.

In the European Union, the Court of Justice held in Ryanair v PR Aviation (2015) that a website owner can restrict the use of a database by contract where the database has neither copyright nor database-right protection. Terms can matter even when the data is unprotected, as discussed in this commentary.

In the United States, facts cannot be copyrighted, but original expression and the original selection and arrangement of facts can be. Feist v. Rural Telephone (1991) is the leading case. Collecting prices or opening hours is different from copying articles, photographs or an entire curated database.

The European Union adds a database right that protects substantial investment in building a database. It also has text and data mining exceptions in Directive 2019/790. Article 3 covers research organisations. Article 4 is a general exception, but a rights holder can reserve their rights for content made available online by machine-readable means, which takes that content out of the exception.

Personal data

Privacy law applies to personal data even when it is public. The EU's GDPR covers names, email addresses, profile details and anything else that identifies a person, and it requires a lawful basis, transparency and limits on how much you collect and how long you keep it. Scraping people's profiles for lead lists or monitoring is where scrapers most often run into trouble. Other privacy laws treat publicly available information differently, so check the law that applies to the people whose data you collect.

robots.txt and the load you create

The robots.txt file is a convention for telling automated clients which parts of a site to avoid, and RFC 9309 standardises its format. It is not a law, but ignoring it can be used as evidence against you in a dispute, and it is the first thing a careful scraper reads.

How hard you hit a site matters too. Traffic heavy enough to degrade a service can give the operator grounds for a claim, and some legal theories exist around exactly that. Going slowly is both polite and protective, and rate limiting explained shows how.

What proxies change

Nothing, legally. A proxy does not make an unlawful activity lawful, and using one to get around a block that a site deliberately put in place can look like circumvention. Proxies are a tool for location and scale, covered in proxies for web scraping, not a way around the rules above.

A practical checklist

  • Prefer an official API, a feed or a licensed dataset to scraping.
  • Stay logged out and on public pages. Do not get past logins, paywalls or other technical barriers.
  • Read the site's terms and its robots.txt file.
  • Avoid personal data unless you have a lawful basis, and delete what you do not need.
  • Go slowly, identify yourself and honour 429 responses and Retry-After headers.
  • Do not republish copyrighted material wholesale.
  • Keep a record of what you collected, when and why.
  • Get legal advice before a commercial project, especially one that crosses borders.

For the practical side of scraping, start with what is web scraping.

Try it yourself

Create an account, add funds from US$1 and order a proxy in the country you need.

Keep reading