Skip to main content

New series: how one WordPress checkbox cost a site 7 months of Google traffic, and the full rescue in 21 lessons. Read the series

Glossary term

Disallow

Updated Nov 19, 2026

In short

A rule in a robots.txt file that tells crawlers not to fetch URLs matching a given path, used to keep bots out of certain areas of a site. It controls crawling, not whether a URL can be indexed.

Disallow is a directive in a robots.txt file, the plain text file at the root of a site that gives instructions to crawlers. A Disallow line names a path, and well-behaved crawlers will not request URLs that start with it. The line Disallow: /admin/ asks bots to stay out of everything under /admin/. An empty Disallow value means nothing is blocked.

Rules sit under a User-agent line that says which crawler they apply to, so you can give different instructions to different bots. Most major search engines also support an Allow rule to make exceptions inside a blocked path, and simple wildcards to match patterns such as URLs with a query string. The file is advisory: reputable crawlers follow it, but it is not access control, and anyone can read it. Never use it to hide private content.

The most common mistake is treating Disallow as a way to remove a page from search results. It stops crawling, not indexing. If other pages link to a blocked URL, a search engine can still list the bare address without a description. Worse, a crawler that is blocked cannot see a noindex tag on the page, so combining the two defeats the noindex. To keep a page out of results, let it be crawled and mark it noindex.

Used well, Disallow keeps bots away from endless filter URLs, internal search results and admin areas, which helps with crawl budget on large sites.

An example: blocking /cart/ stops crawlers wasting visits on pages that are useless in search.

Related: noindex, crawl budget, X-Robots-Tag