Robots.txt generator
Generate robots.txt from disallowed paths
Robots.txt generator
What is robots.txt?
The robots.txt file provides crawling instructions to compliant robots. It is served at the root of the host and applies to that host, protocol and port.
How to use the generator
Enter one path to disallow per line, choose the user agent and optionally supply the absolute sitemap URL. Copy the generated rules into robots.txt at the root of your website.
Practical example
Use /search/ to discourage crawling of internal search pages when appropriate. Do not block CSS or JavaScript needed to render public pages. Test rules against representative URLs before publishing.
Does Disallow protect private files?
No. Use authentication and authorization for private content. Robots.txt is public and some robots ignore it.
Does Disallow remove pages from Google?
Not necessarily. A blocked URL may still appear in search results. For public pages that must not be indexed, an accessible noindex directive may be appropriate.
What it does
Create crawler directives for selected paths and an optional sitemap address.
How to use
Enter one disallowed path per line, set the user agent and optionally the sitemap URL.
Example
/private/ → Disallow: /private/
Limitations
Robots.txt is not access control and does not guarantee removal from search results.