Skip to content
Home

/

Blog

/

Web scraping

/

Is Web Scraping Legal? Court Cases, GDPR and the Rules in 2026

Published · Last updated

11 min read

Is Web Scraping Legal? Court Cases, GDPR and the Rules in 2026

Usually yes for public data, but contracts, privacy law and copyright still bite. What hiQ v. LinkedIn, Van Buren and Meta v. Bright Data actually decided, how GDPR and the EU database right apply, what robots.txt means, and a practical checklist.

Autonoly Team

Autonoly Team

AI Automation Experts

is web scraping legal
web scraping legality
web scraping laws
hiQ v LinkedIn
Meta v Bright Data
Van Buren CFAA scraping
GDPR web scraping
robots.txt legal
scraping terms of service

The Short Answer

Not legal advice

This article is general information about how courts and regulators have treated web scraping, current as of November 2026. It is not legal advice, the law differs by country and changes quickly, and the outcome of any dispute depends on its facts. If scraping matters to your business, talk to a lawyer in your jurisdiction.

Scraping publicly available data is generally legal in the United States, and often legal in the EU and UK, but "legal to access" is not the same as "legal to use". The real risk usually comes from four places rather than from scraping itself:

  1. Contracts. If you created an account and accepted terms that forbid scraping, scraping while logged in can be a breach of contract. This is how LinkedIn ultimately won against hiQ.
  2. Personal data. In the EU and UK, GDPR applies to personal data even when it is publicly visible. Regulators have fined companies for scraping it.
  3. Copyright and database rights. Facts are free to use; copying and republishing articles, photos or substantial parts of a protected database is not.
  4. How you access. Getting around a login, ignoring a cease-and-desist and an IP block, or loading a server hard enough to cause harm all move you from "reading a public page" toward claims such as unauthorized access or trespass to chattels.
SituationTypical riskWhy
Public pages, no login, facts (prices, specs, listings), modest rateLowCFAA unlikely after Van Buren and hiQ; facts not copyrightable; no account terms accepted
Public pages that include personal data (names, profiles) of people in the EU/UKMedium to highGDPR needs a lawful basis, transparency and minimization even for public data
Scraping while logged in to an account whose terms forbid itHighBreach of contract (hiQ 2022), possible unauthorized-access claims
Continuing after a cease-and-desist and a blockHighContract, trespass and, in some US courts, CFAA theories
Republishing scraped articles, images or a competitor's databaseHighCopyright, EU/UK database right

US: The CFAA and Van Buren

The Computer Fraud and Abuse Act (CFAA) makes it a crime, and a basis for civil lawsuits, to access a computer "without authorization" or to "exceed authorized access". For years websites argued that breaking their terms of service made any scraping "unauthorized".

In Van Buren v. United States (2021) the Supreme Court rejected the broad reading of "exceeds authorized access". It described the question as whether the "gates" to a part of a system are up or down for you, not whether you used information you were entitled to see for a forbidden purpose. The case was not about scraping, but courts have since applied that reasoning to it: if a page is open to anyone on the internet, there is no gate to break through.

What Van Buren did not settle: whether a website can revoke your authorization individually (for example with a cease-and-desist letter plus an IP block) for otherwise public pages. Before Van Buren, a district court in Craigslist v. 3Taps (2013) said it could. The Ninth Circuit in hiQ (below) said public pages are not covered at all. Courts outside the Ninth Circuit have not all addressed it, which is why ignoring an explicit block is still a bad idea.

hiQ v. LinkedIn: What Actually Happened

hiQ Labs v. LinkedIn is the case most often cited as "scraping is legal". The full history is more useful than the headline, because hiQ won the CFAA argument and still lost the case.

  • 2017: LinkedIn sent hiQ a cease-and-desist and blocked it. hiQ, which scraped public LinkedIn profiles for HR analytics, sued and won a preliminary injunction stopping LinkedIn from blocking it.
  • 2019: The Ninth Circuit affirmed, saying the CFAA's "without authorization" likely does not apply to data that is publicly available without a login.
  • 2021: The Supreme Court sent the case back for reconsideration in light of Van Buren.
  • April 2022: The Ninth Circuit reached the same conclusion again. This is the decision people mean when they say hiQ v. LinkedIn made public scraping legal. It was a ruling on a preliminary injunction, not a final judgment, and it is binding only in the Ninth Circuit. (It was not a Supreme Court ruling.)
  • November 2022: The district court granted LinkedIn summary judgment on breach of contract: LinkedIn's User Agreement prohibited scraping and fake accounts, and hiQ had breached it, including by using contractors who created fake profiles to access the site while logged in.
  • December 2022: The parties settled. A consent judgment required hiQ to pay $500,000, stop scraping LinkedIn and destroy the scraped data and the code and algorithms derived from it.

The lesson: for public pages, the CFAA is a much weaker weapon than it used to be, but the terms you agreed to when you created an account are enforceable. Logged-in scraping, fake accounts and "turkers" turned a winning position into a losing one.

Meta v. Bright Data (2024) and X v. Bright Data

Two 2024 decisions from the Northern District of California pushed in the same direction for logged-off scraping:

  • Meta v. Bright Data (January 2024): Meta sued Bright Data for scraping public Facebook and Instagram data. The court granted Bright Data summary judgment on the contract claim, holding that Meta's terms govern people's use of Meta's products as users and did not cover scraping of public data while logged out. Weight was given to the fact that Meta had removed language from its terms in 2009 that bound mere visitors. Meta dropped its remaining claims shortly after. (Analysis.)
  • X Corp. v. Bright Data (May 2024): The court dismissed X's contract and related state-law claims over scraping of public posts, reasoning in part that using contract law to control copying of public content the platform does not own conflicts with federal copyright law (Skadden summary). X was allowed to amend; a later ruling reportedly let a narrower trespass claim about server burden proceed.

Both are district court decisions, so they persuade rather than bind other courts, and both turned on the specific terms and facts. Neither says anything good about scraping while logged in. Read together with hiQ, the US picture is: logged-out scraping of public pages is on fairly solid ground; logged-in scraping in breach of terms you accepted is not.

Terms of Service, robots.txt and Server Load

Terms of service

Whether a site's terms bind you depends largely on whether you agreed to them. Clickwrap terms (you clicked "I agree" when signing up) are generally enforceable. Browsewrap terms (a link in the footer you never saw) often are not, unless you had actual notice, and Meta v. Bright Data shows even clickwrap terms may not reach what you do while logged out. A cease-and-desist letter gives you actual notice of the site's position, which strengthens its hand on several theories.

In the EU, the Court of Justice held in Ryanair v. PR Aviation (2015) that a site can restrict use of a database by contract where the database is not protected by copyright or the database right, so terms of use can matter more there, not less.

robots.txt

robots.txt was standardized as RFC 9309 in 2022. The RFC itself says its rules are not a form of access authorization, and US courts have not treated ignoring robots.txt as unlawful on its own. It still matters: it is the clearest evidence of what the site owner wants, it is commonly used in the EU as a machine-readable opt-out from text and data mining under the copyright rules for AI training, and ignoring it looks bad in any dispute. Respect it unless you have a specific reason and permission not to.

Server load

Sending enough requests to slow a site down can support a trespass to chattels claim (the theory used in eBay v. Bidder's Edge back in 2000), independent of whether the data is public. Rate-limit, cache and scrape off-peak.

EU and UK: GDPR Applies to Public Personal Data

The biggest difference between the US and Europe is that in Europe, "publicly available" does not mean "free to collect" when the data is about people. GDPR (and UK GDPR) applies to any personal data: names, usernames, photos, job titles, email addresses, even if they are on a public profile.

  • You need a lawful basis, usually legitimate interests, backed by a documented balancing test. The French regulator CNIL published guidance in June 2025 accepting legitimate interests for scraping in AI development only with safeguards such as defining collection criteria in advance, excluding sensitive data and respecting robots.txt. The Dutch regulator (AP) has taken a much stricter line, saying purely commercial interests are not enough.
  • You must tell people (Article 14). In 2019 the Polish regulator fined Bisnode roughly PLN 943,000 (about €220,000) for collecting public business-register data on millions of people without informing them. Poland's Supreme Administrative Court later confirmed the duty to inform, although the fine itself did not survive the appeals intact.
  • Large-scale scraping of faces or profiles draws the biggest fines. Clearview AI, which scraped billions of public photos, has been fined by several EU regulators, including €30.5 million by the Dutch AP in 2024.
  • Minimize and secure. Collect only the fields you need, set retention limits, and be ready for access and erasure requests.

Scraping non-personal data (prices, product specs, weather, company financials) does not trigger GDPR. Elsewhere, Brazil's LGPD, Canada's PIPEDA, Australia's Privacy Act and California's CCPA/CPRA have their own rules on collecting personal information; check them if you scrape people in those places.

A Practical Checklist

Most legal problems with scraping are avoidable with a few habits:

  1. Check for an API, feed or export first. If the site offers one, use it; you get cleaner data and clear permission.
  2. Stay logged out unless you have permission. If you must use an account, read the terms you agreed to. Never use fake accounts.
  3. Collect facts, not content. Store prices and specs, not full articles and images. Link to the source instead of copying it.
  4. Treat personal data as regulated. If people in the EU/UK are in your dataset, document a lawful basis, minimize fields, set retention and be able to delete.
  5. Be gentle. Low concurrency, delays between requests, honour HTTP 429 and Retry-After, cache, and respect robots.txt.
  6. Stop when asked. If you receive a cease-and-desist or get blocked, pause and get advice before continuing; that is when US contract, trespass and CFAA risks increase.
  7. Write it down. Keep a short record of what you collect, why, from where and how long you keep it.

Our web scraping best practices guide covers the technical side of polite scraping.

Where tools fit in

No scraping tool, Autonoly included, makes a given scrape legal or illegal; that depends on what you collect, how and what you do with it. If you use Autonoly, you control which sites the browser visits, whether it signs in (only the AI agent in chat can use credentials you provide; saved, scheduled workflows cannot sign in with stored credentials), how often workflows run and where the data goes. Autonoly does not use proxy rotation or residential IPs to disguise traffic.

Frequently Asked Questions

Scraping publicly available pages is generally not illegal in the US. After Van Buren v. United States (2021) and the Ninth Circuit's 2022 hiQ v. LinkedIn decision, the CFAA is unlikely to apply to pages anyone can view without logging in. Risk comes from breaching terms you agreed to (LinkedIn won its contract claim against hiQ), ignoring cease-and-desist letters, overloading servers, copyright and privacy law. This is not legal advice.

Put this into action with Autonoly

Related guides and tools to automate what you just read about — no code required.

Related terms, automations and guides

The concepts and workflows referenced in this article.

GuideWeb Scraping Best Practices: Avoiding Blocks, Bans, and Legal IssuesA comprehensive guide to web scraping best practices. Learn how to avoid IP blocks, deal with CAPTCHAs and anti-bot systems, respect legal boundaries, and where AI browser agents help (and where they don't).GuideHow to Scrape LinkedIn Profiles and Job Listings (Legally)Learn how to extract LinkedIn profile data and job listings while staying within legal boundaries. This guide covers LinkedIn's anti-scraping defenses, the hiQ v LinkedIn ruling, compliant data extraction strategies, and how to automate lead generation and recruiting research.GuideAnti-Bot Detection Explained: Why Your Scraper Gets Blocked (and What Actually Helps)How Cloudflare, DataDome, HUMAN and other bot-management systems decide your scraper is a bot, what 403, 429 and challenge pages mean, and the legitimate ways to get blocked less: APIs, rate limits, real browsers and asking for access.GuideThe 7 Best Web Scraping Tools Compared: Features, Pricing, and Use CasesA detailed comparison of the best web scraping tools available, including Autonoly, Apify, Octoparse, Browse AI, ScrapingBee, Bright Data, and Playwright. Covers features, pricing, ease of use, anti-detection capabilities, and which tool fits each use case.GuideHow to Scrape Instagram Profiles, Followers, and Emails for Lead GenerationLearn how to extract Instagram profiles, follower lists, emails, bios, and engagement data for lead generation and influencer marketing. This comprehensive guide covers profile scraping, email discovery, engagement analysis, and building automated Instagram data pipelines.Definitionrobots.txtrobots.txt is the plain-text file at a site's root that tells crawlers which paths they may fetch. It follows the Robots Exclusion Protocol, standardised as RFC 9309 in 2022, and is voluntary: well-behaved bots obey it, others ignore it.DefinitionAI AgentAn AI agent is an autonomous software system that uses large language models to perceive its environment, make decisions, and take actions to accomplish goals with minimal human direction.GuideHow to Scrape Amazon Product Data and Prices: Methods, Blocks and Legal LimitsThe ways to get Amazon product data and prices (official API, price-history tools, your own scraper, scraping APIs, no-code agents), what Amazon's anti-bot defences mean in practice, how pagination and ASINs work, and where the Terms of Service and the law draw lines.TemplateLinkedIn Company Page Scraper AI AgentAutomatically extract comprehensive company information from LinkedIn company pages with this intelligent AI Agent workflow. This template…GuideAutomation 101: The Complete Beginner's Dictionary of Terms, Concepts, and ConfusionMaster automation basics. Understand key terms, concepts, and common confusion points to confidently navigate the world of business…GuideHow to Scrape Complete Y Combinator Startup Data in 3 Minutes Without Writing a Single Line of CodeLearn how to automatically extract Y Combinator's entire startup database using Autonoly's no-code automation platform. This step-by-step…

Put this into practice

Build this workflow in 2 minutes — no code required

Describe what you need in plain English. The AI agent handles the rest.

Free forever up to 100 tasks/month