Skip to content

Commit 8ebebe4

Browse files
authored
Merge pull request #31 from deco-sites/chore/standardize-robots-txt
chore: standardize robots.txt for SEO crawl budget optimization
2 parents 1846a12 + c60cd21 commit 8ebebe4

1 file changed

Lines changed: 46 additions & 2 deletions

File tree

static/robots.txt

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,49 @@
1+
# =============================================================
2+
# Deco Commerce — robots.txt (Deco Universal)
3+
# Platform-agnostic rules for all Deco storefronts.
4+
# =============================================================
5+
16
User-agent: *
2-
Disallow: /
37

4-
User-agent: Googlebot
8+
# --- Deco framework internals ---
9+
Disallow: /deco/render
10+
Disallow: /live/invoke
11+
Disallow: /live/invoke/
12+
13+
# --- Backend API proxies ---
14+
Disallow: /api/
15+
Disallow: /no-cache/
16+
Disallow: /proxy/
17+
Disallow: /graphql/
18+
19+
# --- Authentication / checkout / account ---
20+
Disallow: /checkout
21+
Disallow: /checkout/
22+
Disallow: /login
23+
Disallow: /login/
24+
Disallow: /account
25+
Disallow: /account/
26+
Disallow: /_secure/
27+
Disallow: /admin/
28+
29+
# --- Tracking / click ID params (duplicate content) ---
30+
Disallow: /*?utm_source=
31+
Disallow: /*?utm_medium=
32+
Disallow: /*?utm_campaign=
33+
Disallow: /*?utm_content=
34+
Disallow: /*?utm_term=
35+
Disallow: /*?utmi_cp=
36+
Disallow: /*?utmi_p=
37+
Disallow: /*?utmi_pc=
38+
Disallow: /*?gclid=
39+
Disallow: /*?fbclid=
40+
Disallow: /*?srsltid=
41+
Disallow: /*?gbraid=
42+
Disallow: /*?wbraid=
43+
Disallow: /*?msclkid=
44+
Disallow: /*?li_fat_id=
45+
46+
# --- Cloudflare infra ---
47+
Disallow: /cdn-cgi/
48+
549
Allow: /

0 commit comments

Comments
 (0)