NEW CASE
Antana

We create digital solutions that work for businesses


Give us a call +38 (066) 35-14-529

Let's take the first step towards your website — write to us

Close
Tools

robots.txt Generator

Build a valid robots.txt: ready presets for WordPress, OpenCart and online stores, bot blocking and Sitemap linking.

robots.txt

    

Upload the file to your site root: example.com/robots.txt

What robots.txt is and how it works

robots.txt is a plain text file in your site root that a search crawler reads first. It tells the bot which sections it may crawl and which to skip. The file is made of blocks: User-agent defines which crawler the rule applies to, followed by Disallow and Allow.

Core directives

  • User-agent: * — a rule for every crawler at once.
  • Disallow: /admin/ — block crawling of a section.
  • Allow: /admin/ajax.php — an exception inside a blocked section.
  • Sitemap: — the full sitemap URL; several are allowed.
  • Crawl-delay: — a pause between requests (ignored by Google).

The most common mistakes

The first and costliest is forgetting to remove Disallow: / after moving from a staging domain. The site disappears from search within weeks. The second is blocking pages you actually want removed from the index: the crawler stops visiting them, but URLs already indexed stay in the results. Removal requires a noindex meta tag, and the page must remain crawlable for the bot to see it. The third is blocking CSS and JS: Google cannot render the page and rates the mobile version worse.

What an online store should block

There is no point crawling cart, checkout and account pages. Filters and sorting deserve special attention: URLs like /*?sort= create thousands of near-identical pages and drain crawl budget. Block them — and turn genuinely useful filter combinations into standalone landing pages with their own copy instead.

Once uploaded, check the file in Google Search Console under Settings → robots.txt. Google will show when it was last read and whether it contains errors.

FAQ

Why do I need a robots.txt file?
robots.txt tells search crawlers which parts of the site to visit and which to skip. It saves crawl budget: the bot does not waste time on carts, user accounts or filter pages and reaches your products and articles faster. Keep in mind that robots.txt controls crawling, not indexing. To keep a page out of search results you need a noindex meta tag.
Where should robots.txt be uploaded?
Only to the domain root — example.com/robots.txt. In a subfolder (example.com/site/robots.txt) the file will not work, crawlers simply do not look there. A subdomain needs its own file: blog.example.com has a separate robots.txt.
Can I block the whole site from Google?
Yes, the "block the whole site" preset produces Disallow: / — use it on staging domains only. On a live site this is the costliest SEO mistake there is: traffic disappears within a few weeks. Always remove the directive before launch and verify the file in Google Search Console.
Does Google respect the Crawl-delay directive?
No, Google ignores it — crawl rate is configured in Search Console instead. Bing and Yandex, however, do understand Crawl-delay. It only makes sense when bots genuinely load your server; in a normal situation leave it at 0.
Telegram Viber Call us