# See https://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file
# Hand-maintained: bin/build-site removes and recopies its own generated paths
# (blog, help, _astro, pagefind, sitemap*.xml) and never touches this file.
# The sitemap itself IS generated, by @astrojs/sitemap — the reason /blog and
# /help are subpaths rather than a subdomain was SEO, and an unannounced
# sitemap gives that up for one line.
Sitemap: https://emailfig.com/sitemap-index.xml
User-agent: *
# The signed-in app. None of it is a page a search result should lead to, and
# none of it answers to an anonymous crawler anyway: most redirect to /auth,
# /api/ wants a key, /good_job, /impersonate and /staff want a staff session. So these rules
# buy crawl budget rather than protect anything.
Disallow: /api/
Disallow: /auth
Disallow: /automations
Disallow: /campaigns
Disallow: /contacts
Disallow: /custom_fields
Disallow: /dashboard
Disallow: /forms
Disallow: /good_job
Disallow: /grow
Disallow: /impersonate
Disallow: /imports
Disallow: /lists
Disallow: /segments
Disallow: /sending_domains
Disallow: /settings
Disallow: /signup
Disallow: /staff
Disallow: /suppressions
Disallow: /tags
Disallow: /template_images
Disallow: /templates
Disallow: /up
# The token-gated recipient paths (/u/, /c/, /p/, /w/, /invites/) stay
# crawlable on purpose. Their controllers send X-Robots-Tag: noindex, and a
# crawler has to fetch a page to read that header. Disallowing them would hide
# it and leave an externally linked token URL eligible for URL-only indexing,
# which is the opposite of the intent. test/architecture/static_site_test.rb
# pins it.
# Hosted signup pages (/f/:id) stay crawlable: each carries its own SEO title,
# description and OG image (docs/features/PAGES.md "Page settings"), so it is
# meant to rank.
# /f/:id/config stays crawlable too: a crawler rendering a customer's page needs
# it to draw the embedded form, and it answers X-Robots-Tag: noindex. The view
# beacon is blocked so those renders aren't counted as form views.
Disallow: /f/*/challenge
Disallow: /f/*/views