robots.txt Generator for WordPress
Create a correct robots.txt in one click: block the admin folder and search pages, and add your sitemap automatically.
- Free, no sign-up
- Runs in your browser
- seo
Copy the result into robots.txt at your site root, and review the paths before uploading.
What does robots.txt actually do?
robots.txt is a message from your site to crawlers: which paths you would rather they not enter. It is not a security tool, it does not block access to a page, and it does not stop a visitor from reading it. Any URL you disallow remains reachable if someone knows it, so never rely on robots.txt to protect sensitive files or folders.
What is usually disallowed?
- The admin folder: crawling dashboard pages does not help indexing and consumes server resources.
- Internal search pages: their results are endless, and indexing them fills the index with duplicates.
- Feeds: sometimes useful; you can leave them open depending on your strategy.
- The sitemap: not a block, but a line that tells search engines where your sitemap lives.
How to use the tool
- Choose what to block from the options above.
- Review the generated text line by line and confirm the paths.
- Copy it into a file named robots.txt at your site root.
- Open
yoursite.com/robots.txtin a browser, then re-check the page in Search Console.
Mistakes that break the file
One badly formatted line can cancel the lines after it. Every line must start with the directive, then a colon, then the value, with no spaces inside the directive. And note: Disallow: / on its own blocks the whole site, one of the most common reasons a small site disappears from search results.
Frequently asked questions
Does robots.txt remove pages from the index?
No, it blocks crawling. To remove an indexed page, use a noindex tag or Google’s URL removal tool.
Does every site need robots.txt?
Not every site, but it helps when you have an admin folder or internal search pages. Its absence causes no error.
Where does the file go on WordPress?
At the site root next to wp-content. Some SEO plugins generate it automatically; in that case edit it inside the plugin, not on the server.