Robots.txt Generator
Build crawler rules with confidence. Preview, validate and download your file.
Build your crawler policy
Choosing a template replaces the current rules.
Use the full HTTP or HTTPS sitemap address.
robots.txt
Policy review
Publish your robots.txt correctly
Check each crawler group and path. Avoid blocking important pages or resources needed for rendering.
Place the file at the root of the relevant host, such as https://example.com/robots.txt. WordPress may already generate a virtual file.
Open the public URL, confirm the response and review crawl behavior in Search Console.
Understand what each directive does
- User-agent: *
- Applies to crawlers without a more specific matching group.
- Disallow: /private/
- Requests that compliant crawlers avoid matching paths. It does not protect private data.
- Allow: /private/public/
- Permits a more specific path when supported by the crawler.
- Sitemap: https://example.com/sitemap.xml
- Points crawlers to a sitemap. It does not guarantee indexing.
Never use robots.txt to secure private files. Check that important pages, images and rendering resources remain accessible.
Crawling is not indexing
A blocked URL may still appear in search results. To prevent indexing, use a supported noindex directive on a crawlable page; protect confidential content with authentication.
WordPress example
A common starting policy blocks /wp-admin/ but allows /wp-admin/admin-ajax.php. Review your plugins, public assets and existing rules before replacing them.
Google Search Central robots.txt guide · Robots Exclusion Protocol
Frequently asked questions
Does robots.txt remove pages from Google?
No. It controls crawling by compliant bots, not guaranteed indexing.
Can I block every crawler?
Disallow: / requests a full crawl block for the matching group. Some bots ignore robots.txt.
Does this tool upload my file?
No. Generation happens locally in your browser. You must publish the file yourself.
Should I block CSS and JavaScript?
Generally keep resources needed to render public pages crawlable.
Can I use different rules for different bots?
Yes. Add separate user-agent groups. Specific matching groups may take precedence over the wildcard group.
