Robots.txt Generator: Allow and Disallow
Use this robots.txt generator to tell crawlers which parts of your site to skip. Pick user agents such as Googlebot or AI crawlers, add allow and disallow paths, include your sitemap, and download a ready robots.txt file.
Robots.txt Generator
Crawler rules made easy.
How to use the Robots.txt Generator
- Choose to allow or block all robots by default.
- List folders to disallow and any exceptions to allow.
- Add your sitemap URL and options like blocking AI bots.
- Download robots.txt and upload it to your site root.
How it works
robots.txt is a plain text file at the root of a site (example.com/robots.txt). Each group starts with a User-agent line followed by Disallow and Allow rules for that crawler. The Sitemap line tells crawlers where your sitemap is. Rules are requests, not security.
Example
Allow all with /search disallowed and a sitemap gives "User-agent: *", "Disallow: /search", "Disallow: /admin/" and "Sitemap: https://www.example.com/sitemap.xml".
Frequently asked questions
Does robots.txt hide pages from Google?
It stops crawling, but a page can still be indexed if linked. Use noindex to keep it out.
Does Google support Crawl-delay?
No, Google ignores it; Bing and others respect it.
Where do I put the file?
In the root folder so it loads at yoursite.com/robots.txt.
See also: URL Encode and Decode.
Write a robots.txt file
How to use it
- Pick the bots to target.
- Add allow and disallow paths.
- Add your sitemap URL.
- Download robots.txt.
More questions
Does robots.txt hide pages?
No. It asks bots not to crawl; use noindex to keep pages out of search.
Where does it go?
Robots.txt goes at your site's root, like yoursite.com/robots.txt.
Can I block AI crawlers?
Yes. Add disallow rules for the user agents of the AI crawlers you want to block.
Related tools: XML Sitemap Generator, Meta Tag Generator, Google SERP Preview Tool.