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.
- Crawler fetches robots.txtFile loads with a 200 status
- First 500 KiB readEarly rules apply
- Cut-offRest of the file is ignored
- Later Disallow rulesNever applied
- 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
Open the file
Visit https://yourdomain.com/robots.txt in a browser. If it takes a long time to scroll, it is probably large.
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.
Check every host
Repeat for www and non-www, and for any subdomains, because each host has its own file.
Look in Search Console
In Google Search Console, open Settings, then the robots.txt report, to see the fetched version and any warnings.
curl -s https://example.com/robots.txt | wc -c
curl -s https://example.com/robots.txt | wc -l| Size | Meaning |
|---|---|
| Under 100 KB | Fine. No action needed. |
| 100 to 500 KB | Under the limit but bloated. Worth cleaning up. |
| Over about 512,000 bytes | Rules 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.
Back up the current file
Save a copy so you can roll back.
Remove duplicates and dead rules
Delete repeated lines and rules for URLs that no longer exist.
Replace lists with patterns
Use
*and$wildcards, which Google supports, to cover many URLs in one line.Group bots
Put several user-agent lines above one set of rules instead of repeating the rules for each bot.
Put key rules first
Place the most important Disallow and Allow rules and the Sitemap line near the top.
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.
# 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.xmlFind 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).
Check for filters
Some plugins append rules through the robots_txt filter. Disable them one by one to find what adds bulk.
Edit the template
Go to Online Store, Themes, Edit code, and open robots.txt.liquid under Templates (add it if missing). Keep customizations small. The default file is already compact.
Edit in settings
Open Site settings, SEO, and edit the robots.txt box. Paste the shortened version and publish.
Use the editor
Go to Marketing & SEO, SEO Tools, Robots.txt Editor, then trim the rules.
Limited control
Squarespace generates robots.txt automatically and does not let you edit it. Use page-level search engine visibility settings instead.
Fix the generator
If a script or build step writes the file, change the template so it emits patterns instead of one line per URL, then redeploy.
How to confirm it's fixed
- 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
- 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.
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.
Related issues
- SEO-006robots.txt syntax errors or unsupported directives (noindex in robots.txt)Fix guide
- SEO-008robots.txt rule conflicts (Allow vs Disallow precedence) block intended pagesFix guide
- SEO-010robots.txt missing Sitemap: lineFix guide
- SEO-011Different robots.txt on www and non-www or http and https hostsFix guide
- SEO-018Faceted navigation creates millions of crawlable filter URLsFix guide
- SEO-017Crawl traps: infinite calendars, session IDs, endless parameter combinationsFix guide