How to use robots.txt for crawl budget
If a category page has 30 links, use robots.txt to block only the duplicate paths around it, not the category page itself. How to use robots.txt for crawl…
Close-up of HTML code on a screen
Last updated: November 26, 2026
Quick Answer: If a category page has 30 links, use robots.txt to block only the duplicate paths around it, not the category page itself. How to use robots.txt for crawl budget without blocking important pages comes down to one rule: steer bingbot away from low-value URLs, not away from pages you still need crawled. The right setup cuts wasted fetches on parameters, duplicate paths, and files that do not help search, while leaving product, category, and other discovery pages open.
Key takeaways
- robots.txt is a routing tool, not a removal tool. It tells crawlers where not to go, but blocked URLs can still matter if other pages point to them.
- The safest cuts are usually duplicate URL patterns, internal search results, session parameters, and non-HTML files that do not need search traffic, but each site still needs a case-by-case check.
- Do not block pages that carry discovery links, canonical signals, or content that search needs to see to understand the site.
- A small robots.txt change can shift crawl paths fast, so test it before and after in Bing Webmaster Tools and watch which URLs stay visible.
- If a page must stay out of search results, robots.txt alone is the wrong tool.
What robots.txt should do for crawl budget
robots.txt should keep bingbot off parts of the site that waste crawl time, not off pages that support discovery. For a site with thousands of parameter URLs, a few clean Disallow rules can stop repeated crawling of the same content and leave more room for important pages.
This is a good fit for crawl budget work because robots.txt is read before crawling starts. If bingbot sees a disallow rule for a path, it can avoid spending requests on that path and move on to URLs that matter more. That said, a blocked URL can still be known to Bing if other pages link to it, so blocking is not the same as removing it from the index.
Therefore, the trade-off is simple: every path you block saves crawl on that path, but it also removes one route by which Bing can discover what sits behind it. How to use robots.txt for crawl budget without blocking important pages depends on blocking low-value, repetitive, or private areas. It is the wrong tool for pages that need to be crawled so their links, canonicals, or content can be read.
Google’s robots.txt documentation and Bing’s robots.txt guidance both treat robots.txt as a crawl control file, not a ranking hint. If the setup will affect important pages, consult a professional and verify the rules against those docs first. That distinction matters because crawl control is about where bots spend requests, not about telling them what is important.
Which URLs are usually safe to disallow?
The safest URLs to disallow are the ones that repeat the same content or serve no search value on their own, but they still need review before you block them. Common examples include parameter-heavy faceted URLs, internal search result pages, session IDs, and printer-friendly duplicates. These patterns can create dozens or hundreds of extra crawl paths from one page template.
For example, a practical rule is to block patterns, not valuable pages. Blocking a parameter like ?sort= may help if it only changes order and not meaning. Blocking the whole category path because it also has a sort parameter would be a mistake, because it can cut off the main category page too.
Assets need judgment as well. CSS and JavaScript files usually should stay crawlable if they help render the page correctly. Images and PDFs can be left open when they matter for search visibility or user use, but blocked when they create noise and have no search value. The point is not to ban file types by default; the point is to ask whether bingbot needs that file to understand the page.
Here is a simple comparison of common targets:
| URL type | Usual robots.txt choice | Why |
|---|---|---|
?sort=, ?filter=, other repeat parameters |
Often disallow the pattern | Cuts duplicate crawl paths |
| Internal site search URLs | Usually disallow | They can generate endless thin pages |
| Login, cart, checkout | Usually disallow | They do not help search discovery |
| CSS and JS | Usually allow | Needed for rendering in many cases |
| Core category and product pages | Do not block | These are the pages search needs |

That table is the heart of crawl shaping. It keeps the rule focused on repeated or useless paths instead of using robots.txt as a blunt switch.
How do you shape crawl paths with disallow rules?
You shape crawl paths with disallow rules by blocking the branches that waste requests and leaving the main route open. The aim is to make bingbot spend more of its crawl on HTML pages that can rank, rather than on endless URL variants.
Next, start with a short list of URL patterns that create crawl noise, such as ?sort=, ?session=, or internal search paths. Then write the narrowest rule that catches the pattern without touching the main page. If the site has one product page and five versions created by sorting, filter, and tracking parameters, the rule should target the extra versions, not the product path itself.
A simple process helps:
- List the URL patterns that create crawl noise, such as
?sort=,?session=, or internal search paths. The result should be a small set of repeat patterns, not a long wish list. - Check whether any of those URLs carry unique content or discovery links. If they do, do not block them; a single blocked path can hide many linked pages.
- Write one narrow
Disallowrule per pattern instead of one broad rule for a whole section. A narrow rule lowers the chance of accidental damage. - Put the rules in robots.txt and make sure the file still leaves the main folders crawlable. The expected result is less bot time spent on junk URLs, not a site that disappears.
- Recheck the affected URLs in Bing Webmaster Tools after the change so you can see whether crawl patterns shift in the direction you wanted.
Meanwhile, the common error is to block a directory because many bad URLs live there. That can also block the one good URL in the same directory. A better move is to block the exact parameter or subpath that creates the waste.
How should parameter blocking be handled?
Parameter blocking should be narrow, because broad parameter rules can cut off useful pages as easily as they cut off junk. Parameters often create crawl waste on commerce, faceted navigation, and internal search, but they also sit on top of pages that matter.
The first question is whether the parameter changes content or only presentation. If ?page=2 shows a new set of items, that is not the same as ?sort=price, which may only reorder the same list. Sorting and tracking parameters are often better candidates for blocking than pagination, because pagination can reveal deeper content.
A second question is whether the parameterized URL has links that matter for discovery. If the page contains links to products, categories, or articles, blocking it can cut off a crawl path. This is the trade-off most generic advice skips. robots.txt can save crawl budget, and it can also damage discovery if it blocks the only route to linked URLs.
Before you block, group parameters by job:
- Tracking parameters usually add noise and can often be blocked.
- Sorting parameters often create duplicates and may be blocked if they do not change meaning.
- Filtering parameters need care, because some filters create useful category pages while others create thin combinations.
- Pagination parameters should be judged one by one, since they can expose deeper content.
Overall, this is where crawl budget and index quality meet. A parameter rule that looks tidy on paper can still make Bing miss pages that only appear behind that URL pattern. Keep the rule narrow enough that it trims crawl noise without erasing the path to content.
What should stay open even when crawl budget is tight?
Core discovery pages should stay open even when crawl budget is tight, because they are the pages that help Bing find the rest of the site. That includes top categories, product pages, key article pages, and any page that links to other important URLs.

Before you block anything, remember that repeated structure is not the same as low value. A category page with 30 links may look similar to another category page, yet it may be the only source of discovery for those 30 URLs. Blocking it can save a few fetches and cost far more in lost crawl paths.
Keep open anything that Bing needs to read to understand site structure. That includes HTML pages with internal links, canonical tags, and normal navigation. It also includes assets that the page needs to render correctly, especially if blocking them would make the page look broken to a crawler.
In short, if the page is a doorway, leave it open; if it is a duplicate hallway, block it. A doorway leads to unique content or links. A duplicate hallway repeats the same room with no new value. When the split is unclear, do not block until the page has been checked against its role in discovery.
This is also why robots.txt is not the right fix for everything. If the problem is that a page should not be indexed, blocked crawling may not be enough. If the problem is that Bing should still read the page to see links or canonicals, blocking can make the problem worse.
How do you test a robots.txt change without breaking discovery?
You test a robots.txt change by checking the file itself, then checking the crawl effect on the URLs you touched. Bing Webmaster Tools is the right place to start because it shows how Bing sees the site and whether blocked paths are still showing up in crawl reports.
After that, begin with the exact URLs that match the new rules. Test one blocked example and one important example that should stay open. If the blocked URL is still crawlable, the rule is too narrow. If the important URL is blocked, the rule is too broad. That simple before-and-after check catches most mistakes in a few minutes.
A careful test also looks at discovery, not just blocking. If a parameter page used to link to category pages and now those links are invisible to crawlers, the site may lose crawl paths even though the core pages still load in a browser. That kind of damage can be slow and easy to miss, which is why testing should happen before and after the change, not only after traffic drops.
Then keep the change small enough to reverse. One rule at a time is easier to judge than a full rewrite of the file. If three rules change at once, there is no clean way to know which one helped and which one hurt. A staged change is slower, but it gives a readable result.
What mistakes cost the most?
The most expensive mistake is blocking a page that serves as a discovery hub. That costs crawl paths first and visibility later, because Bing may lose access to the links that spread through the site. The second expensive mistake is using robots.txt as a removal tool, which can leave blocked URLs known but poorly controlled.
Another common mistake is blocking assets such as CSS or JavaScript without checking whether the page still renders correctly for crawlers. If the crawler cannot see the page as intended, it may not understand the content or layout. That can turn a crawl budget fix into a content understanding problem.
A third mistake is making rules too broad because they look tidy. A single Disallow line that catches a whole folder can save time in the file and cost far more in lost discovery. The better habit is to match the smallest repeat pattern that creates the waste.
Ultimately, the upside is real when the rules are precise. Robots.txt can help bingbot spend less time on junk URLs and more time on pages that matter. The downside is just as real: one careless disallow can remove the path Bing needed to find those pages in the first place.
FAQ
Does robots.txt save crawl budget in Bing?
Yes, robots.txt can save crawl budget in Bing when it blocks low-value paths that would otherwise be fetched again and again. The gain is biggest on duplicate parameter URLs, internal search results, and other repeated patterns. It is not a magic fix for a weak site architecture.
What should not be blocked in robots.txt?
Do not block pages that act as discovery paths, such as core category pages, product pages, and article hubs. Do not block assets that Bing needs to render the page correctly unless there is a clear reason to do so. If a page helps Bing find other important URLs, blocking it can cost more than it saves.
Can robots.txt hurt discovery?
Yes, robots.txt can hurt discovery if it blocks pages that contain unique links or canonical signals. The page may still exist, but Bing may lose one of the routes that led to other content. That is why robots.txt should be used to trim crawl waste, not to hide anything that matters for site structure.
When should a page stay crawlable?
A page should stay crawlable when it is a doorway to other important URLs, or when Bing needs to read its links, canonical tags, or content to understand the site. If the page has 30 links and drives discovery, leave it open.
How often should you review robots.txt?
Review robots.txt after any site change that adds parameters, new sections, or new duplicate paths. A small change can affect crawling quickly, so test the file before and after each edit.
Drafted with AI; not yet reviewed by a person.