How to use it
- Enter the crawler name (or * for all).
- List paths to disallow, and optionally paths to allow inside them.
- Add your sitemap address, copy the result and save it as robots.txt in your site’s root folder.
How it works
The file is a list of groups. Each starts with User-agent and is followed by Allow and Disallow lines. A path starts with / and may use * as a wildcard. An empty Disallow means everything is allowed. A Sitemap line tells crawlers where your sitemap is.
Per Google’s documentation, robots.txt is not a mechanism for keeping a page out of Google: a blocked URL can still appear in results without a description. Use a noindex rule or password protection for that.
Examples
- Disallow: /admin/ asks crawlers not to fetch anything under /admin/.
Limitations
- Only one user-agent group is generated at a time; add more groups by hand or generate them separately.
- robots.txt is advisory: well-behaved crawlers follow it, malicious ones may not. Never use it to hide sensitive information.
- Directives other than Allow, Disallow and Sitemap (such as Crawl-delay) are not generated because support varies.
References
Last verified . See our Accuracy & Editorial Policy. Found a problem? Email contact@tools.gift.