A server returning 403 to AI bots allowed in robots.txt is a common and quiet problem; Your robots.txt says "come in", but your server says "Forbidden". A 403 means the server understood the request and refused it. And the server always wins: robots.txt is only a note that polite bots read; the server decides who actually gets the page.
If ChatGPT, Perplexity, or Claude get a 403 when viewing your website, it means that they cannot access it. When they cannot access it, they cannot cite it or link to it. This article tells you the origin of such a block, how to test it in two minutes and how to remove it.
In short
- robots.txt gives instructions; your server, CDN or firewall opens or shuts the door.
- Test with a normal browser and with an AI bot name; compare the two replies.
- Fix the rule that blocks the bot, and allow real bots by their published IPs, not just their names.
Why robots.txt says "Allow" while your site still sends 403 Forbidden to AI crawlers
Your website is a store; the robots.txt file is the welcome sign on the door. The firewall is the guard at the door. This guard will not check the sign, but will check the rules and follow the instructions. If his instructions say "No bots," then that's the end of it.
This guard could be any of these things: your CDN, your security plug-in, your host, and/or a firewall rule that's been there for years. There are many things that block AI bots to save bandwidth and avoid scraping.
The 5 places a 403 can come from
| Layer | Typical sign | Who can change it |
|---|---|---|
| CDN bot protection (for example Cloudflare) | A bot check page, or a 403 sent by the CDN | You, in the CDN dashboard |
| Firewall rules (WAF) | A 403 only when the visitor name has "bot" or an AI bot name in it | You or your developer |
| Security plugins (WordPress) | A blocked visit in the plugin's log or "live traffic" view | Your site admin |
| Host firewall | A 403 even with the CDN turned off; the host own error page | Your host's support team |
| Rate limits & country blocks | A 429 or 403 after many requests, or only from some countries | You, your CDN or your host |
Work from the outside in: your CDN first, then firewall rules, then plugins, then your host. Change one thing at a time and test again after each change. That way you know exactly which layer was blocking the bots.
How to test whether your server returns 200 or 403 to AI user agents
The quick way: a free scan
Paste your URL into Website AEO GEO Checker. Its live server test requests your page as a normal browser and as six AI bots: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot & PerplexityBot. It then shows which bots your server let in and which it turned away. We added this test in November 2026, because a robots.txt check alone can't see this problem.
The hands-on way: two commands
If you are comfortable with a terminal, run these two commands. The first asks like a normal visitor. The second asks with GPTBot's name.
curl -I https://yoursite.com/
curl -I -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot" https://yoursite.com/
Read the first line of each reply. "200" means the page was sent, while "403" means the request was refused. When the first command is returned with "200" and the second one with "403", there is some kind of filter that blocks AI bots by name. Also, pay attention to the line "cf-mitigated: challenge".
One big catch: a test is not the real bot
Since anyone can simply type the name of the bot in the request, a good firewall must also examine the source of the request. OpenAI, Perplexity, and Anthropic have published lists of the IP addresses used by their bots. A firewall can treat the real GPTBot differently from your test. So a 403 in your test is a strong clue; your server logs are the proof.
The final proof: your server logs
Ask your host or developer for the access logs. Search them for "GPTBot", "OAI-SearchBot", "PerplexityBot" and "ClaudeBot". Each line shows the reply code. Lots of 403s or 429s next to those names means real AI bots are being turned away.






