Skip to content
FunnelGuard

Fix guide by FunnelsGuard

robots.txt over 500 KB: rules past the limit are ignored

SEO-009Low impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A robots.txt file is a plain text file at the root of your site (for example https://example.com/robots.txt). It tells crawlers which paths they may fetch. Google documents a size limit of 500 KiB (about 512,000 bytes). Content after that limit is dropped. The rules there are not read, so they have no effect.

Why it costs you leads or sales

The direct impact is usually low. The risk is that the ignored rules were meant to keep crawlers away from cart, search, filter or private URLs. Crawlers then spend time on low-value pages and may index duplicates. If an Allow rule for an important page sits past the limit, a broader Disallow above it can still block that page.

How a huge robots.txt loses rules
  1. Crawler fetches robots.txtFile loads with a 200 status
  2. First 500 KiB readEarly rules apply
  3. Cut-offRest of the file is ignored
  4. Later Disallow rulesNever applied
  5. Blocked pages crawledCrawl time wasted, duplicates indexed

Rules after the 500 KiB mark never reach the crawler's rule set.

How to check if your site has it

Check your robots.txt size
  1. Open the file

    Visit https://yourdomain.com/robots.txt in a browser. If it takes a long time to scroll, it is probably large.

  2. Measure the size

    Run the command below, or save the file and check its size in your file manager. Anything near or above 512,000 bytes is a problem.

  3. Check every host

    Repeat for www and non-www, and for any subdomains, because each host has its own file.

  4. Look in Search Console

    In Google Search Console, open Settings, then the robots.txt report, to see the fetched version and any warnings.

Print robots.txt size in bytes and line countbash
curl -s https://example.com/robots.txt | wc -c
curl -s https://example.com/robots.txt | wc -l
How to read the result
SizeMeaning
Under 100 KBFine. No action needed.
100 to 500 KBUnder the limit but bloated. Worth cleaning up.
Over about 512,000 bytesRules past the limit are ignored. Fix now.

How to fix it

The goal is a short file that says the same thing. Most oversized files shrink a lot with wildcards and by removing rules that no longer matter.

Shrink robots.txt safely
  1. Back up the current file

    Save a copy so you can roll back.

  2. Remove duplicates and dead rules

    Delete repeated lines and rules for URLs that no longer exist.

  3. Replace lists with patterns

    Use * and $ wildcards, which Google supports, to cover many URLs in one line.

  4. Group bots

    Put several user-agent lines above one set of rules instead of repeating the rules for each bot.

  5. Put key rules first

    Place the most important Disallow and Allow rules and the Sitemap line near the top.

  6. Use noindex or redirects where robots.txt is the wrong tool

    For thousands of individual old URLs, use a redirect, 410 status or a meta robots noindex tag instead of one robots.txt line each.

Example: many lines collapsed into patternstext
# Before: one line per URL (thousands of these)
User-agent: *
Disallow: /search?q=shoes
Disallow: /search?q=boots
Disallow: /search?q=sandals

# After: one pattern
User-agent: *
Disallow: /search?
Disallow: /*?sort=
Disallow: /cart
Disallow: /checkout
Sitemap: https://example.com/sitemap.xml
Where to edit robots.txt
  1. Find the source

    If a file named robots.txt exists in the site root, edit it over SFTP. Otherwise WordPress creates a virtual one, often edited via an SEO plugin such as Yoast SEO (Tools, File editor) or Rank Math (General Settings, Edit robots.txt).

  2. Check for filters

    Some plugins append rules through the robots_txt filter. Disable them one by one to find what adds bulk.

How to confirm it's fixed

Confirmation checklist
  • The live file is well under 500 KiB (re-run the curl size check).
  • The file returns a 200 status as plain text.
  • Search Console's robots.txt report shows the new version fetched.
  • Test several URLs that should be blocked and several that must stay crawlable.
  • Your Sitemap line is present near the top.

How to prevent it happening again

Prevention habits
  • Never auto-generate one Disallow line per URL.
  • Review robots.txt after migrations, plugin changes and platform updates.
  • Keep the file in version control so changes are visible.
  • Set a size reminder, for example a monthly check that it stays below 100 KB.
  • Use noindex, redirects or 410 for large sets of retired URLs.
Bloated vs lean robots.txt

Before

  • Tens of thousands of Disallow lines
  • File above 500 KiB
  • Late rules silently ignored

After

  • A few dozen pattern rules
  • File well under the limit
  • All rules read, Sitemap line first

How FunnelGuard handles this

FunnelGuard does not check robots.txt file size today. It is a possible future check. FunnelGuard runs your real customer journeys, such as lead forms, checkouts and booking buttons, on a schedule and checks each step, the tracking hits and whether test leads arrive. It does not read your crawl rules.

Questions people ask

What is the maximum size of a robots.txt file?

Google reads the first 500 KiB (about 512,000 bytes) of a robots.txt file and ignores the rest. Keep the file far below that to be safe with other crawlers too.

Why are my robots.txt rules being ignored?

One cause is file size: rules after the 500 KiB mark are not read by Google. Other causes include syntax errors, wrong host, or a conflict between Allow and Disallow rules. Check the size first, then test the specific URL.

How do I reduce the size of my robots.txt file?

Remove duplicate and outdated lines, use wildcards (* and $) to cover many URLs in one rule, and group several user agents over one set of rules. For thousands of retired URLs, use redirects, 410 status or noindex instead.

How do I check my robots.txt file size?

Run curl -s https://yourdomain.com/robots.txt | wc -c to get the size in bytes, or save the file and check its properties. Compare it with 512,000 bytes.

Does a large robots.txt hurt my SEO?

Only if it goes over the limit. Then the rules past the cut-off are ignored, so crawlers may fetch pages you meant to block and waste crawl time. The impact is usually small, but the fix is simple.

What happens to rules after the robots.txt size limit?

They are dropped as if they did not exist. Crawlers treat those paths as allowed, unless an earlier rule already covers them.

Can I use multiple robots.txt files to get around the limit?

No. A host has one robots.txt at its root. Each subdomain can have its own, but you cannot split one host's rules over several files. Shorten the single file instead.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.