Robots.txt Generator
Create a basic robots.txt file using user-agent, allow, disallow and sitemap rules.
Allow Rules
Disallow Rules
What Is a robots.txt File?
A robots.txt file is a plain-text file placed at the root of a website. It can provide instructions to compatible web crawlers about which paths they are allowed or disallowed from requesting.
How to Create a robots.txt File
- Select a user-agent.
- Add allow rules when needed.
- Add disallow rules for paths you want compatible crawlers to avoid requesting.
- Optionally enter your sitemap URL.
- Click Generate Robots.txt.
- Review the generated output carefully.
What Does User-agent Mean?
The User-agent directive identifies the crawler to which the following rules apply. An asterisk (*) is commonly used when a rule is intended for all crawlers that respect robots.txt instructions.
What Does Disallow Mean?
A Disallow rule indicates a URL path that compatible crawlers should not request under the applicable user-agent rules.
What Does Allow Mean?
An Allow rule can be used to indicate a path that compatible crawlers may request. How overlapping rules are interpreted can vary by crawler, so site owners should test important configurations.
What Is a Sitemap URL?
A Sitemap directive can point compatible crawlers to the location of an XML sitemap. Enter the full absolute URL when using this option.
Is robots.txt a Security Tool?
No. robots.txt is not designed to protect private information. A compliant crawler may choose not to follow the rules, and the contents of the robots.txt file itself are publicly accessible.
Where Should robots.txt Be Placed?
For a standard website, the robots.txt file is normally
placed at the root of the host, for example:
https://example.com/robots.txt.
Robots.txt Generator FAQ
Common questions about robots.txt files.
No. A website can operate without one, but website owners may use robots.txt to provide crawler instructions.
No. robots.txt relies on crawler compliance. It should not be treated as a security control.
Yes. You can provide the full URL of your XML sitemap and the generator will add a Sitemap directive.
Yes. The tool is free to use.