Skip to content

Commit 0215130

Browse files
committed
fix: update robots.txt
1 parent 9a0521c commit 0215130

File tree

1 file changed

+54
-2
lines changed

1 file changed

+54
-2
lines changed

public/robots.txt

Lines changed: 54 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,59 @@
22
User-agent: *
33
Allow: /$
44
Allow: /about$
5-
Allow: /search$
6-
Allow: /settings$
5+
Allow: /privacy$
76
Allow: /__og-image__/*
87
Disallow: /
8+
9+
# User-agent: *
10+
# Allow: /
11+
12+
# Search pages: infinite query-param combinations
13+
Disallow: /search
14+
15+
# User utilities
16+
Disallow: /settings
17+
Disallow: /compare
18+
19+
# Auth flows
20+
Disallow: /auth/
21+
22+
# Code explorer & generated API docs
23+
Disallow: /package-code/
24+
Disallow: /code/
25+
Disallow: /package-docs/
26+
Disallow: /docs/
27+
28+
# Internal API
29+
Disallow: /api/
30+
31+
# OpenSearch endpoint
32+
Disallow: /opensearch.xml
33+
34+
# Vercel internal proxy routes
35+
Disallow: /_v/
36+
37+
# Block AI training crawlers from scraping package content
38+
User-agent: GPTBot
39+
Disallow: /
40+
41+
User-agent: ChatGPT-User
42+
Disallow: /
43+
44+
User-agent: CCBot
45+
Disallow: /
46+
47+
User-agent: anthropic-ai
48+
Disallow: /
49+
50+
User-agent: Claude-Web
51+
Disallow: /
52+
53+
User-agent: Google-Extended
54+
Disallow: /
55+
56+
User-agent: Bytespider
57+
Disallow: /
58+
59+
User-agent: cohere-ai
60+
Disallow: /

0 commit comments

Comments
 (0)