Calculator Need
Categories

Text, Web & Developer Tools

Robots.txt Generator

Tell search engines which parts of your site to crawl and which to skip. Add rules for any crawler, point to your sitemap, and download a ready-to-upload robots.txt.

Crawl rules

Most major search engines respect robots.txt, but it is a request, not a block: it does not stop a page from being indexed if other sites link to it, and it does not hide pages.

Your robots.txt


        

Upload the file to the root of your site — for example https://example.com/robots.txt — so crawlers can find it.

How to use the robots.txt

  1. Add rules for each crawler — which paths it may or may not visit.
  2. Add your sitemap URL and a crawl-delay if you need them.
  3. Press “Download robots.txt” or “Copy”, then upload the file to the root of your site.

Robots.txt example

User-agent: *, Disallow: /admin/, Allow: / and a Sitemap: line pointing to your sitemap.xml lets crawlers in everywhere except /admin/ and tells them where to find all pages.

Tips for using the robots.txt

  • robots.txt must sit at the root: example.com/robots.txt.
  • Blocking a page in robots.txt does not remove it from Google; use a noindex tag for that (and let it be crawled).
  • Never block your CSS and JS files; Google needs them to render the page.

Robots.txt: common questions

What is robots.txt?
A small file at the root of a website that tells search-engine crawlers which pages they may visit. For example, it can keep them out of an admin area.
Does robots.txt hide a page?
No. It is a request, not a block. A page can still be indexed if other sites link to it. Do not use robots.txt to keep pages private.
Do all crawlers respect it?
Most major search engines do, but not every crawler follows it. Google, Bing and other large search engines respect it.
Where do I put the file?
At the root of your site, for example https://example.com/robots.txt, so crawlers can find it.
Should I block AI crawlers?
That is a policy choice. You can add rules for specific user-agents such as GPTBot or Google-Extended; it does not affect normal Google Search.