robots.txt
Robots.txt indicates which portions of a website crawlers are allowed to access in order to prevent these pages from being indexed by Search engines
Sitemap: <url>...
User-agent: <name>Disallow: <path>Allow: <path>...
User-agent: <name>Disallow: <path>Allow: <path>...
...Alternatively, use
<meta name="robots"/>or HTTP HeaderX-Robots-Tag
Resources
RobotsTXT.org
Google Search Central โ robots.txt
Wikipedia โ robots.txt
MDN Web Docs โ robots.txt
Frameworks
Astro Docs โ robots.txt
Next.js Docs โ robots.txt
TanStack Start Docs โ robots.txt