Visually build a robots.txt file for your website. Choose a template, customise crawl rules, add your sitemap, and download in seconds — no coding needed.
Build, preview, and download a properly formatted robots.txt in three easy steps.
Start with SEO Friendly to block admin areas and common SEO crawlers, or choose Allow All for a simple open policy. Customise from there.
Add Disallow rules for paths you want blocked and Allow rules for exceptions. Add multiple user-agent groups to target specific bots.
Copy or download your robots.txt and upload it to the root of your website at yourdomain.com/robots.txt. Verify it with our Robots.txt Checker.
User-agent: * applies rules to all crawlers not explicitly named. Always include this as your default rule group.
Disallow: /admin/ tells bots not to crawl that path. An empty value Disallow: explicitly allows everything.
Allow: /wp-admin/admin-ajax.php overrides a broader Disallow for a specific path. Useful for AJAX endpoints.
Sitemap: https://example.com/sitemap.xml helps all search engines discover your sitemap automatically.
A robots.txt file is a plain-text file placed at the root of your website that tells search engine crawlers which pages or sections of your site they are — and aren't — allowed to access. It's one of the first files Googlebot, Bingbot, and other crawlers fetch when they visit your site.
While robots.txt doesn't directly affect rankings, it controls how your crawl budget is spent. If crawlers waste time on low-value pages like admin panels, login pages, or duplicate parameter URLs, they may crawl fewer of your important pages — which can slow down indexation.
A well-configured robots.txt file keeps bots focused on the pages that matter: your blog posts, product pages, and landing pages.
yourdomain.com/robots.txt — no subdirectory.Disallow must be capitalized correctly. The file itself is case-insensitive on most servers.Follow these steps to build, test, and deploy a robots.txt file that improves your site's crawl efficiency.
/admin/, /login, /cart, /checkout, duplicate parameter URLs like ?sort= or ?page=, and staging subdirectories./wp-admin/ while keeping admin-ajax.php accessible for AJAX functionality.User-agent: * group applies to all bots. Add specific groups for crawlers like AhrefsBot or SemrushBot if you want to block third-party SEO tools from consuming bandwidth. Order matters: more specific rules take precedence.Sitemap: line pointing to your sitemap.xml. This helps Google and Bing discover it automatically without relying on Search Console submissions. Use the full absolute URL including https://./public_html/, /www/, or /htdocs/. The final URL must be https://yourdomain.com/robots.txt.Copy-paste starting points tailored for the most common website platforms.
These errors regularly cause sites to lose traffic — most can be fixed in minutes.
noindex combined with allowing the crawl.Disallow: /. Reputable SEO tools like Ahrefs and Semrush honour robots.txt. Note this has no effect on Googlebot — you'll need to handle Googlebot separately if needed.noindex meta tag on the page itself (and allow crawling so Google can read that tag).blog.example.com/robots.txt applies only to that subdomain. The root domain's robots.txt does not apply to subdomains.Use our free Robots.txt Checker to instantly analyze any site's file for SEO issues, blocked resources, and missing directives.
Check robots.txt for free