GUIDE / DATA COMPLIANCE

Is Web Scraping Legal? A Practical Guide for Businesses

Web scraping is not illegal in itself, but whether a particular project is lawful depends on what you collect, how you access it, what the source's terms say, and which countries' laws apply. Public, non-personal data collected politely is the lowest-risk case. Personal data, content behind logins, defeated blocks, and copied creative work raise the risk sharply. This guide is not legal advice; it sets out the questions qualified counsel will ask.

Map the workFix the data firstFix the rules firstOnly then choose a tool
A guide is about choosing. Map the work, decide whether data or rules is the real constraint, and only then pick a tool.

Most legal trouble with scraping does not come from reading a web page. It comes from the circumstances around it: getting past a login or a block, breaking terms you agreed to, republishing protected content, collecting personal data without a lawful basis, or putting a heavy load on someone else's servers. The sections below follow the questions worth settling, with qualified counsel, before a collection project starts.

1. How you access the data matters most

In the United States, the Computer Fraud and Abuse Act prohibits accessing a computer without authorization or exceeding authorized access. In Van Buren v. United States (2021), the Supreme Court read exceeding authorized access narrowly, as entering parts of a system that are off limits to you rather than misusing information you were entitled to reach. In hiQ Labs v. LinkedIn, the Ninth Circuit concluded in 2022 that collecting data from pages anyone can view likely does not violate the CFAA. The picture changes when collection goes behind a login, uses someone else's credentials, or defeats a technical barrier, and the United Kingdom's Computer Misuse Act draws a similar line around unauthorized access.

  1. Public pages

    Pages anyone can load without an account are the lowest-risk access path, although the contract, copyright, and privacy questions below still apply.

  2. Logins and accounts

    Collecting behind a login usually means you passed an authentication gate and agreed to the site's terms. Treat it as a separate legal question, not a variation of public scraping.

  3. Blocks and challenges

    Getting around IP blocks, CAPTCHAs, or other technical measures bears directly on whether access was authorized, and it can raise the legal risk considerably. Take advice before relying on it.

Primary sources

2. Website terms and contracts

A site's terms of service can prohibit automated collection. Whether those terms bind you depends on whether you accepted them, for example by creating an account or clicking to agree, and on the law of the place where the dispute is heard. The hiQ dispute shows the pattern: the computer-misuse argument went the scraper's way, but the case later turned against it on breach of contract and ended in a settlement. Courts have also distinguished collection while logged out from collection by an account holder who agreed to the terms. Read the terms of every source, prefer official APIs and data licenses where they exist, and record what you decided and why.

  1. Accepted terms versus displayed terms

    Terms you agreed to when signing up are far easier to enforce than a link in a footer, although both deserve a careful read.

  2. Official access first

    Where a site offers an API, a bulk export, or a data license, that route is usually safer, more stable, and cheaper to maintain.

  3. Take objections seriously

    A cease-and-desist letter, a block, or a complaint changes the risk. Pause collection from that source, review, and document the response.

3. Copyright, database rights, and what you republish

Facts are generally not protected by copyright, but the way they are expressed is: articles, photos, reviews, and product descriptions belong to their authors. In the European Union, the Database Directive gives the maker of a database built with substantial investment a separate right against extracting or reusing all or a substantial part of it, and the Court of Justice has held that a site may restrict use of a database by contract even where neither copyright nor that right applies. The EU text and data mining exception allows mining of lawfully accessed content unless the rightsholder has reserved that use, for example in machine-readable form.

  1. Collect facts, not expression

    Prices, availability, specifications, and other factual fields are lower risk than copying articles, images, or reviews wholesale.

  2. Avoid substantial extraction

    In the EU, systematically copying most of a database can infringe the database right even when each record is a plain fact.

  3. Respect reservations

    Honor machine-readable reservations of text and data mining rights and robots.txt rules, especially when data could feed AI training.

Primary sources

4. Personal data: public does not mean free to use

If the data identifies people, privacy law applies even when the information is public. Under the GDPR and the UK GDPR you need a lawful basis for collecting and using personal data, you must limit it to a defined purpose and to the minimum needed, and you generally must tell people that you hold their data. In 2023, twelve data protection authorities issued a joint statement that publicly accessible personal information is still subject to data protection and privacy laws in most jurisdictions, and that sites should protect it from unlawful scraping. European regulators have fined a facial recognition company that built its database by scraping images from the web. In the United States, obligations vary by state, and California's exclusion for publicly available information is narrower than it sounds.

  1. Minimize

    Collect only the personal fields the purpose needs, such as a business role, and leave everything else out.

  2. Assess before building

    For large-scale or sensitive collection, complete a data protection impact assessment and a legitimate-interest balancing test first.

  3. Plan retention and rights

    Decide how long data is kept, how people are informed, and how access, objection, and deletion requests are handled.

Primary sources

5. Polite collection reduces risk and breakage

How a collector behaves affects both the legal picture and the relationship with the site. Heavy crawling that burdens a service has supported claims such as trespass to chattels in US courts. Robots.txt, standardized in 2022 as RFC 9309, states plainly that its rules are not a form of access authorization, but ignoring them signals disregard for the owner's stated wishes and can weigh against you in a dispute. A well-behaved collector identifies itself, respects robots.txt and rate limits, caches what it already has, and backs off when a site struggles.

  1. Identify the client

    Use an honest user agent with a contact address, so a site owner can reach you instead of simply blocking you.

  2. Throttle and cache

    Limit request rates, back off on errors, and avoid fetching pages again when they have not changed.

  3. Keep an audit trail

    Log sources, times, and decisions so you can show what was collected, how, and for which purpose.

Primary sources

6. A pre-project checklist

Before any collection project starts, write down the answers to six questions. What is the business purpose, and could licensed data or an API serve it? Which fields will be collected, and do any of them identify people? Is every source public, or does any sit behind a login? What do each source's terms say, and were they accepted? Will anything be republished, and is it factual or creative? Which countries' laws apply to the sources, to the people in the data, and to your business? Review the answers with qualified counsel for your markets, and keep them with the project.

  1. Purpose and alternatives

    State the purpose in one sentence and check for official APIs, licensed datasets, or partnerships before building a collector.

  2. Data inventory

    List every field, flag personal data, and drop anything the purpose does not need.

  3. Sign-off and an owner

    Record the legal review and the decisions, and name the person who can pause collection when something changes.

Frequently asked questions

Is it legal to scrape publicly available data?

Often, but not automatically. Public, non-personal data collected without defeating access controls is the lowest-risk case. Website terms, copyright, database rights, and privacy law can still apply.

Does ignoring robots.txt make scraping illegal?

Robots.txt is a standard, not a law or an access control. Ignoring it is still a bad sign: it can weigh against you in a dispute, and in the EU a machine-readable reservation can withdraw content from the text and data mining exception.

Can I scrape personal data from public profiles?

Only with a lawful basis and proper safeguards where laws such as the GDPR apply. Public availability does not remove those duties, and regulators have acted against large-scale scraping of personal data.

Is collecting behind a login riskier than public scraping?

Usually. Logging in generally means accepting the site's terms and passing an authentication gate, so contract and computer-misuse questions move to the center. Take legal advice on the specific sources before collecting from authenticated areas.

Scope a collection project the careful way

Bring the purpose, the sources, the fields you need, and your markets. We will map the lowest-risk design and the questions to settle with your counsel.

Start a project