robots.txt Generator
Free online robots.txt generator tool, visual editor
What is robots.txt?
robots.txt is a file placed at the root of a website that tells search engine crawlers which pages or sections they can and cannot access. It uses the Robots Exclusion Protocol to define rules for different user-agents (crawlers). A properly configured robots.txt is essential for SEO.
How to Generate a robots.txt File
Add rules by specifying user-agent, disallow paths, and allow paths. Optionally add a sitemap URL and crawl delay. Click Generate to produce the robots.txt content. Copy the output and place it at the root of your website (https://example.com/robots.txt).
▶Does robots.txt block search engines from indexing?
robots.txt tells crawlers not to crawl certain pages, but it does not prevent indexing if other pages link to them. For true blocking, use the noindex meta tag or password protection.
▶What does User-agent: * mean?
The * wildcard applies the rule to all crawlers. You can target specific crawlers by name, like User-agent: Googlebot for Google's crawler.
▶Where should I put robots.txt?
Place the robots.txt file at the root of your domain: https://example.com/robots.txt. It must be accessible via HTTP and cannot be in a subdirectory.