# Is web scraping legal? What 67 top sites ask for in robots.txt

Is web scraping legal? US and EU rulings and statutes by name and year, beside the robots.txt of 67 top sites. 13 hold Disallow: / for unnamed crawlers.

Canonical: https://spider.cloud/blog/is-web-scraping-legal-robots-txt-survey/

On November 16, 2026 we asked 100 of the highest-ranked domains on the public [Tranco list](https://tranco-list.eu/list/JZWZY/1000000) for their [robots.txt](/learn/robots-txt/), the one file where a site writes down what it asks of crawlers. 67 served one. Of those 67, 13 hold `Disallow: /` for any crawler they do not name, 29 name at least one AI crawler, 9 set a crawl delay and 48 point to a sitemap.

If you came here asking whether web scraping is legal, the answer for your case depends on the jurisdiction, the data and how you use it. This is not legal advice, and no number below says what is lawful for you. The page counts what sites ask for in the one file a script can read, the same count that [our longer explainer on web scraping](/web-scraping/) sets beside fetching and cost. After the count it lists the court rulings and statutes in the US and the EU that people cite on the question, by name and year, with a link to each text.

## What the 67 files say

| What the file does                                | Sites | n  |
| ------------------------------------------------- | ----- | -- |
| Declares a sitemap                                | 48    | 67 |
| Names at least one AI crawler from our list of 40 | 29    | 67 |
| Holds `Disallow: /` for at least one AI crawler   | 17    | 67 |
| Holds `Disallow: /` in its `User-agent: *` group  | 13    | 67 |
| The same, with no `Allow` line in that group      | 10    | 67 |
| Sets a crawl delay for any agent                  | 9     | 67 |
| Sets a crawl delay for all agents                 | 6     | 67 |

Counted from files fetched between 02:28 and 02:56 UTC on 2026-11-16. The denominator is the 67 domains, of 100 asked, that served a robots file at the bare name or at `www`.

The median file is 2,005 bytes. The smallest is discord.gg at 23 bytes, which is two lines, `User-agent: *` and `Allow: /`. The largest is linkedin.com at 120,235 bytes. 23 of the 67 have a single group of rules, and gandi.net has 212.

## 13 files tell unnamed crawlers to stay out, and 3 of them add exceptions

The `User-agent: *` group is the one a crawler falls back to when no group names it. In 13 of the 67 files that group holds the line `Disallow: /`. The 13 are facebook.com, instagram.com, twitter.com, x.com, linkedin.com, netflix.com, pinterest.com, baidu.com, reddit.com, mail.ru, chatgpt.com, myfritz.net and registrar-servers.com. twitter.com and x.com returned the same bytes, so they are two domains with one file.

Ten of the 13 have no `Allow` line in that group. The other three do. mail.ru has 6, myfritz.net has 8 and chatgpt.com has 178, and in all three one of them is `Allow: /$`, which opens the homepage and nothing under it.

We did not trust our own parser on this, so we checked it against Python’s `urllib.robotparser`. We asked it whether an agent that no file names may fetch `/` and one made-up deep path. It refused both on the 10 files and refused only the deep path on the other three. On all 67 files it gave the same two answers as our own rule matcher.

Only reddit.com and registrar-servers.com stop at that one group. The other 11 also give named crawlers their own groups, and we did not work out what each of those allows. “Disallows everything” here describes the fallback group. It does not describe the whole site.

## 29 files name an AI crawler, and 12 of those hold no full disallow for one

Before the run we wrote down 40 user agent names that say they collect for an AI model or fetch on behalf of one. 29 of the 67 files name at least one. msn.com and snapchat.com each name 36.

| AI crawler name | Files that name it | Files that hold `Disallow: /` for it | n  |
| --------------- | ------------------ | ------------------------------------ | -- |
| Google-Extended | 23                 | 13                                   | 67 |
| PerplexityBot   | 22                 | 12                                   | 67 |
| GPTBot          | 20                 | 12                                   | 67 |
| ClaudeBot       | 19                 | 13                                   | 67 |
| CCBot           | 16                 | 12                                   | 67 |
| ChatGPT-User    | 15                 | 7                                    | 67 |
| OAI-SearchBot   | 15                 | 4                                    | 67 |
| Bytespider      | 13                 | 12                                   | 67 |

17 of the 67 files hold `Disallow: /` for at least one name on the list. That leaves 12 files that name an AI crawler and hold `Disallow: /` for none of them. Naming a crawler is not the same as turning it away. cloudflare.com is the clearest case. It gives eight of these crawlers a group each, and each group reads `Allow: /`.

## Crawl delays are rare and sitemaps are common

Nine files set a `Crawl-delay` for some agent, and six set one for all agents: twitter.com, x.com, vimeo.com, tumblr.com, apache.org and europa.eu. The values run from 0.1 seconds to 10. europa.eu asks for the 10. `Crawl-delay` is not part of the standard described below. It is an older extension, and a crawler may or may not read it.

Sitemaps go the other way. 48 of the 67 files declare at least one, so for most of these sites the file that says where not to go also says where the pages are.

## The file that surprised us

We expected a file that holds `Disallow: /` for unnamed crawlers to be short. chatgpt.com’s is 4,573 bytes, and its fallback group is built the other way round. It lists 178 `Allow` lines first and puts `Disallow: /` after them, with a comment explaining the order:

```plaintext
# General rules for all other bots
User-agent: *
# Allow Googlebot to render the indexable homepage; production CSS and JavaScript live here.
Allow: /unauth-mweb/assets/

# Place allows first to avoid bots skipping after Disallow: /
# Allow exactly the homepage
Allow: /$
# Allow the homepage with any query parameters
Allow: /?*
[175 more Allow lines]

# Now block everything else
Disallow: /
[5 more Disallow lines]
```

This is the `content` field of the response, trimmed where the brackets say so. A script that greps for `Disallow: /` files this site with reddit.com. A parser that applies the rules does not. That gap is why the table above has two rows for the same line.

## The standard says the file is a request

A robots.txt is a published request. The site owner writes rules, puts them at a known address, and crawlers that follow the protocol read them before they crawl.

The protocol dates to 1994 and was published as [RFC 9309](https://www.rfc-editor.org/rfc/rfc9309.html) in September 2022. A few of its rules explain the counts above:

- A crawler obeys the group that names it. The `*` group applies only when no other group matches.
- When several rules match a path, the longest one wins. If an allow and a disallow are the same length, the crawler should use the allow.
- The robots.txt address itself is always allowed, which is how a survey like this one can read a file that disallows everything.
- On caching it says, “Crawlers SHOULD NOT use the cached version for more than 24 hours, unless the robots.txt file is unreachable.”

The RFC is also plain about what the file is not. Its introduction says, “These rules are not a form of access authorization.” The file states what the owner asks for.

## What courts and statutes have said

This section names rulings and laws that people cite when they ask whether scraping is legal. It does not say how any of them applies to you. Courts have ruled on narrow facts, the best-known case here ended in a settlement, and other countries have their own rules. This is not legal advice. Read the linked texts, and ask a lawyer about your own case.

### United States

The [Computer Fraud and Abuse Act](https://www.law.cornell.edu/uscode/text/18/1030), 18 U.S.C. § 1030, passed in 1986 and often shortened to CFAA, lists several offenses. Subsection (a)(2), the one the Van Buren case below turned on, covers a person who intentionally accesses a computer “without authorization or exceeds authorized access” and by doing so obtains information of the kinds the subsection lists. Subsection (g) lets a person who suffers damage or loss from a violation bring a civil action, and only when the conduct involves one of the factors that subsection points to.

In [Van Buren v. United States](https://www.supremecourt.gov/opinions/20pdf/19-783_k53l.pdf) (2021), the Supreme Court read “exceeds authorized access” narrowly. It covers someone who enters parts of a system that are off limits to them. It does not cover someone who has an improper motive for taking information they are allowed to reach. The Court left open whether the limit has to be technical or can also come from a contract or a policy.

In [hiQ Labs v. LinkedIn](https://cdn.ca9.uscourts.gov/datastore/opinions/2022/04/18/17-16783.pdf), the Ninth Circuit ruled in 2019 and again in 2022, after the Supreme Court sent the case back in light of Van Buren. Both times it found that hiQ had raised serious questions about whether LinkedIn could use the CFAA against the scraping of profiles anyone can see without signing in. Both rulings came at the preliminary injunction stage, so neither settled the question. On November 4, 2022 the district court [found that hiQ had breached LinkedIn’s user agreement](https://www.proskauer.com/blog/court-finds-hiq-breached-linkedins-terms-prohibiting-scraping-but-in-mixed-ruling-declines-to-grant-summary-judgment-to-either-party-as-to-certain-key-issues), and that December the two companies [filed a settlement](https://www.proskauer.com/blog/hiq-and-linkedin-reach-proposed-settlement-in-landmark-scraping-case). The contract question got a ruling. The CFAA question got only preliminary answers before the case settled.

An older claim is trespass to chattels, which is about interference with someone’s property. In [eBay v. Bidder’s Edge](https://law.justia.com/cases/federal/district-courts/FSupp2/100/1058/2478126/) (N.D. Cal. 2000), a district court used it to order an auction aggregator to stop querying eBay’s systems with automated programs while the case went on.

Copyright covers expression, not facts. In [Feist Publications v. Rural Telephone Service](https://supreme.justia.com/cases/federal/us/499/340/) (1991), the Supreme Court held that the names and numbers in a phone book are facts that copyright does not protect, though an original selection or arrangement of facts can be protected.

### European Union

The [Database Directive](https://eur-lex.europa.eu/eli/dir/1996/9/oj), Directive 96/9/EC of 1996, gives the maker of a database a right of its own, separate from copyright, when obtaining, verifying or presenting the contents took a substantial investment. In [Ryanair v. PR Aviation](https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:62014CJ0030) (Case C-30/14, 2015), the Court of Justice held that when a database has neither copyright nor that right, the directive does not stop its owner from limiting its use by contract, such as a site’s terms.

The [Copyright in the Digital Single Market Directive](https://eur-lex.europa.eu/eli/dir/2019/790/oj), Directive (EU) 2019/790, creates two exceptions for text and data mining. Article 3 covers research organisations and cultural heritage institutions doing scientific research on works they have lawful access to. Article 4 is not limited to those bodies. It covers text and data mining of lawfully accessible works by anyone, as long as the rights holder has not expressly reserved the use “in an appropriate manner, such as machine-readable means in the case of content made publicly available online.” Recital 18 gives “metadata and terms and conditions of a website or a service” as examples of such means. The [AI Act](https://eur-lex.europa.eu/eli/reg/2024/1689/oj), Regulation (EU) 2024/1689, Article 53, requires providers of general-purpose AI models to have a policy to identify and comply with those reservations.

The [General Data Protection Regulation](https://eur-lex.europa.eu/eli/reg/2016/679/oj), Regulation (EU) 2016/679, applies to the processing of personal data, which Article 4 defines as “any information relating to an identified or identifiable natural person”. The definition does not turn on whether the information was published.

### Where the survey meets the law

Article 4 is where the counts above touch the law. 29 of the 67 files name an AI crawler, and six carry a group for `__usage_ai-training`. Each of those lines is a statement a machine can read. The recital’s examples are metadata and site terms, and it does not name robots.txt. No ruling linked here says whether a robots.txt line is the “machine-readable means” the directive has in mind.

Our earlier post on [web scraping for AI training data](/blog/web-scraping-ai-training-data-legal-technical-guide-2026/) covers the rules for that one use in more depth.

## What we would do with a file before the first request

Read the file before the first page, and read the group that applies to your agent. 29 of these 67 files name an AI crawler, so the `*` group may not be yours.

Apply the rules, do not grep them. Three of the 13 files that hold `Disallow: /` in the fallback group also allow the homepage.

If the file sets a crawl delay, pace to it. On Spider that is the `delay` option, which the [API reference](/openapi.yaml) describes as “Milliseconds to wait between requests, up to 60000. Turns off concurrency.”

If the file declares a sitemap, start there. The same reference lists a `sitemap` option, “Add pages from the sitemap to the crawl. Default false.”

Leave `respect_robots` alone. The reference describes it as “Follow robots.txt. Default true.” None of the requests in this survey set it.

Then read the site’s terms and the licence on the content. robots.txt is one statement of what a site asks for, and it is the only one a script can count. When we [built a fine-tuning dataset](/blog/build-fine-tuning-dataset-from-the-web/) from one documentation site, robots.txt was one of three checks.

## Repeat it

One request per domain, sent to the same endpoint as the [keyless scraper tool](/web-scraper/), with the key in an environment variable:

```bash
curl -s https://api.spider.cloud/scrape \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://github.com/robots.txt", "request": "http", "return_format": "raw", "metadata": true}'
```

The file comes back as text in the `content` field.

The rule that picked the sites was written before we saw the list. Take Tranco list JZWZY in rank order. Skip a name when it matches a pattern for adult sites, for names that serve DNS, CDN, ad or API traffic, or for sign-in addresses. Stop at 100 kept names. That skipped 59, and the 100th kept name sits at rank 159. Each kept name got one request for `https://<domain>/robots.txt`. Where the answer was not a robots file, it got one more at `https://www.<domain>/robots.txt`, which added two sites.

A site is in the 67 when either address returned status 200 with at least one `User-agent` or `Sitemap` line and no HTML page in its place. The other 33 names are in no count. Some answered that address with a web page. Some are names the patterns should have skipped, because nobody visits them in a browser.

## What the survey does not show

It does not show what is legal, what any site’s terms say, or whether a site enforces its file.

It does not describe the web. It is 67 files from one ranking on one day. Tranco ranks domain names by popularity, and a popular name is not always a site people read.

The AI list was fixed before the run, so a name we did not think of is not counted. Six of the 67 files have a group for `__usage_ai-training`, which was not on our list.

Each file was fetched once. A `www` address can redirect to another name, and we counted the file that came back. Files change, so a count from next month will differ.

Run the request against the ten sites you crawl most and read what comes back before your next job. [Create an API key](/api-keys) to start.

## Frequently asked questions

### Is web scraping legal?

It depends on the jurisdiction, the data and how it is used, and this page is not legal advice. In the US, Van Buren v. United States (2021) read the Computer Fraud and Abuse Act narrowly, and in hiQ Labs v. LinkedIn (2019 and 2022) the Ninth Circuit found serious questions about whether the Act reaches pages anyone can see without signing in. A district court later found that hiQ had breached LinkedIn's user agreement. In the EU, database rights, site terms, the text and data mining opt-out in Directive 2019/790 and the GDPR can each apply.

### Is robots.txt legally binding?

RFC 9309 defines the file and says it is not a form of access authorization. In the EU, Article 4 of Directive 2019/790 lets a rights holder reserve text and data mining by machine-readable means, and no ruling linked on this page says whether a robots.txt line is one. This is not legal advice.

### How many large sites disallow AI crawlers in robots.txt?

In this survey, run on 2026-11-16, 29 of 67 files name at least one AI crawler from a list of 40 names fixed before the run, and 17 of 67 hold Disallow: / for at least one of them. Google-Extended is the name that appears most, in 23 files.

### Does Spider follow robots.txt?

The API reference lists respect_robots as a boolean described as "Follow robots.txt. Default true." The requests in this survey did not set it.

## Sources

1. [Measured run, 2026-11-16, 02:28 to 02:56 UTC: one request for robots.txt to each of 100 domains, and one more at www where the bare name served no robots file, through the Spider scrape endpoint](/docs/api/scrape/)
2. [Tranco list JZWZY, the ranking the 100 domains came from](https://tranco-list.eu/list/JZWZY/1000000)
3. [RFC 9309, Robots Exclusion Protocol, September 2022](https://www.rfc-editor.org/rfc/rfc9309.html)
4. [Spider API reference, the respect_robots, delay and sitemap options](/openapi.yaml)
5. [Python urllib.robotparser, the second parser used to check our reading](https://docs.python.org/3/library/urllib.robotparser.html)
6. [Computer Fraud and Abuse Act, 18 U.S.C. § 1030 (1986)](https://www.law.cornell.edu/uscode/text/18/1030)
7. [Van Buren v. United States, 593 U.S. 374 (2021), opinion of the Court](https://www.supremecourt.gov/opinions/20pdf/19-783_k53l.pdf)
8. [hiQ Labs v. LinkedIn, Ninth Circuit opinion of April 18, 2022](https://cdn.ca9.uscourts.gov/datastore/opinions/2022/04/18/17-16783.pdf)
9. [Court finds hiQ breached LinkedIn's terms, Proskauer New Media and Technology Law Blog, November 11, 2022, on the district court ruling of November 4, 2022](https://www.proskauer.com/blog/court-finds-hiq-breached-linkedins-terms-prohibiting-scraping-but-in-mixed-ruling-declines-to-grant-summary-judgment-to-either-party-as-to-certain-key-issues)
10. [hiQ and LinkedIn reach proposed settlement, Proskauer New Media and Technology Law Blog, December 8, 2022](https://www.proskauer.com/blog/hiq-and-linkedin-reach-proposed-settlement-in-landmark-scraping-case)
11. [eBay v. Bidder's Edge, 100 F. Supp. 2d 1058 (N.D. Cal. 2000), order granting preliminary injunction](https://law.justia.com/cases/federal/district-courts/FSupp2/100/1058/2478126/)
12. [Feist Publications v. Rural Telephone Service, 499 U.S. 340 (1991)](https://supreme.justia.com/cases/federal/us/499/340/)
13. [Directive 96/9/EC on the legal protection of databases (1996)](https://eur-lex.europa.eu/eli/dir/1996/9/oj)
14. [Ryanair v. PR Aviation, Case C-30/14, judgment of the Court of Justice of the EU, January 15, 2015](https://eur-lex.europa.eu/legal-content/EN/TXT/HTML/?uri=CELEX:62014CJ0030)
15. [Directive (EU) 2019/790 on copyright in the Digital Single Market, Articles 3 and 4 and recital 18](https://eur-lex.europa.eu/eli/dir/2019/790/oj)
16. [Regulation (EU) 2024/1689, the AI Act, Article 53](https://eur-lex.europa.eu/eli/reg/2024/1689/oj)
17. [Regulation (EU) 2016/679, the General Data Protection Regulation](https://eur-lex.europa.eu/eli/reg/2016/679/oj)
