Skip to content
Proxies
ISP Proxies (Static Residential)
from $4.69
Rotating Residential Proxies
from $2.42
Rotating Datacenter Proxies
from $1.21
Rotating Mobile Proxies
from $4.84
Locations
Europe
Asia
Middle East
Africa
North America
South America
Oceania
Learn

Is web scraping legal?

Last updated

Short answer

Scraping publicly available data is generally legal in the US, the EU and the UK, but how you scrape and what you collect matter. Getting around logins or other access controls can break computer misuse laws, ignoring site terms can breach a contract, copying content can infringe copyright, and collecting personal data brings privacy law into play.

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 lawThe question it asksLower riskHigher risk
Computer misuseDid you get past a barrier you were not allowed through?Public pages, no loginLogins, paywalls, access controls you were not given
Contract (terms of service)Did you agree to terms that forbid it?No account, terms not acceptedScraping from an account whose terms forbid it
Copyright and database rightsAre you copying protected content?Facts, prices, short data pointsArticles, images, whole databases republished
PrivacyAre you collecting personal data?Prices, products, rankingsNames, 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

  1. Collect only public data. Do not log in, and do not get around paywalls, logins, CAPTCHAs or other access controls.
  2. Read the terms. If you have an account on the site, or the terms forbid automated access, get permission or take legal advice first.
  3. Prefer facts to content. Prices, availability, rankings and product attributes carry far less risk than copying articles, reviews or images.
  4. Avoid personal data. If you need it, document your lawful basis, collect the minimum, secure it and delete it when you are done.
  5. Follow robots.txt and rate limits. Keep request rates low enough that the site's performance is unaffected, and stop if asked.
  6. Use an official API where one exists. It is usually the clearest permission you can get.
  7. 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.

FAQ

Questions, answered

Is it legal to scrape a public website?
In most cases, collecting data that anyone can see without logging in is legal in the US, the EU and the UK. The risk comes from how you collect it and what you do with it: getting around access controls, breaching terms you agreed to, copying protected content, or collecting personal data without a lawful basis.
Can a website's terms of service forbid scraping?
They can. Terms are a contract, and courts have enforced them against scrapers, especially when the scraper created an account and so clearly agreed to them. In the EU, the Court of Justice has held that a site can restrict use of an unprotected database through its terms.
Does robots.txt make scraping illegal?
robots.txt is a technical standard (RFC 9309), not a law. Ignoring it is not illegal by itself, but it signals what the site owner allows, and courts and regulators can treat ignoring it as evidence of bad faith. Responsible scrapers follow it.
Is scraping personal data legal under the GDPR?
Only with a lawful basis, such as legitimate interests after a documented balancing test, and with transparency to the people concerned. Data being public does not take it outside the GDPR. European regulators have fined companies for scraping public photos and profiles.
Is using a proxy for scraping illegal?
No. A proxy changes the IP address a request comes from; it does not change whether the scraping itself is lawful. Using proxies to get around a block, a login or a paywall you are not entitled to pass is where legal risk begins.

Start with the proxies you need

Create an account, top up and connect in minutes. Every price is on the pricing page.