Skip to main content
WEBSITE AEO GEO CHECKER

Server Returning 403 to AI Bots Allowed in robots.txt: How to Find & Fix It

By Temi Ajala · 2026-11-30 · 9 min read

Server returning 403 to AI bots allowed in robots.txt: why robots.txt says allow but the server blocks AI crawlers

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.

403 vs 429 vs challenge page: what each reply means

Reply What it means What to do
200 OK The bot got your page. Nothing. All good.
403 Forbidden The server understood the request and refused it. Find the rule that blocks the bot and allow it.
429 Too Many Requests The bot asked too often in a short time. It may come with a "Retry-After" time. Raise the limit for real AI search bots.
Bot check page (often 403 or 503) A CDN wants the visitor to prove it's human. Bots can't. Turn the check off for verified AI search bots.
401 Unauthorized A login is needed. Public pages should never need a login.

How to fix a 403 for AI bots on your platform

Cloudflare

Check your AI crawler settings, Bot Fight Mode and firewall rules. Our step-by-step guide to Cloudflare blocking AI crawlers walks through each one.

WordPress security plugins

Check out your firewall log for the security plugin you use or the live traffic view in the same plugin. Find the name of the bot. If there are blocks, check the rule that causes them; they are mostly rate limits or "block unknown crawlers." Relax this rule for AI search bots. However, don't give access to just anyone who has a bot's name.

Shopify, Wix & Squarespace

These platforms run the server for you, so you cannot edit the firewall yourself. Check your site settings for an option about AI crawlers or bot blocking. If you can't find one, send support your test results. Ask them to confirm that verified AI search bots get a 200 reply.

Vercel & Netlify

Look at the firewall and bot protection settings for your project. A challenge mode that is turned on during an attack can block AI bots too. Turn it off when the attack is over, or add an exception for verified bots.

AWS CloudFront with AWS WAF

Check the WAF logs to see which rule matched the AI bot. Bot control rules often decide this. Add an exception for the AI search bots you want, using their published IP lists.

Suggested Read: Does Adding OAI-SearchBot to robots.txt Hurt Google Rankings?

A 5-minute monthly AI bot access check

Blocks come back. A plugin updates, a host changes its rules, or someone turns on a new security setting. Put this on your calendar once a month:

  1. Run the live server test in our free checker.
  2. Search your logs for 403 and 429 replies next to AI bot names.
  3. Look at your CDN's AI crawler settings
  4. Re-test after any change to your CDN, host or security plugin
  5. Write down the result, so you can spot when something changed.

Server returning 403 to AI bots allowed in robots.txt infographic: the 5 layers that block AI crawlers, what 200, 403 and 429 mean, and how to test your site

AI Visibility checker for small businesses

FAQs about 403 errors and AI bots

Do you test whether the server returns HTTP 200 or 403 to AI user-agents, separate from what robots.txt says?

Yes, our Free Website AEO GEO Checker can do both. The tool parses the robots.txt file for each individual bot and performs a live server test by requesting the same page via a standard web browser and six different AIs, showing what bots got through and what received 403, 429, or bot check pages.

Can a 403 to AI bots hurt my Google rankings?

Not if Googlebot still gets a 200. But a rule that blocks every visitor with "bot" in its name can catch Googlebot too. Check with the URL Inspection tool in Google Search Console. Its live test shows whether Google can fetch your page right now.

Why do I get 200 with curl but AI bots still get blocked?

Your test is from your own computer and not from the bot company's network. Some firewalls also verify the IP address in addition to the name. There are others that only block after many requests or from certain countries. The server logs will tell you what the actual bots saw.

It is less bad, because a 429 means "slow down", not "go away". But if a bot gets 429 every time it visits, it may stop trying, and your pages won't be read. Give AI search bots a higher limit than unknown visitors.

How do I know a visit claiming to be GPTBot is real?

Check the IP address. OpenAI publishes the IP addresses its bots use and so do Perplexity and Anthropic. If the IP isn't on the list, the visit is fake, even if the name says GPTBot. For Google, use a reverse DNS lookup, as Google explains.

About the Author

Temi Ajala, SEO Content Writer

Temi Ajala

SEO Content Writer, Website AEO GEO Checker

Temi writes our comparison pages & guides on AI search. She checks every price & feature on each tool's own website; she also uses real scan data from our free checker.

View full profile & LinkedIn

Every fact about HTTP replies and AI crawlers in this post was checked against OpenAI, Google, MDN, Perplexity, Anthropic and Cloudflare documentation on November 28, 2026.

Related posts

Does adding OAI-SearchBot to robots.txt hurt Google rankings? How Googlebot reads robots.txt groups
2026-11-30Does Adding OAI-SearchBot to robots.txt Hurt Google Rankings?

Does adding OAI-SearchBot to robots.txt hurt Google rankings? No, Googlebot ignores other bots' rules. See the 4 robots.txt edits that really can hurt you.

Is Cloudflare blocking AI crawlers? Check the Search, Agent and Training settings in Cloudflare
2026-11-28Cloudflare Blocking AI Crawlers: How to Check Your Site & Fix It

Is Cloudflare blocking AI crawlers like GPTBot and PerplexityBot on your site? How to check your settings & how to allow AI search.

How to fix wrong information ChatGPT and AI search say about your business: 9 steps to correct AI answers
2026-11-14How to Fix Wrong Information ChatGPT and AI Search Say About Your Business

AI tools get business facts wrong more often than you think. Find out what they say about you and fix wrong prices, hours and details in 9 clear steps.

Entity SEO for AI search: how to make ChatGPT and Google understand your brand, with 8 steps and a before-and-after example
2026-11-13Entity SEO for AI Search: How to Make ChatGPT and Google Understand Your Brand

What entity SEO means, why AI engines think in entities, a real before-and-after example, and 8 steps to make ChatGPT and Google understand your brand.