This is the most common robots.txt problem our scans find, and it is the most frustrating, because the file looks right. You open yourdomain.com/robots.txt, you see Allow: / next to the crawler you care about, and yet the crawler never visits, or it visits and gets turned away. The file is telling the truth about your intent, and something else is telling a different story about what actually happens.
The reason is simple once you see the layers. Robots.txt is one layer, and it is not the layer that decides. Your firewall, your CDN, your bot manager, your server, and your hosting platform each get a say before the crawler ever reaches your pages. Any one of them can say no, and when it does, the allow in your file means nothing.
The short answer
An allow in robots.txt is a statement of intent, not an open door. A crawler must pass through your edge, which is the firewall, CDN, and bot manager in front of your site, before it can read the file or fetch a page. If the edge blocks or challenges the crawler, the file is never consulted, or it is consulted and then ignored, because the block happens first.
RFC 9309, the Robots Exclusion Protocol, says the rules are not a form of access authorisation. That means the file asks well behaved crawlers to follow it, but it does not enforce anything, and it does not overrule a firewall. Perplexity states the point in its own docs by publishing WAF configuration guidance for Cloudflare and AWS WAF, precisely because firewalls block its bots on sites whose robots.txt permits them. OpenAI, Anthropic, and Meta all describe the same split in their own way: the file states the policy, and the edge and the server decide what really happens.
The fix is to test each layer separately, find the layer that says no, and fix that layer. Rewriting the file when the file is not the problem only wastes time, and it can make things worse if a rewrite introduces a new error.
How it works, step by step
Step one is the request. A crawler asks for your robots.txt file first, then for the page it wants. That request travels through the internet, through your CDN if you use one, through your firewall, through your bot manager, and finally to your server. Each of those stops can allow it, challenge it, or block it. A challenge page, a captcha, or a 403 response stops the crawler before it ever sees your content.
Step two is the edge. The edge is the set of services in front of your server, and it is where most allow but still blocked failures live. Cloudflare Bot Fight Mode, AWS WAF rules, and other bot managers apply their own rules before your robots.txt file is ever consulted. A common pattern is a rule that challenges all automated traffic, or a rule that blocks traffic from data centre addresses, or a rule that blocks a user agent that looks like a bot. AI crawlers are automated traffic from data centre addresses with bot user agents, so a broad rule like that blocks them by design, even when you meant to block only bad bots.
Step three is the file. Only after the edge lets the request through does the crawler read robots.txt and check the group that names it. RFC 9309 says a crawler must use case insensitive matching to find the group that matches its product token, and if no matching group exists, it must obey the group with a star value, if present. The most specific matching rule wins. If the file says Allow: / for that crawler, the crawler may proceed. If the file says Disallow: / , it must stop. But if the edge already stopped it, the file never gets a chance to say allow.
Step four is the server. Even when the edge and the file both allow the crawler, the server can still turn it away. A server error, a redirect loop, a login wall, or a rate limit can all stop a fetch. A 5xx server error is especially confusing, because RFC 9309 says crawlers must assume they may fetch nothing when the robots.txt file itself returns a server error. A site that is down for maintenance can therefore look blocked to a crawler, even though the file is correct.
What to do on your site
Start by confirming the file is actually right, because it is the easiest layer to check and the easiest to fix. Open your own domain followed by robots.txt in a private browser window. Read each group. Check that the token is spelled correctly, that the group is complete, and that no named group accidentally blocks the crawler you want. Remember that a crawler with its own group ignores the star group, so a star group that allows everything does not rescue a named group that blocks it.
Then test the edge, because that is where most failures live. Fetch your homepage with a crawler user agent, using curl, as shown in the code block below. If a normal browser gets a 200 and the crawler gets a 403 or a challenge page, the edge is blocking the crawler. Open your bot management settings and look for rules that challenge or block automated traffic. In Cloudflare, look under Security, then Bots, and check that AI crawlers are not being challenged or blocked there. In AWS WAF, check the rules that match user agents and IP addresses. Add an allow rule for the crawler token and its published IP ranges, following the vendor WAF guidance linked in Sources below.
Then check the server logs. Search for the crawler tokens and look at the status codes. A 200 means the crawler read the page. A 403 means it was blocked. A 429 means it was rate limited. No lines at all means it never arrived, which points back to the edge or to the crawler simply not having tried yet. Check the source address against the vendor published IP ranges, because a user agent string alone can be faked, and a block aimed at a fake crawler is not the same as a block aimed at a real one.
A worked example
Imagine a bicycle shop called Ridgeway Cycles that sells bikes online and in a shop. The owner allows OAI-SearchBot, Claude-SearchBot, and PerplexityBot in robots.txt, and the file looks perfect. Yet the shop never appears in AI answers, and the server logs show no visits from any of those crawlers.
The owner tests the edge first, by fetching the homepage as PerplexityBot with curl, and gets a 403 with a challenge page, while a normal browser gets a 200. The file is not the problem. The edge is. The owner opens the Cloudflare dashboard, finds Bot Fight Mode turned on, and finds a rule that challenges all traffic that looks automated. The owner adds an allow rule for the AI crawler tokens and their published IP ranges, following the Perplexity WAF guidance, and turns off the broad challenge for those tokens.
The next day the curl test returns 200 for all three crawlers. A week later the logs show visits with 200 status codes, and the shop product pages start to appear in AI answers. The owner changed nothing in robots.txt. The file was right all along. The fix was at the edge, and the only way to find it was to test the edge separately from the file.
Now imagine the owner had instead rewritten the file five times, adding more Allow lines, moving groups around, and copying tokens from blog posts. None of those changes would have helped, because the file was never consulted. The shop would have stayed invisible, and the owner would have concluded that AI search does not work for small shops. The real lesson is to test the layer that decides, not the layer that looks wrong.
The machine readable part
Copy the block below into a terminal to test whether the edge is blocking a crawler. Replace yourdomain.com with your own domain. The first command fetches your homepage as PerplexityBot, using the user agent string Perplexity publishes. The second fetches it as a normal browser, for comparison. The third searches your logs for the main AI tokens and their status codes.
curl -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; PerplexityBot/1.0; +https://perplexity.ai/perplexitybot)" -I https://www.yourdomain.com/
curl -A "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36" -I https://www.yourdomain.com/
grep -i "oai-searchbot\|claude-searchbot\|perplexitybot\|meta-webindexer\|googlebot" /var/log/nginx/access.log | tail -20
Read the results this way. If the crawler fetch returns 200 and the browser fetch returns 200, the edge is letting both through, and the problem is elsewhere, such as the file or the logs. If the crawler fetch returns 403 or a challenge page while the browser returns 200, the edge is blocking the crawler, and that is the layer to fix. In the log search, a 200 means the crawler read the page, a 403 means it was blocked, and no lines at all means it never arrived. If your server uses Apache instead of Nginx, the log path will differ, so ask your host or developer for the right path.
Mistakes to avoid
Mistake one is rewriting the file when the edge is the problem. A file that says allow cannot fix a firewall that says block. Test the edge with curl before you edit the file again.
Mistake two is assuming a 200 in a browser means a 200 for a crawler. Browsers and crawlers are treated differently by bot managers, by design. Always test with the crawler user agent, not only with your own browser.
Mistake three is forgetting that a named group wins over the star group. A star group that allows everything does not override a named group that blocks one crawler. Read the named groups first, because they are the ones that decide.
Mistake four is judging a fix too soon. Vendors cache robots.txt for about a day, and a fix to the file or the edge can take a day to show up in crawler behaviour. Retest the next day, and check the logs a week later, before you conclude the fix did not work.
Frequently Asked Questions
My robots.txt says Allow, so why do the logs show no visits?
Because an allow in the file does not summon a crawler. Crawlers visit on their own schedule, and an edge block can stop them before they ever reach your server. Test the edge with curl, wait a week, and check the logs again before you conclude the file is wrong.
What is Bot Fight Mode, and why does it block AI crawlers?
Bot Fight Mode is a Cloudflare setting that challenges automated traffic. AI crawlers are automated traffic, so a broad challenge can block them even when robots.txt allows them. Check your bot management settings and add an allow rule for the crawler tokens and their published IP ranges.
Does a 403 in the logs mean robots.txt blocked the crawler?
No. A 403 means the server or the edge refused the request. Robots.txt does not return a 403, it returns a rule the crawler follows or ignores. A 403 in the logs points to the edge or the server, not to the file.
Verified Sources & Technical Documentation
- RFC 9309, Robots Exclusion Protocol Specific https://www.rfc-editor.org/rfc/rfc9309.html
- Perplexity crawlers documentation, including WAF configuration Specific https://docs.perplexity.ai/guides/bots
- OpenAI bots documentation Specific https://platform.openai.com/docs/bots
- Anthropic: does Anthropic crawl data from the web, and how can site owners block the crawler Specific https://privacy.claude.com/en/articles/8896518-does-anthropic-crawl-data-from-the-web-and-how-can-site-owners-block-the-crawler
- Meta web crawlers documentation Specific https://developers.facebook.com/documentation/sharing/webmasters/web-crawlers
- Google Search Central: how Google interprets the robots.txt specification General Docs https://developers.google.com/search/docs/crawling-indexing/robots/robots_txt
links marked specific point to the page that supports the claim in this guide. Links marked general docs point to the vendor's general docs section for that topic, not to a page that proves every step. Check the vendor docs for the current path before relying on a menu name or click path in this guide.