Robots.txt Generator
Create a robots.txt file in seconds to control what search engines can crawl. Includes WordPress rules, folder blocking, sitemap and ready-made examples.
Robots.txt generator
Create rules for crawlers (Googlebot, Bingbot and others). Generate the content, then copy it or download the robots.txt file.
Settings
Common rules
Block folders or URLs (custom)
Sitemap (recommended)
Tip: robots.txt controls crawling; it does not make anything private or secure.
Preview (robots.txt)
How to use
- Check the rules you need and enter your sitemap.
- Click Generate robots.txt.
- Copy or download it and publish it at
https://yoursite.com/robots.txt
More tools for technical SEO
XML sitemap generator • .htaccess generator • 301 redirect generator
Frequently asked questions
What is a robots.txt file?
It is a plain text file at the root of your domain that tells search engine crawlers which parts of the site they may or may not crawl.
Where should I put robots.txt?
It must be at the root of the domain, for example https://www.yoursite.com/robots.txt. In any other folder, such as /files/robots.txt, search engines ignore it.
Does robots.txt stop Google from indexing a page?
Not necessarily. robots.txt blocks crawling, but a blocked page can still appear in results if other sites link to it. To keep a page out of the index, use <meta name="robots" content="noindex"> or the X-Robots-Tag HTTP header, and do not block that page in robots.txt.
Can I block the whole site temporarily?
Yes, with:
User-agent: *
Disallow: /
This blocks every crawler. Use it only on test or development sites.
Should I add the sitemap to robots.txt?
Yes, it is recommended:
Sitemap: https://www.yoursite.com/sitemap.xml
It helps search engines find your pages faster.
What is a good robots.txt for WordPress?
A safe basic example:
User-agent: *
Allow: /
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php
Do not block /wp-content/ or CSS and JS files, because Google needs them to render your pages.
Can robots.txt hurt my SEO?
Yes, when it blocks important pages, CSS and JS files, the sitemap itself, or the whole site by mistake. Always check it after publishing.
How do I test my robots.txt?
Open yoursite.com/robots.txt in the browser to see what is published, and use the robots.txt report in Google Search Console to see how Google reads it.
Does robots.txt protect private content?
No. It only guides well-behaved crawlers, and anyone can read it. For real protection, use authentication or block access on the server, for example with .htaccess rules.
Can I block only URLs with parameters?
Yes, with:
Disallow: /*?*
This stops crawling of URLs with parameters, such as filters and internal searches.
Need a full technical SEO review of your site?
We find what holds your site back on Google (broken links, redirects, slow pages, indexing problems) and fix it.