In this article
robots.txt is a file of rules for search bots. It sits in the site root (your-site/robots.txt), and a bot reads it first. In it you can ask bots not to visit utility sections. But one careless Disallow: / line blocks the entire site from search.
What it is
The file consists of groups: the User-agent line says which bot the rules apply to, and the Disallow and Allow lines say what is forbidden and allowed. An example of a normal file:
User-agent: *
Disallow: /wp-admin/
Disallow: /cart/
Disallow: /*?s=
Allow: /wp-admin/admin-ajax.php
Sitemap: https://example.com/sitemap.xmlAnd this is what a file that blocks everything looks like:
User-agent: *
Disallow: /Important: if there is a separate group for Yandex or Google (User-agent: Yandex), the bot reads only that group and ignores the general * group.
robots.txt forbids a bot from visiting a page. To remove a page from search you use noindex — and then the page must not be blocked in robots.txt, otherwise the bot never sees the noindex.
How the monitor checks
Impact on the site and business
- The site drops out of search. Bots stop crawling the pages, and after a while they disappear from results or show without a description.
- New pages don’t reach search if the section they are in is blocked.
- Images and styles. If you block the folders with styles and scripts, Google sees the site as “broken” and rates the mobile version lower.
Why it matters
The classic: the site was developed on a test domain with Disallow: /, then the files were moved to the live domain along with that robots.txt. Or an SEO plugin generated a new file after an update. The site works, but search traffic slowly drains to zero and nobody understands why.
Norms
| Rating | Status | Comment |
|---|---|---|
| Good | Only utility sections blocked, a sitemap link present | Bots see everything they need |
| Could be better | Folders with styles and scripts blocked | Google understands the pages less well |
| Bad | The home page or the whole site blocked (Disallow: /) | The site is dropping out of search |
How to fix it
- Open
your-site/robots.txtin a browser and find the line the monitor showed. - Remove
Disallow: /and the rules blocking the sections you need. Check the separate groups for Yandex and Googlebot. - Add a
Sitemap:line with the link to your sitemap. - Check the file in Google Search Console and Yandex Webmaster (the “robots.txt analysis” section).
- On the monitor tab click “Accept” so the new version becomes the baseline.
WordPress
If there is no physical robots.txt file, WordPress serves a virtual one — its content depends on “Settings → Reading” and your SEO plugin (Yoast: “Tools → File editor”, Rank Math: “General Settings → Edit robots.txt”). If a file exists in the site root, edit that — it takes priority over the virtual one.
Joomla
Joomla puts a robots.txt.dist file in the root. The working file is robots.txt; edit it via FTP or the hosting file manager. Joomla’s standard file blocks utility folders and is fine for most sites.
MODX
In MODX robots.txt is usually a file in the root. Sometimes it is made a resource with the “text” content type — then edit the resource in the manager. Make sure there aren’t both a physical file and a resource at the same time.
General recommendations
- Protect test copies of a site with a password, not robots.txt.
- After moving a site, open the live domain’s robots.txt first thing.
- Don’t hide “secret” sections in robots.txt — everyone can see the file, and it becomes a ready list of what you are hiding.
FAQ
Does Disallow in robots.txt remove a page from search?
Not always. The bot doesn’t visit the page, but if there are links to it, it may stay in results without a description. To remove a page from search, use noindex.
Why does the monitor report a robots.txt change when I didn’t change anything?
A plugin or a CMS update may have regenerated the file. Look at the line diff: if the changes are fine, click “Accept”.
Do I need a separate block for Yandex?
Not necessarily. But if there is one, Yandex reads only that block — all the rules you need must be in it.