Trellee
All notes
EngineeringNov 9, 2026· 5 min

Is Web Scraping Legal? A Plain-English Guide for Businesses

Scraping public pages is not illegal by default in the US, but login walls, personal data and site terms change the risk. Here is what to check first. General information, not legal advice.

SZ
Founder
Share
A laptop on a glass-top table showing charts and statistics.
Photo by Carlos Muza on Unsplash

Scraping publicly visible web pages is not a crime in the United States by default, but "legal" is not one yes-or-no answer. Whether a specific project is safe depends on what you collect, how you collect it, what the site's terms say, and what you do with the data afterward. This guide covers the main questions a business should ask before it starts. It is general information, not legal advice. For a specific project, talk to a lawyer.

The short version

Four things decide most of the risk:

  1. Is the data public, or behind a login? Public pages and logged-in pages are treated very differently.
  2. Does it contain personal information? Names, emails and phone numbers raise privacy questions that product prices do not.
  3. What do the site's terms say? Breaking terms of service is usually a contract issue, not a criminal one, but it can still lead to a lawsuit or a blocked account.
  4. How hard are you hitting the site? Heavy traffic that slows a site down creates problems that have nothing to do with the data.

What the main US computer crime law says

The federal Computer Fraud and Abuse Act (CFAA, 18 U.S.C. 1030) is the law people usually mean when they ask about scraping. It targets accessing a computer "without authorization" or in a way that "exceeds authorized access."

In June 2021 the US Supreme Court narrowed that second phrase in Van Buren v. United States. The Court said both phrases come down to a "gates-up-or-down" question: either you can access a system, or certain areas of it, or you cannot. Misusing information you were allowed to reach is not what the law covers.

The Court also left one question open. In a footnote it said it was not deciding whether that inquiry looks only at technical barriers, such as passwords, or also at limits written into contracts and policies. So the rulings do not settle whether a terms-of-service ban alone can turn scraping into a CFAA violation.

What the LinkedIn case added

The best-known scraping case is hiQ Labs v. LinkedIn. In April 2022 the Ninth Circuit Court of Appeals, looking at the case again after Van Buren, affirmed a preliminary injunction that kept LinkedIn from blocking hiQ's access to publicly available member profiles. The court reasoned that a public website has put up no gate to lift or lower, so the "gates" idea fits poorly with pages open to anyone with a browser.

Keep the limits in mind. That was a ruling at an early stage of the case, from one federal circuit, and it addressed the CFAA and a related claim. It did not say that every kind of scraping is allowed everywhere.

Terms of service, robots.txt and blocking

QuestionWhat to know
Do the terms of service ban scraping?A ban can support a breach of contract claim, and whether you agreed to the terms (for example by creating an account) matters. Read them before you start.
Does robots.txt make scraping illegal?Not by itself. The robots.txt standard (RFC 9309) says its rules "are not a form of access authorization." Ignoring it is still bad practice and can get you blocked.
Is the data behind a login?Logged-in data is the riskiest area. Using someone else's credentials, or getting around a login or paywall, is where CFAA claims are most likely.
Does the site block you?If a site actively blocks you and you work around the block, your legal position may get weaker.

Personal data

Even public information can carry privacy obligations. California's privacy law (the CCPA) excludes some publicly available information from "personal information," such as data from government records and information a business has a reasonable basis to believe the consumer lawfully made available to the general public. That exclusion is narrower than "anything on a public page," so do not treat it as a blanket permission.

If you plan to collect names, emails or phone numbers, get advice first, and decide whether you really need them. Product prices, stock levels, listings and public business details carry far less risk.

A practical checklist before you scrape

  • Write down what data you need and why. Collect only that.
  • Check whether the site offers an API or a data feed. If it does, use it (see web scraping or an API).
  • Read the terms of service and robots.txt, and note what they say.
  • Stay on public pages. Do not use borrowed logins or bypass paywalls.
  • Skip personal data unless you have a clear lawful reason and legal advice.
  • Limit your request rate so you never slow the site down.
  • Identify your scraper honestly and keep logs of what you collected and when.
  • Ask a lawyer to review the plan if the data feeds a product you sell, or if the source is a competitor.

When you do not need to hire anyone

If you are checking a few public pages by hand or exporting your own data from tools you pay for, you do not need a developer or a lawyer. Bring in help when the job is recurring, large, or feeds decisions that matter to your revenue. If you are planning that, our web scraping cost guide explains what a project typically costs, and the web scraping service page explains how we build and maintain these pipelines.

If you want a second opinion on whether a data source is practical to collect, you can book a call. We will tell you plainly if an API or a simpler tool is the better route.

Sources

  1. Van Buren v. United States, No. 19-783, Supreme Court of the United States, Jun 3, 2021
  2. hiQ Labs, Inc. v. LinkedIn Corp., No. 17-16783, US Court of Appeals for the Ninth Circuit, Apr 18, 2022
  3. 18 U.S. Code 1030: Fraud and related activity in connection with computers, Cornell Legal Information Institute, Nov 9, 2026
  4. RFC 9309: Robots Exclusion Protocol, IETF, Sep 1, 2022
  5. California Consumer Privacy Act (CCPA), California Attorney General, Nov 9, 2026

Questions

Is it legal to scrape a website that has no login?

Often yes for public pages, but it is not automatic. A federal appeals court in the hiQ v. LinkedIn case reasoned that a public page has no gate to bypass, yet that was an early-stage ruling from one circuit. Terms of service, personal data and how fast you request pages still matter.

Does ignoring robots.txt break the law?

Not by itself. The robots.txt standard says its rules are not a form of access authorization. Ignoring it is still poor practice, can get your scraper blocked and may weaken your position if a dispute arises.

Do I need a lawyer before I scrape?

For a one-off look at a few public pages, usually not. If the project is recurring, collects personal data, uses logged-in access or targets a competitor, get legal advice first.