This guide explains the main legal questions around web scraping in the United States, the European Union and the United Kingdom. It is general information, not legal advice: the law varies by country and changes over time, so ask a lawyer about your specific project.
The short answer
Scraping data that anyone can view without logging in is generally lawful. Four areas of law decide whether a particular project crosses a line:
| Area of law | The question it asks | Lower risk | Higher risk |
|---|---|---|---|
| Computer misuse | Did you get past a barrier you were not allowed through? | Public pages, no login | Logins, paywalls, access controls you were not given |
| Contract (terms of service) | Did you agree to terms that forbid it? | No account, terms not accepted | Scraping from an account whose terms forbid it |
| Copyright and database rights | Are you copying protected content? | Facts, prices, short data points | Articles, images, whole databases republished |
| Privacy | Are you collecting personal data? | Prices, products, rankings | Names, photos, profiles, contact details |
United States: computer misuse and contract
The main US statute is the Computer Fraud and Abuse Act (18 U.S.C. § 1030), which makes it an offence to access a computer "without authorization" or to "exceed authorized access".
Two decisions shape how it applies to scraping:
- In Van Buren v. United States (2021), the Supreme Court read "exceeds authorized access" narrowly: it covers someone who goes into parts of a computer system that are off limits to them, not someone who misuses information they were entitled to reach (opinion).
- In hiQ Labs v. LinkedIn, the Ninth Circuit, applying Van Buren, held in 2022 that scraping data from public profiles that anyone could view likely did not count as access "without authorization" under the CFAA (opinion).
hiQ did not end well for the scraper, though. The case continued on other grounds, including breach of LinkedIn's user agreement, and it ended in late 2022 with a judgment against hiQ. The lesson is that the CFAA is a narrower risk for public data than it once seemed, while contract claims based on website terms remain a real risk, particularly when the scraper had accepted those terms by creating accounts.
State laws add another layer. California's privacy law, the CCPA, gives California residents rights over personal information that businesses collect, including information gathered from websites (California Attorney General).
European Union: database rights, contract and the GDPR
Database rights. The EU Database Directive (Directive 96/9/EC) gives makers of databases a special right against the extraction of a substantial part of a database that took substantial investment to build. Pulling a whole catalogue or listings database and republishing it can infringe that right even where the individual facts are free to use.
Contract. In Ryanair v. PR Aviation (C-30/14, 2015), the Court of Justice held that where a database is not protected by copyright or the database right, the Directive does not stop its owner from restricting its use through contractual terms (case). Website terms can therefore matter in the EU too.
Privacy. The GDPR (Regulation (EU) 2016/679) applies to personal data whether or not it is publicly visible. Scraping names, photos, profiles or contact details needs a lawful basis, such as legitimate interests supported by a documented balancing test, plus transparency, data minimisation and security. Regulators enforce this against scrapers: France's CNIL fined Clearview AI 20 million euros for scraping publicly available photos to build a facial recognition database (CNIL decision).
United Kingdom: computer misuse and UK GDPR
The Computer Misuse Act 1990 (legislation.gov.uk) makes unauthorised access to computer material an offence. As in the US, the risk centres on getting past barriers you were not authorised to pass, not on reading public pages.
Since Brexit, the UK applies its own UK GDPR together with the Data Protection Act 2018, enforced by the ICO (ICO guidance). Its rules on personal data closely follow the EU GDPR, including for data that is publicly available. The UK also keeps a database right similar to the EU's.
What about robots.txt?
robots.txt is a technical standard, published as RFC 9309, that tells automated clients which parts of a site the owner wants crawled. It is not a law, and the RFC itself says its rules are not a form of access authorisation. Even so, it is the clearest public statement of what a site owner accepts. Following it is good practice and helps show good faith if a dispute arises.
A practical checklist for lower-risk scraping
- Collect only public data. Do not log in, and do not get around paywalls, logins, CAPTCHAs or other access controls.
- Read the terms. If you have an account on the site, or the terms forbid automated access, get permission or take legal advice first.
- Prefer facts to content. Prices, availability, rankings and product attributes carry far less risk than copying articles, reviews or images.
- Avoid personal data. If you need it, document your lawful basis, collect the minimum, secure it and delete it when you are done.
- Follow robots.txt and rate limits. Keep request rates low enough that the site's performance is unaffected, and stop if asked.
- Use an official API where one exists. It is usually the clearest permission you can get.
- Keep records. Note what you collect, why, from where and under which terms.
Where proxies fit
A proxy changes the IP address a request comes from. It does not make an unlawful collection lawful, and it does not make a lawful one unlawful. Proxies are useful for legitimate reasons: seeing the prices and search results shown in another country, spreading a polite crawl across addresses so it does not concentrate load, and testing your own sites from different locations.
FuseProxy's acceptable use policy forbids using its proxies to get around logins, paywalls or other security measures, to collect personal data without authorisation, or to break any site's terms or robots.txt. For a practical setup, see proxies for web scraping, and for how IP rotation works, see rotating proxies.