Suggest an editImprove this articleRefine the answer for “What does the Disallow directive do in robots.txt?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)The **Disallow** directive in the **robots.txt** file tells search bots which pages or directories must not be crawled or indexed. **Key point:** Disallow does not fully hide a page from a search engine - for complete hiding, `noindex` or a prohibition via HTTP headers is used.Shown above the full answer for quick recall.Answer (EN)ImageThe **Disallow** directive in the **robots.txt** file tells search bots which pages or directories **must not be crawled or indexed**. It denies access to specified paths, so that the search engine does not enter certain sections of the site, for example service pages, admin panels, or duplicate content. Example: ```javascript User-agent: * Disallow: /admin/ Disallow: /cart ``` In this case, bots will not crawl the `/admin/` section or the `/cart` page. It's important to understand: **Disallow does not fully hide a page from the search engine**. If external links point to the disallowed page, it can still appear in the results, but without content. For complete hiding, `noindex` (in a meta tag) or a prohibition via HTTP headers is used.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.