Skip to content

Commit f1a29e4

Browse files
kodster28sdnts
authored andcommitted
[Bots] Update managed robots.txt (cloudflare#23328)
* [Bots] Update managed robots.txt * small tweaks * Test * Update
1 parent 56f98a2 commit f1a29e4

File tree

1 file changed

+45
-16
lines changed

1 file changed

+45
-16
lines changed

src/content/docs/bots/additional-configurations/managed-robots-txt.mdx

Lines changed: 45 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,33 +6,62 @@ sidebar:
66
label: Managed robots.txt
77
---
88

9-
import { Render, Tabs, TabItem } from "~/components"
9+
import { Render, Tabs, TabItem } from "~/components";
1010

11-
Protect your website or application from AI crawlers by implementing a `robots.txt` file on your domain to direct AI bot operators on what content they can and cannot scrape for AI model training.
11+
Protect your website or application from AI crawlers by implementing a `robots.txt` file on your domain to direct AI bot operators on what content they can and cannot scrape for AI model training.
1212

13-
Cloudflare's managed `robots.txt` explicitly disallows known bots engaged in scraping for AI purposes and AI agent activity.
13+
Cloudflare's managed `robots.txt` explicitly disallows known bots engaged in scraping for AI purposes.
1414

15-
AI bots are expected to follow the `robots.txt` directives. Otherwise, they risk getting banned.
15+
AI bots are expected to follow the `robots.txt` directives.
1616

1717
## Compatibility with existing `robots.txt` files
1818

19-
Cloudflare will independently check whether your website has an existing `robots.txt` file.
19+
Cloudflare will independently check whether your website has an existing `robots.txt` file and update the behavior of this feature based on your website.
2020

21-
- If your website already has a `robots.txt` file — verified by a HTTP `200` response — Cloudflare will prepend our managed `robots.txt` before your existing `robots.txt`, combining both into a single response.
22-
- If your website does not have a `robots.txt` file, it will receive Cloudflare's managed block directives.
21+
### Existing robots.txt file
22+
23+
If your website already has a `robots.txt` file — verified by a HTTP `200` response — Cloudflare will prepend our managed `robots.txt` before your existing `robots.txt`, combining both into a single response.
24+
25+
For example, without this feature enabled, the `robots.txt` content of `crawlstop.com` would be:
26+
27+
```txt
28+
User-agent: *
29+
Disallow: /lp
30+
Disallow: /feedback
31+
Disallow: /langtest
32+
33+
Sitemap: https://www.crawlstop.com/sitemap.xml
34+
```
35+
36+
With the managed `robots.txt` enabled, Cloudflare will prepend our managed content before your original content, resulting in what you can view at https://crawlstop.com/robots.txt.
37+
38+
### No robots.txt file
39+
40+
If your website does not have a `robots.txt` file, Cloudflare creates a new file with our managed block directives and serves it for you.
41+
42+
## Implementation
2343

2444
To implement a `robots.txt` file on your domain based on your plan:
2545

2646
<Tabs>
27-
<TabItem label="Bot Fight Mode">
28-
<Render file="enable-managed-robots-txt" params={{ one: "Bot Fight Mode" }} />
29-
</TabItem>
30-
<TabItem label="Super Bot Fight Mode">
31-
<Render file="enable-managed-robots-txt" params={{ one: "Super Bot Fight Mode" }} />
32-
</TabItem>
33-
<TabItem label="Bot Management for Enterprise">
34-
<Render file="enable-managed-robots-txt" params={{ one: "Bot Management" }} />
35-
</TabItem>
47+
<TabItem label="Bot Fight Mode">
48+
<Render
49+
file="enable-managed-robots-txt"
50+
params={{ one: "Bot Fight Mode" }}
51+
/>
52+
</TabItem>
53+
<TabItem label="Super Bot Fight Mode">
54+
<Render
55+
file="enable-managed-robots-txt"
56+
params={{ one: "Super Bot Fight Mode" }}
57+
/>
58+
</TabItem>
59+
<TabItem label="Bot Management for Enterprise">
60+
<Render
61+
file="enable-managed-robots-txt"
62+
params={{ one: "Bot Management" }}
63+
/>
64+
</TabItem>
3665
</Tabs>
3766

3867
## Availability

0 commit comments

Comments
 (0)