Is web scraping legal? What US, UK and EU law says in 2026
A primary-source summary of web scraping law in the US, UK and EU: Van Buren and the CFAA, how hiQ v. LinkedIn really ended, the Meta and X cases against Bright Data, copyright and AI training, GDPR, ICO and CNIL guidance, database rights and robots.txt. General information, not legal advice (checked 24 Oct 2026).

Key takeaways
- 01Scraping publicly available data is not automatically illegal in the US, UK or EU, but it can still breach a site's terms, copyright, database rights or data-protection law.
- 02In the US, Van Buren (3 Jun 2021) narrowed the federal hacking law to a "gates-up-or-down" test, and courts have treated public, logged-off pages differently from data behind a login.
- 03hiQ v. LinkedIn is often cited as a win for scrapers, but it ended in December 2022 with a $500,000 judgment and a permanent injunction against hiQ after the court found it had breached LinkedIn's User Agreement.
- 04Personal data changes everything in the UK and EU: you need a lawful basis under the GDPR, and the ICO said in December 2024 that legitimate interests is the sole available lawful basis for scraping personal data to train generative AI.
- 05Robots.txt is a standard (RFC 9309), not a permission system, but ignoring it weakens your position, and regulators such as France's CNIL expect scrapers to respect sites that clearly object.
Scraping publicly available data is not automatically illegal in the US, UK or EU, but it can still breach a site's terms, copyright, database rights or data-protection law. Risk rises when you log in, bypass blocks, collect personal data or reuse content to train AI. This is general information, not legal advice.
Not legal advice. This guide summarises public court decisions and regulator guidance, checked on 24 Oct 2026. Laws differ by country and change with new cases. Your counsel confirms what applies to your project.
Many posts on this question present hiQ v. LinkedIn as a clean win for scrapers, quote it without its ending, or get basic dates wrong. Below, each point links to the court decision, a law-firm summary of it, or the regulator's own guidance, so you can read the source.
The short answer by question
| Question | US | UK and EU | Risk level |
|---|---|---|---|
| Scraping public pages without logging in | Generally not a federal hacking offence after Van Buren and hiQ; contract and other claims still possible | Lawful in principle; terms, database rights and data protection still apply | Lower |
| Scraping data behind a login | Higher risk: you've accepted the terms, and access may be "unauthorised" | Higher risk: contract terms bind you, and access controls matter | Higher |
| Bypassing blocks, CAPTCHAs or IP bans | High risk under hacking and contract claims | High risk; CNIL expects scrapers to respect sites that clearly object | High |
| Collecting personal data | State privacy laws may apply | You need a GDPR lawful basis, transparency and data minimisation | Higher |
| Copying copyrighted text or images | Copyright claims; fair use is decided case by case | Copyright and database rights | Depends on reuse |
| Using scraped content to train AI | Active litigation; outcomes vary | ICO and CNIL guidance; EU AI Act obligations for model providers | Higher, and moving |
United States: the CFAA after Van Buren and hiQ
The Computer Fraud and Abuse Act (CFAA) makes it a federal offence to access a computer "without authorization" or to "exceed authorized access". For years, sites argued that scraping in breach of their terms did both.
Van Buren v. United States (3 Jun 2021). The Supreme Court, by six votes to three, read "exceeds authorized access" narrowly. It described the test as a "gates-up-or-down inquiry": either you're entitled to access a part of a system or you aren't. Misusing information you're allowed to reach isn't the same as breaking in.
hiQ Labs v. LinkedIn. hiQ scraped public LinkedIn profiles to sell workforce analytics. In April 2022, after Van Buren, the Ninth Circuit again upheld an injunction in hiQ's favour, finding hiQ had raised "at least serious questions" that scraping publicly available profiles, even after LinkedIn revoked access, didn't violate the CFAA. That's the part most posts quote.
The ending matters as much. As Proskauer reported, the district court found in November 2022 that hiQ had breached LinkedIn's User Agreement through scraping and the use of fake accounts. On 6 Dec 2022 the parties filed a stipulated consent judgment: a $500,000 judgment against hiQ and a permanent injunction barring it from scraping LinkedIn in breach of the User Agreement, "whether logged in to a LinkedIn account or not", and requiring it to delete the scraped data and the code built on it. The lesson: winning on the hacking law didn't protect hiQ from contract claims.
Contracts and terms of service
Because the CFAA route narrowed, sites now lean on contract law. Two 2024 decisions in the Northern District of California went the scraper's way, on specific facts:
- Meta v. Bright Data (23 Jan 2024). Judge Edward Chen granted summary judgment to Bright Data on Meta's breach-of-contract claim. As Farella Braun + Martel summarised, Meta's terms governed a user's "use" of its products, and Bright Data did not "use" Facebook and Instagram when it scraped public data while logged off. Logged-in scraping was a different matter.
- X Corp. v. Bright Data (May 2024). The court dismissed X's claims. Skadden's summary (21 May 2024) explains that the court held X's contract claims over scraping public posts were preempted by the Copyright Act, because enforcing them would give X rights beyond copyright over content its users own. Claims based on harm to X's servers failed because X hadn't adequately pleaded the damage.
Neither decision makes terms of service irrelevant. They turn on whether you agreed to the terms (logging in usually means you did), what the terms actually cover, and who owns the content. Other courts may see it differently.
Copyright and AI training
Scraping for analysis is one thing; copying expression and reusing it, especially to train AI, is where the biggest cases now sit.
- Thomson Reuters v. Ross Intelligence (11 Feb 2025). A federal judge rejected Ross's fair-use defence for using Westlaw's headnotes to build a competing legal research tool, as Venable reported on 13 Feb 2025. The tool wasn't generative AI, so the ruling's reach is debated, but it shows fair use isn't a given.
- Bartz v. Anthropic. On 25 Sep 2025, Bloomberg Law reported that a judge had preliminarily approved a $1.5 billion settlement between Anthropic and authors over books used in AI training. A settlement isn't a ruling on the law, but its size shows the stakes of how training data is sourced.
If you plan to train or fine-tune models on scraped content, check licences first and keep a record of where each item came from.
UK and EU: data protection
In the UK and EU, the first question isn't "is the page public?" but "does the data identify people?" Names, profile photos, reviews with usernames and contact details are all personal data, even when published openly. The GDPR applies based on where the people are and where you operate, not on their citizenship.
- Lawful basis. For scraping, the realistic basis is usually legitimate interests under Article 6(1)(f), which needs a documented balancing test.
- ICO (December 2024). In its consultation response on generative AI, the UK regulator said legitimate interests is "the sole available lawful basis" for training generative AI on web-scraped personal data under current practices, and that developers must show why other ways of collecting data aren't suitable and be far more transparent.
- CNIL (19 Jun 2025). France's regulator published guidance on legitimate interest and web scraping (in French): in summary, limit collection to freely accessible data, define what you collect in advance, and exclude sites that clearly object to scraping, for example through robots.txt or CAPTCHAs.
- EU AI Act. On 10 Jul 2025 the European Commission published the General-Purpose AI Code of Practice, a voluntary code covering transparency, copyright and safety for providers of general-purpose AI models. If you build or fine-tune such models for the EU market, read it alongside the AI Act itself.
Database rights and terms in the EU
The EU's Database Directive protects databases through copyright (for original selection or arrangement) and a separate sui generis right (for substantial investment). In Ryanair v PR Aviation (C-30/14, 15 Jan 2015), a price-comparison site had scraped Ryanair's flight data. The Court of Justice held that where a database is protected by neither right, the Directive doesn't stop its owner from setting contractual limits on its use, subject to national law. MediaLaws and Osborne Clarke summarise the case. In practice, EU site terms can matter even for data that isn't otherwise protected.
Robots.txt: polite, not permission
Robots.txt was standardised as RFC 9309 in September 2022. The RFC is explicit that its rules "are not a form of access authorization". So ignoring robots.txt isn't, by itself, a crime, and obeying it doesn't give you a licence.
It still matters. Courts and regulators look at whether you respected a site's clear signals; the CNIL names robots.txt as one of them. Infrastructure providers enforce it too: Cloudflare began blocking AI crawlers by default on 1 Jul 2025 for crawling without permission, and on 15 Sep 2026 replaced its single "Block AI Bots" switch with three separate controls for search, AI training and AI agents. A crawler that identifies itself honestly and respects these signals is both easier to defend and more reliable to run.
A practical checklist for lawful scraping
Before you build a scraper, work through these questions with your counsel:
- Is there an official API, data feed or licence? Use it first. It's usually more stable and removes most legal questions.
- Is the data public, without a login? Avoid scraping behind logins unless it's your own account data and the terms allow it.
- What do the site's terms say, and have you agreed to them?
- Does robots.txt allow your crawler? Respect it, and identify your crawler with an honest user agent and contact URL.
- Are you bypassing anything? Don't defeat CAPTCHAs, IP blocks or other technical barriers.
- Is any of it personal data? If so, document a lawful basis, a legitimate-interests assessment and, where needed, a data protection impact assessment. Collect the minimum.
- Are you copying expression or just facts? Prices and specifications differ from articles, photos and reviews.
- Will the data train or fine-tune AI? Check licences and the ICO, CNIL and EU AI Act material above.
- Is your rate polite? Throttle requests so you don't load the site's servers.
- Can you show where each record came from? Keep the source URL and timestamp on every row.
Our web scraping services follow this checklist: API or licence first, robots.txt respected, no login walls or CAPTCHA bypass, and personal data only with a lawful basis.
What changed and when
| Date | Event | Source |
|---|---|---|
| 15 Jan 2015 | Ryanair v PR Aviation (C-30/14) | Court of Justice of the EU |
| 3 Jun 2021 | Van Buren v. United States | US Supreme Court |
| Apr 2022 | Ninth Circuit reaffirms hiQ injunction on CFAA | Proskauer summary |
| Sep 2022 | RFC 9309 standardises robots.txt | RFC Editor |
| 6 Dec 2022 | hiQ and LinkedIn stipulated judgment: $500,000 and permanent injunction | Proskauer |
| 23 Jan 2024 | Meta v. Bright Data: summary judgment for Bright Data on contract claim | Farella Braun + Martel |
| May 2024 | X Corp. v. Bright Data dismissed; contract claims preempted | Skadden |
| Dec 2024 | ICO: legitimate interests the sole available lawful basis for generative-AI training on scraped personal data | ICO |
| 11 Feb 2025 | Thomson Reuters v. Ross: fair use rejected | Venable |
| 19 Jun 2025 | CNIL guidance on legitimate interest and scraping | CNIL |
| 1 Jul 2025 | Cloudflare blocks AI crawlers by default | Cloudflare |
| 10 Jul 2025 | EU General-Purpose AI Code of Practice published | European Commission |
| 25 Sep 2025 | Anthropic $1.5B authors' settlement preliminarily approved | Bloomberg Law |
| 15 Sep 2026 | Cloudflare splits AI bot controls into search, training and agents | Cloudflare |
Checked 24 Oct 2026. We'll review this guide in January 2027.
How Elgrith can help
Elgrith has delivered 1,000+ projects for 250+ clients since 2015, from our New Delhi HQ and client-partnership centres in New York, London and Shanghai. Our web scraping and data extraction team builds polite, identified crawlers for public data, delivers clean JSON, CSV or database feeds with a source on every row, and monitors for site changes. Your crawler code, schedules and data stay in your accounts. Feeds can land in your warehouse through our data engineering work, or power retrieval for your own AI tools through LLM integration. We don't give legal advice; we build to the rules your counsel sets. You get a fixed written quote after a free call. Book a call or start a project.
General guidance from public sources, not legal advice; your counsel confirms what applies to you.
FAQ
Frequently asked questions
Sources 15 linked
- 01Van Buren v. United States, 593 U.S. (3 Jun 2021) — Cornell LIIlaw.cornell.edu(opens in a new tab)
- 02Proskauer — hiQ and LinkedIn reach proposed settlement in landmark scraping case (8 Dec 2022)proskauer.com(opens in a new tab)
- 03Farella Braun + Martel — Meta v. Bright Data (29 Jan 2024)fbm.com(opens in a new tab)
- 04Skadden — District court adopts broad view of copyright preemption in data scraping case (21 May 2024)skadden.com(opens in a new tab)
- 05Venable — Judge rejects fair use defense in Thomson Reuters v. Ross (13 Feb 2025)venable.com(opens in a new tab)
- 06Bloomberg Law — Judge blesses $1.5 billion Anthropic copyright deal with authors (25 Sep 2025)news.bloomberglaw.com(opens in a new tab)
- 07ICO — The lawful basis for web scraping to train generative AI models (consultation response, Dec 2024)ico.org.uk(opens in a new tab)
- 08CNIL — Focus: legitimate interest and collection by web scraping (19 Jun 2025, in French)cnil.fr(opens in a new tab)
- 09EUR-Lex — General Data Protection Regulation (EU) 2016/679eur-lex.europa.eu(opens in a new tab)
- 10European Commission — General-Purpose AI Code of Practice (10 Jul 2025)digital-strategy.ec.europa.eu(opens in a new tab)
- 11MediaLaws — ECJ clarifies Database Directive scope in screen scraping case (Ryanair v PR Aviation, C-30/14)medialaws.eu(opens in a new tab)
- 12Osborne Clarke — Ryanair v PR Aviation summarymarketinglaw.osborneclarke.com(opens in a new tab)
- 13RFC 9309 — Robots Exclusion Protocol (Sep 2022)rfc-editor.org(opens in a new tab)
- 14Cloudflare — AI crawlers blocked by default (press release, 1 Jul 2025)cloudflare.com(opens in a new tab)
- 15Cloudflare — Helps end the search-or-AI-training trade-off (press release, 15 Sep 2026)cloudflare.com(opens in a new tab)
