# Web scraping

> What web scraping is, what robots.txt (RFC 9309) does and doesn

Canonical: https://scaplet.com/glossary/web-scraping

Glossary Glossary · Crawling

What web scraping is, what robots.txt (RFC 9309) does and doesn't cover, and the controls a site owner actually has over automated collection.

4 min

read

5

sources

Oct 23, 2026

updated

Scaplet Editorial Team

author

In one line

Web scraping is the automated collection of content or data from web pages for use elsewhere. robots.txt, standardized as RFC 9309, lets site owners say which paths crawlers may access, but the RFC states that its rules are not a form of access authorization. Compliance is up to the scraper, so it is a request, not a lock.

30-second check

## Is this costing your site traffic?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?

Summarize this page with [ChatGPT](https://chatgpt.com/?hints=search&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fweb-scraping%20(%22Web%20scraping%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Claude](https://claude.ai/new?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fweb-scraping%20(%22Web%20scraping%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [Perplexity](https://www.perplexity.ai/search?q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fweb-scraping%20(%22Web%20scraping%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.) [![Google](/logos/ai/google-color.svg)AI Mode](https://www.google.com/search?udm=50&q=Summarize%20https%3A%2F%2Fscaplet.com%2Fglossary%2Fweb-scraping%20(%22Web%20scraping%22)%20in%205%20bullet%20points%2C%20then%20tell%20me%20the%20one%20thing%20I%20should%20do%20next.)

On this page

## 5 parts, 4 minutes.

1. [What web scraping is 01](#what-web-scraping-is)
2. [What robots.txt covers 02](#what-robots-txt-covers)
3. [How crawlers should treat the file 03](#how-crawlers-should-treat-the-file)
4. [What a site owner can do 04](#what-a-site-owner-can-do)
5. [When scraping becomes a search spam problem 05](#when-scraping-becomes-a-search-spam-problem)

_01_Explained

## What web scraping is

OWASP, which catalogs automated threats to web applications, defines scraping as "Collect application content and/or other data for use elsewhere." Its fuller description is "Collecting/copying accessible data and/or processed output, for subsequent use such as exploitation of proprietary data, or price-fixing."

OWASP notes that some scraping may use fake or compromised accounts, or the information may be accessible without authentication. A scraper reads accessible paths and pulls data out of the responses, and it can run continuously or periodically.

Scraping and crawling overlap, since both fetch pages automatically. RFC 9309 is written for automatic clients "known as crawlers." It does not use the word scraper.

_02_Check it

## What robots.txt covers

RFC 9309 specifies the [Robots Exclusion Protocol](/glossary/robots-txt) "for service owners to control how content served by their services may be accessed, if at all, by automatic clients known as crawlers." You write groups that start with a `User-agent` line and follow with `Allow` and `Disallow` rules for paths.

Google's documentation adds scope. The file must sit at the root of the host it applies to, applies only to that protocol, host and port, and must be a UTF-8 text file.

**It is not a lock**RFC 9309 says: "These rules are not a form of access authorization." RFC 9309 adds that the protocol is "not a substitute for valid content security measures" and that listing paths in robots.txt exposes them publicly. Google's guidance agrees that it's up to the crawler to obey the rules, and that different crawlers might interpret them differently.

A group for one named crawler, and a default for the rest

```
User-agent: ExampleScraper Disallow: / User-agent: * Disallow: /account/
```

_03_Behavior RFC 9309 specifies for compliant crawlers

## How crawlers should treat the file

Situation

### robots.txt returns a 4xx status

What the RFC says

"the crawler MAY access any resources on the server"

Situation

### robots.txt returns a 5xx status

What the RFC says

"the crawler MUST assume complete disallow"

Situation

### Cached copy

What the RFC says

"Crawlers SHOULD NOT use the cached version for more than 24 hours, unless the robots.txt file is unreachable."

Situation

### File size

What the RFC says

"The parsing limit MUST be at least 500 kibibytes [KiB]."

Those are obligations for crawlers that follow the standard. A scraper that ignores robots.txt isn't bound by them in any technical sense.

_04_At a glance

## What a site owner can do

Match the control to the goal. Google's documentation separates keeping crawlers off a URL from keeping a page out of search.

Goal

### Ask well-behaved crawlers not to fetch a path

Tool

`robots.txt`

What the sources say

A request that depends on the crawler complying

Goal

### Keep a page out of Google

Tool

`noindex` or a password

What the sources say

Google says robots.txt is "not a mechanism for keeping a web page out of Google" and to block indexing with `noindex` or password-protect the page

Goal

### Keep content private

Tool

Authentication, such as HTTP Authentication or a password

What the sources say

RFC 9309 points to a valid security measure such as HTTP Authentication. Google says to use methods such as password-protecting private files, not robots.txt

Google also warns that a page disallowed in robots.txt can still be indexed if other sites link to it, so the URL can appear in results. Blocking fetching doesn't hide the address.

The sources used here don't cover [rate limiting](/glossary/rate-limiting), bot detection or legal remedies, so this page makes no claim about them. Check with your hosting provider and a lawyer for those.

_05_Explained

## When scraping becomes a search spam problem

Google's spam policies define scraping as "taking content from other sites, often through automated means, and hosting it with the purpose of manipulating search rankings." The listed examples include republishing content without adding original value, and copying content and modifying it only slightly, for example by substituting synonyms.

That is a different question from whether collecting data is allowed. Reading public pages for analysis is scraping in OWASP's sense. Republishing them to rank is what Google's policy targets.

Questions

## Asked a lot.

4 questions people ask next, answered from the sources on this page.

_01_ What is web scraping and how does it work?

OWASP defines it as collecting application content and other data for use elsewhere. A scraper requests accessible pages or endpoints and extracts data from the responses, either continuously or periodically.

_02_ Does robots.txt stop scrapers?

Only those that choose to obey it. RFC 9309 says its rules are not a form of access authorization.

_03_ Does blocking a path in robots.txt remove it from Google?

No. Google says robots.txt is not a mechanism for keeping a page out of Google, and a disallowed page can still be indexed if other sites link to it.

_04_ Is scraping against Google's spam policies?

Only when the content is hosted to manipulate rankings, such as republishing it without original value. Google's policy defines scraping in that sense.

Sources · 5

## Every fact, linked and dated.

Official docs first. The date is when we last opened each page.

- rfc-editor.org
- google.com
- github.io

1. 01 [RFC 9309: Robots Exclusion Protocol](https://www.rfc-editor.org/rfc/rfc9309) rfc-editor.org · checked 2026-10-25
2. 02 [Introduction to robots.txt (Google Search Central)](https://developers.google.com/search/docs/crawling-indexing/robots/intro) developers.google.com · checked 2026-10-25
3. 03 [How to write and submit a robots.txt file (Google Search Central)](https://developers.google.com/search/docs/crawling-indexing/robots/create-robots-txt) developers.google.com · checked 2026-10-25
4. 04 [OAT-011 Scraping (OWASP Automated Threats to Web Applications)](https://owasp.github.io/www-project-automated-threats-to-web-applications/assets/oats/EN/OAT-011_Scraping) owasp.github.io · checked 2026-10-25
5. 05 [Spam policies for Google web search](https://developers.google.com/search/docs/essentials/spam-policies) developers.google.com · checked 2026-10-25

## Keep learning

[All glossary](/glossary)

[Learn Noindex Crawling and indexing](/glossary/noindex) [Related robots.txt Crawling](/glossary/robots-txt) [Read next User agent Crawling and indexing](/glossary/user-agent) [Do Run a free site audit Free, about two minutes](/site-audit)

Nearby in glossary
[Web accessibility](/glossary/web-accessibility) [Web stories](/glossary/web-stories) [WebP](/glossary/webp)

More in Crawling and indexing
[SSL certificate](/glossary/ssl-certificate) [SSR vs CSR](/glossary/ssr-vs-csr) [Subdomain vs subdirectory](/glossary/subdomain-vs-subdirectory) [Trailing slash in URLs](/glossary/trailing-slash) [unavailable_after](/glossary/unavailable-after) [URL fragment](/glossary/url-fragment) [URL Inspection tool](/glossary/url-inspection-tool) [URL parameters](/glossary/url-parameters) [URL structure](/glossary/url-structure) [User agent](/glossary/user-agent) [Video sitemap](/glossary/video-sitemap) [Web crawler](/glossary/web-crawler) [Web scraping](/glossary/web-scraping) [www vs non-www](/glossary/www-vs-non-www) [X-Frame-Options](/glossary/x-frame-options) [X-Robots-Tag](/glossary/x-robots-tag) [XML sitemap](/glossary/xml-sitemap) [301 redirect](/glossary/301-redirect) [302 redirect](/glossary/302-redirect) [410 Gone](/glossary/410-gone) [A record (DNS address record)](/glossary/a-record) [Bing Webmaster Tools](/glossary/bing-webmaster-tools) [Bot management](/glossary/bot-management) [Broken links](/glossary/broken-links)

Terms on this page
[robots.txt](/glossary/robots-txt) [Rate limiting](/glossary/rate-limiting)

Free · 2 minutes

## Know the term. _Now check your site._

The free audit reads robots.txt, sitemaps, status codes, canonicals, redirects and structured data.

[Audit my site free](/site-audit)

Free, no card 60 seconds Nobody will call you

- **46** fixes shipped without a ticket Brightpipe
- **+212%** organic clicks in 90 days Ledgerly
