AI crawler blocked? Fixing 403, 404 and 405 errors for GPTBot, ClaudeBot and PerplexityBot
Last updated
The short answer
To fix a 403 or 405 error for an AI crawler, find out what is refusing it (your CDN's bot settings, a security plugin, your host's firewall, or a server rule that rejects some request types) and allow the crawlers you want by their verified identity. For a 405, first test a normal request and a quick "HEAD" request separately: if only HEAD fails, the fix is one server setting (step by step below).
A 403 Forbidden means the server refused the request; a 405 Method Not Allowed means it doesn't accept that kind of request for the page. When an AI crawler such as GPTBot, ClaudeBot or PerplexityBot gets one but an ordinary browser gets the same page, something in front of your site is usually refusing the crawler: a CDN's bot protection (such as Cloudflare), a security plugin, or your host's firewall. It is not caused by robots.txt. Decide which crawlers you want in (the ones that power AI answers matter most), check your server or CDN logs to confirm the block is real rather than a test being refused, then allow those crawlers by their verified identity.
What 403, 405, 429 and a bot check mean
- 403 Forbidden: the server understood the request and refused it (MDN). When a crawler gets 403 but a browser gets the page, it usually means a rule that blocks bots, a country, or an address range; your logs show which.
- 405 Method Not Allowed: strictly, the server doesn't accept the kind of request sent, for example a
HEADrequest where onlyGETis allowed (MDN). In practice some firewalls and hosts also answer blocked bots with 405. If an ordinary page answers 405 to a crawler's normalGETbut loads in a browser, it is most likely a block; check your logs before changing any settings. - 429 Too Many Requests: a rate limit. The crawler asked for pages faster than your settings allow.
- A bot-check page ("Checking your browser…", a CAPTCHA) with a 200 or 403 code: a crawler can't solve it, so to the crawler your site is empty.
Which crawlers to let in
AI companies run separate crawlers for separate jobs. The ones that matter for being found in answers:
| Company | For AI answers and search | When a user asks about a page | For model training |
|---|---|---|---|
| OpenAI | OAI-SearchBot | ChatGPT-User | GPTBot |
| Anthropic | Claude-SearchBot | Claude-User | ClaudeBot |
| Perplexity | PerplexityBot | Perplexity-User | None listed |
Let the answer and user crawlers in if you want to be read and cited. The training crawlers are your choice: OpenAI and Anthropic control training separately from search, so blocking GPTBot or ClaudeBot doesn't keep you out of their answers.
Real block or false alarm?
Anyone can send a request that claims to be GPTBot by copying its user-agent text. Good bot protection checks where the request really comes from and refuses fakes. So a test from your own computer, or from a checker, that only copies a crawler's name can be refused while the real crawler gets in. Before changing anything:
- Look for the real crawler's visits in your CDN's security or analytics log, or your host's access log. Search for the crawler's name and note the response code it got.
- Compare the visiting address with the crawler's published IP addresses. OpenAI lists them for each crawler (for example
openai.com/searchbot.jsonandopenai.com/gptbot.json), and Perplexity lists its own on its crawlers page. - If real visits from those addresses get 403, 405, 429 or a bot-check page, the block is real.
Where the block usually comes from
- Your CDN's bot settings. Cloudflare, for example, has AI Crawler and Agent access policies. For Search, Agent and Training traffic you choose Allow, Block, or Block on pages with ads (Cloudflare). A new domain starts with all three set to Allow. An existing domain keeps whatever was chosen before, so look at yours. Broader bot-fighting, firewall and rate-limiting rules can catch AI crawlers too.
- A security plugin (common on WordPress) with a "bad bots" list, country blocking or strict rate limits.
- Your host's firewall: server-level security that blocks unfamiliar bots, often without telling you.
- Rules that reject request types, such as a server set to refuse
HEADrequests, which produces 405s.
How to fix it
- Cloudflare: go to Security, then Settings, filter by Bot traffic and open AI Crawler and Agent access policies. Set Search and Agent to Allow (do not block). Training is your choice. Then check Security Events for any other rule still blocking them, and exempt verified bots from bot-fighting and rate-limiting rules rather than turning protection off.
- Security plugin: open its log of blocked requests, find the AI crawler, and allow it. Prefer an option that verifies the crawler or its IP addresses over allowing a user-agent name on its own.
- Host firewall: ask your host's support to allow the named crawlers, and send them the links to the published IP lists above.
- 405 on ordinary pages: make sure your pages accept
GETandHEADrequests, and that no rule answers bots with 405. Fixing a 405, step by step. - Robots.txt too: while you are there, make sure it doesn't disallow the same crawlers. See the robots.txt guide and why AI assistants can't see your site.
Then run the AI crawler checker again and watch your logs for the crawler's next visits getting a 200.
Fixing a 405 error, step by step
A 405 has two possible causes, and a simple test tells them apart. Some crawlers, link checkers and link previews first check a page with a HEAD request (the page's headers without its content), then fetch it with a normal GET. Web servers accept both by default, so a 405 means a setting or rule was added along the way.
1. Test it. Run these from a terminal (on Windows, type curl.exe instead of curl). Each line prints only the status code:
# 1. A normal request (GET) with an AI crawler's name: prints the status code
curl -s -o /dev/null -w "%{http_code}\n" -A "OAI-SearchBot" https://yoursite.com/
# 2. The quick check (HEAD) with the same name
curl -s -I -o /dev/null -w "%{http_code}\n" -A "OAI-SearchBot" https://yoursite.com/
# 3. The same two without a crawler's name, to compare
curl -s -o /dev/null -w "%{http_code}\n" https://yoursite.com/
curl -s -I -o /dev/null -w "%{http_code}\n" https://yoursite.com/2. Read the result.
| What you see | What it means | Where to fix it |
|---|---|---|
| GET 200, HEAD 405, with or without the crawler's name | Your server refuses HEAD requests for everyone. | A server setting: see step 3. |
| 200 without the crawler's name, 405 with it | A rule answers bots with 405. | Your CDN, security plugin or host firewall: see How to fix it. |
| 405 on GET for everyone, on that address only | The address isn't a page (a form handler, say) and only accepts form submissions. | Nothing to fix on the server; make sure your links and sitemap point to real pages. |
A test that copies a crawler's name can be refused where the real crawler is let in (see real block or false alarm), so confirm in your logs before changing settings.
3. Let HEAD through. Find the rule that refuses it and add HEAD next to GET:
- Nginx (
limit_except GETalready allows HEAD; a hand-written method check may not):# Look for a rule like this, which answers HEAD with 405… if ($request_method !~ ^(GET|POST)$) { return 405; } # …and add HEAD to it: if ($request_method !~ ^(GET|HEAD|POST)$) { return 405; } - Apache (a method rule in
.htaccess):# In .htaccess, look for a method rule like this… RewriteCond %{REQUEST_METHOD} !^(GET|POST)$ RewriteRule .* - [R=405,L] # …and add HEAD to it: RewriteCond %{REQUEST_METHOD} !^(GET|HEAD|POST)$ - IIS / Windows hosting (request filtering in
web.config):<!-- web.config, inside <requestFiltering>: --> <verbs allowUnlisted="false"> <add verb="GET" allowed="true" /> <add verb="HEAD" allowed="true" /> <!-- add --> <add verb="POST" allowed="true" /> </verbs> - Cloudflare: open Security › Events, filter by the crawler's name, and see which rule answered. A custom rule that checks the request method needs
HEADallowed; for bot rules, add a rule that skips the others for verified bots rather than turning protection off. - WordPress: security and caching plugins can reject request types. Look in the plugin's log of blocked requests for the crawler, and allow it there. For a general check of your site, our plugin runs the free FocalScore scan from your dashboard, and how to audit a WordPress website goes through the dashboard checks.
- Wix, Squarespace, Shopify and other hosted builders: you can't change server rules yourself. Send the platform's support the test results above.
4. Check again. Re-run the test, then the free AI crawler checker, and watch your logs for the crawler's next visits getting a 200.
404 errors for AI crawlers
A 404 Not Found means the address doesn't exist (MDN). Seeing some in your logs for AI crawlers is normal. What matters is which addresses they are:
- Pages you renamed or removed. Crawlers follow old links from other sites and from their own earlier visits. Point each moved page to its new address with a permanent (301) redirect; let pages that are gone for good show a real 404. See broken links and one address for each page.
- Optional files such as
/llms.txt. A 404 there only means you don't have one; it doesn't block anything. See llms.txt explained. - Pages that work for visitors but 404 for a crawler. This is the one to fix. It happens when a site builds its pages in the browser and the server only knows the homepage, so a direct request for
/servicesor/pricinggets a 404 before any JavaScript runs. It also happens when a redirect by country or language sends the crawler to an address that doesn't exist. Set the server to answer every real page address directly, and test it as shown below. - Addresses in your sitemap that 404. Remove them, or redirect them. A sitemap should list only pages that load. See the sitemap guide.
Can AI crawlers read your pricing and service pages?
Being let in is half of it. A crawler also has to find your words in what your server sends. That matters most on the pages where people decide: pricing, services, booking, contact, and reviews. Check those pages, not just the homepage:
- View the page source (Ctrl+U in most browsers, or right-click › View page source) and search for your prices, service names and phone number. If they are on screen but not in the source, they appear only after JavaScript runs, and a crawler that doesn't run JavaScript won't see them. Google renders JavaScript (Google Search Central); don't assume every AI crawler does.
- Request the page as a crawler from a terminal. The first line prints the status code (you want 200); the second shows whether your text is in what the crawler receives:
# What does an AI crawler get from your pricing page? (status code, then the first text)
curl -s -o /dev/null -w "%{http_code}\n" -A "OAI-SearchBot" https://yoursite.com/pricing
curl -s -A "OAI-SearchBot" https://yoursite.com/pricing | grep -i "your price or service name"A test like this only copies the crawler's name, so bot protection may refuse it while the real crawler gets in; see real block or false alarm. If the page answers 200 and your text is there, that page is readable.
- Run the free tools. The AI crawler checker requests your page as each AI crawler. The free scan compares how your key pages answer an AI crawler and a browser, and checks how much of your homepage text is in the HTML your server sends.
If the text is missing, ask your developer or platform about server-side rendering or pre-rendering, so the words are in the page your server sends. See why AI assistants can't see your website for the other causes.
Checklist
- You have decided which AI crawlers to allow; at least OAI-SearchBot, Claude-SearchBot and PerplexityBot for answers.
- Real visits from those crawlers (from their published addresses) get a 200, not 403, 405, 429 or a bot check.
- Your CDN's AI bot policy allows them.
- Security plugins and host firewall allow them by verified identity, not by name alone.
- Pages accept GET and HEAD requests.
- robots.txt doesn't disallow them either.
- Moved pages redirect to their new address; nothing in your sitemap answers 404.
- Your pricing, service and contact pages answer 200 when requested directly, not only from the homepage.
- Prices, service names and contact details are in the page source, not added later by JavaScript.
Questions people ask
- What does a 405 error mean for GPTBot or ClaudeBot?
- Your server, or something in front of it, refused the crawler's request with "405 Method Not Allowed". Either the server doesn't accept that type of request (often a HEAD request, a quick check without the page's body), or a firewall or security plugin answers bots with 405 instead of 403. Either way the crawler gets nothing from that page.
- Does a 405 error stop ChatGPT from citing my website?
- It can. If the crawlers that feed AI answers (OAI-SearchBot for ChatGPT search, Claude-SearchBot, PerplexityBot) get a 405 instead of your page, they can't read it, so the assistant has nothing from that page to quote or recommend. A 405 for the training crawlers (GPTBot, ClaudeBot) doesn't affect answers.
- Why do crawlers send HEAD requests?
- A HEAD request asks for a page's headers without its content: a cheap way to check whether a page exists or has changed before fetching it. Crawlers, link checkers and link previews use it. Web servers allow HEAD by default, so a 405 on HEAD usually means a setting or rule added later.
- Is a 405 error worse than a 403?
- For a crawler, the result is the same: no page. The difference is the cause. A 403 is almost always a block on who is asking; a 405 is either a block or a server that refuses a type of request, which you can tell apart by testing a normal request and a HEAD request, as shown on this page.
- Can robots.txt cause a 403 error?
- No. robots.txt is a request that well-behaved crawlers follow; a crawler that obeys it simply doesn't ask for the page. A 403 or 405 is your server, host or firewall actively refusing a request.
- Should I let GPTBot and ClaudeBot in?
- That is a business choice. They collect pages that may be used to train AI models. Blocking them doesn't stop ChatGPT or Claude citing you in answers, because OpenAI and Anthropic use separate crawlers (OAI-SearchBot and Claude-SearchBot) for that.
- Is it safe to allow AI crawlers through my firewall?
- Yes, if you allow the real ones. Allow verified bots or the crawler's published IP addresses rather than anything that claims the name, since anyone can copy a crawler's user-agent text.
- Why does a checker say I'm blocked when the real crawler isn't?
- Good bot protection refuses requests that claim to be a crawler but come from the wrong address. A test that only copies the crawler's name can be refused when the real crawler is let in. Check your server or CDN logs for the real crawler's visits.
- Why do AI crawlers get 404 errors on my site?
- Usually because they ask for addresses that no longer exist: pages that were renamed or removed, old links from other sites, or optional files such as llms.txt. A 404 on a page that loads fine for visitors is different: it means your server answers bots, or requests without JavaScript, differently, and that needs fixing.
- How can I check whether AI bots can read my pricing and service pages?
- Open the page, view its source (Ctrl+U in most browsers) and search for your prices and service names. If they aren't in the source, a crawler that doesn't run JavaScript won't see them. Then request the page with an AI crawler's name, or run the free AI crawler checker, and check it answers 200 with the same text.
- How do I know the fix worked?
- Run the AI crawler checker again, and look in your CDN or server logs for later visits from the crawler that now get a 200 response.
What the free scan checks for this
These are the FocalScore checks that cover this guide's subject. Each one in your report says what it found, shows the evidence and gives the fix.
- Bot protection isn't blocking AI answers
- AI crawlers allowed
- AI crawlers reach your inner pages
- Your firewall and robots.txt agree on AI training crawlers
- Content readable without JS
Sources
Last checked . Documentation, settings and rules change; if one of these pages now says something different, it is right and this guide is out of date. Tell us at info@focalscore.com.
- OpenAI: Overview of OpenAI crawlers
- Anthropic: Does Anthropic crawl data from the web, and how can site owners block the crawler?
- Perplexity: Perplexity crawlers
- Cloudflare: AI Crawler and Agent access policies
- MDN: 403 Forbidden
- MDN: 405 Method Not Allowed
- MDN: 404 Not Found
- Google Search Central: Understand the JavaScript SEO basics
More guides
- How to get your business recommended by ChatGPT and other AI assistants
- Why can't ChatGPT see my website? 5 reasons and how to fix them
- robots.txt for small businesses: what to allow, what to block
- What is IndexNow, and why does it matter for your website?
- The pages every small-business website needs
- How to turn more website visitors into enquiries
- Why your site is slow, and what to fix first
- How your business shows up in Google: titles, descriptions and headings
- One address for each page: www, https, canonical tags and redirects
- A sitemap for any site, including one built by hand
- Making your site usable by everyone
- Making your site work on a phone
- Security headers for a small business website: what to set, by platform
- Stop people sending email as your business: SPF, DKIM and DMARC
- Cookies and consent: what your site sets and when you need a banner
- How your links look when people share them
- Getting your business details right for Google Maps and AI assistants
- What is GEO (generative engine optimization)? A plain-English guide
- llms.txt: what it is, and does your business need one?
- How to see if ChatGPT visits your website
- GEO vs SEO: what's the difference for a small business?
- AI SEO for small businesses: where to start
- Answer engine optimization (AEO), explained
- SPF record: what it is and how to set one up
- DMARC record: what it is and how to set one up
- DKIM record: what it is and how to set it up
- Why do my emails go to spam? How to check SPF, DKIM and DMARC
- Content Security Policy (CSP) for a small business website
- Website caching and CDNs: what they are and do you need one?
- security.txt: what it is and how to add one to your site
- What is DNSSEC, and should you turn it on?
- CAA record: what it is and how to set one up
- Largest Contentful Paint (LCP): why your page feels slow and how to fix it
- Local business schema: structured data for a small business, with a template
- Accessibility statement: what to write, with a template
- Trust badges and testimonials that help a website win customers
- Why isn't my website showing up on Google? How to get it there
- Google Business Profile: a checklist to make it match your website
- Custom 404 page: what a good one does, and the soft 404 trap
- Meta description length: how long should it be?
- Image alt text: what to write, with examples
- Broken links: how to find and fix them on your website
- Website audit checklist: a free check-up for a small business site
- Why does my website say 'Not secure'? How to fix it
- Is my website ADA compliant? An accessibility checklist for US small businesses
- Has my website been hacked? How to check, and what to do next
- Core Web Vitals explained: LCP, INP and CLS in plain English
- Interaction to Next Paint (INP): why your site feels slow to tap, and how to fix it
- Cumulative Layout Shift (CLS): why your page jumps while it loads, and how to stop it
- What should a small business privacy policy include? A checklist
- Contact form emails not arriving? Find where enquiries get lost
- Website monitoring: catch downtime, broken enquiries and expired certificates
- Moving or redesigning your website: a checklist so nothing gets lost
- How to audit a WordPress website: a checklist for owners
- Why isn't my business showing up on Google Maps?
- Does ChatGPT recommend your business? How to check, and how to fix what it gets wrong
- Why isn't my website getting customers? A three-question diagnosis
- How to get more Google reviews without breaking Google's rules
- Google Search Console for a small business: set it up and read the three reports that matter
- Who owns your domain and website? How to check, and how to get them back
- How to show up in Google AI Overviews and AI Mode: what Google's own guide asks for
- What is a good PageSpeed score? What the number means for a small business site
- How much should a small business website cost, and what to check before you pay the final invoice
- Is my website down, or is it just me? What to check, in order
- Is my SEO company actually doing anything? How to check, and how to spot a scam email
- Should I redesign my website or just fix it?
- Does your website still need an FAQ page now that Google's FAQ rich results are gone?