Is web scraping legal? The rules that actually decide it
Updated 2026-11-25 · 7 min read · By BYM Data team
There is no single law that says scraping is legal or illegal. What decides a project is what you collect, where the data subjects are, and what the source's terms allow. Business-entity data from public registers is the safe zone; personal profiles, contact lists and login-gated sources are where risk lives.
The short answer
Collection of publicly visible information is generally permitted. The constraints come from four places: personal-data law (GDPR in the EU/UK, CCPA/CPRA in California and equivalent statutes elsewhere), the site's terms of use, copyright in the content, and — in the EU — the sui generis database right.
Public does not mean personal-data-free
A company registration is business data. A director's personal email printed on a filing is personal data, even on a public page. The moment your dataset contains an identifiable person, data-protection obligations attach: purpose limitation, security, deletion. That is the line we hold — business entities yes, personal profiles no.
Terms and robots are evidence, not statute
robots.txt is a convention and terms of use are a contract between the site and its users. Neither makes scraping a crime, but both are what a court or a client's legal team will look at. Our rule: respect robots, never circumvent authentication, decline sources whose terms forbid collection.
EU database right is the exception people miss
In the US and most of Asia, facts themselves are generally free to reuse. The EU grants a separate right over substantial investment in a database, which is why we exclude EU-sourced databases from open releases and treat them as licence-gated.
What to ask a provider before you buy
- Which fields are personal data, and are they excluded by design?
- How do you handle a deletion request from someone in the dataset?
- Can you show the source URL for every row?
- What happens when a source's terms change?
Our position, stated plainly
We collect business-entity data from public sources, exclude personal contact data by default, review each source before quoting, and decline projects we cannot do lawfully — in writing. This page is engineering practice, not legal advice; get counsel for your own use case.
Questions
Can I scrape a site if robots.txt allows it?
Robots permission is necessary but not sufficient — terms, copyright and personal-data rules still apply.
Is scraping personal emails legal?
Risky in every major jurisdiction without a lawful basis and notice. We do not sell personal contact data for that reason.
Do I need consent to buy a business database?
For business-entity records, no personal consent arises. If individuals are identifiable, data-protection duties attach to whoever processes them.
What about GDPR if my buyers are in Europe?
GDPR follows the data subject, not the server. Public availability is not a lawful basis there either.
BYM Data team
Data engineering — We build and run the extraction pipelines behind every dataset we sell. Guides are written by whoever maintains the source, and reviewed by a second engineer before publishing.