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

robots.txt must be at the root of the website

robots.txt
Sitemap: <url>
...
User-agent: <name>
Disallow: <path>
Allow: <path>
...
User-agent: <name>
Disallow: <path>
Allow: <path>
...
...

Alternatively, use <meta name="robots"/> or HTTP Header X-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

This website is currently available on Desktop only
Let @Stephcraft know on Discord you'd like a Mobile version

Join Discord