OmniscioGuidesUnable to fetch from a host
Claude Code is unable to fetch from a host, and the site never saw the request
WebFetch is the tool Claude uses to read a web page, and when a site it was asked for comes back with Claude Code is unable to fetch from <host>. That sentence is not a network failure and not the site refusing anyone: it is a decision made before the request was sent, by a check Anthropic runs on the hostname alone.
Checked against Anthropic's Claude Code documentation on November 25, 2026. By the Omniscio team. Updated .
What is the exact message?
Anthropic's error reference gives it with example.com standing in for the host:
Claude Code is unable to fetch from example.comThe real line carries the hostname Claude asked for, such as Claude Code is unable to fetch from web.archive.org. The refusal arrives as the answer to Claude's fetch rather than as the turn stopping.
What does it mean?
Before WebFetch requests a page, it sends the URL's hostname to api.anthropic.com so the name can be checked against Anthropic's domain safety blocklist. This message is that check answering that the hostname cannot be fetched.
The request never happened. Anthropic is explicit that Claude Code did not contact the host, because the check runs before the request is made. A site's own logs show nothing, which is why a page that loads fine in your browser can still look unreachable here.
What the check actually sends
- The hostname only, not the full URL, the path, or the page contents.
- It runs whichever model provider you use, and
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICdoes not affect it; the check has its own switch. - A hostname that passes is cached for five minutes. A blocked or failed one is checked again on the next request, so a refusal is not sticky.
Why a site gets on the list
Anthropic maintains the list the check consults, and the check is the only party to this decision: nothing on your machine, your network or the site's server took part. Anthropic does not publish the list or its criteria in the Claude Code documentation, so there is no setting that names one domain as a mistake. What there is instead is the switch below, which turns the check off for every domain, and the permission rules that limit where Claude can then go.
People who believe a site is on the list wrongly report it as a bug on Anthropic's issue tracker, where the reports name the domains refused and point at the check as the cause.
How do I fix it?
Three answers, in the order most people want them. The first needs no setting at all.
1. Read the page another way
WebFetch is one tool among several, and the hostname check belongs to it. Claude can run curl through the Bash tool instead, which your Bash permission rules govern, or work from content you paste into the conversation.
A fetch that has to succeed without you watching is better served by pasting the page in than by a retry. If you would rather Claude try the other tool, say so in those words: "fetch that page with curl through Bash instead of WebFetch".
2. Turn the check off for a refusal you believe is wrong
Anthropic documents one switch for the check, skipWebFetchPreflight. With it on, WebFetch attempts any URL without consulting the blocklist, and Anthropic's own guidance is to combine it with WebFetch permission rules that name the domains you allow. Both keys go in the same settings file, in one object:
{
"skipWebFetchPreflight": true,
"permissions": {
"allow": ["WebFetch(domain:example.com)"]
}
}Replace example.com with the domain you need, and add one rule per domain.
The switch is not per host. Once it is on, every hostname WebFetch is asked for goes unchecked, which is why Anthropic pairs it with permission rules that name what Claude may fetch. In ~/.claude/settings.json it covers every project on the machine; in a project's .claude/settings.json it covers only that repository.
3. Check it is not the other message
A check that cannot complete produces a different line: it names the domain and says the safety check was rate-limited, or that it could not verify the domain is safe, because the check request failed or timed out or your network blocks api.anthropic.com or claude.ai. That one is fixed by allowing those hosts or by the same skipWebFetchPreflight switch, and it is not a decision about the site.
A refusal that names one hostname and leaves the rest of the web working is the blocklist, not your network. If every fetch fails, read the guide to Claude Code behind a corporate proxy instead.
How do I know it is fixed?
- The next fetch of that hostname returns page content instead of the message. A blocked hostname is re-checked on each request, so no restart is needed between attempts.
- With
skipWebFetchPreflighton, the message can no longer appear for any host, so a refusal after that means a different rule stopped the fetch, most likely a WebFetch denial or an ask that nobody answered. - A fetch of a different hostname should return page content. If it comes back with this same message, that host is on the list too. If it comes back with the unable-to-verify wording instead, the fault is the network path to
api.anthropic.com, and the corporate proxy guide is the right page.
Where these answers come from
- Anthropic's error reference, Claude Code is unable to fetch from a host, read November 25, 2026: the message, the check behind it, and that the host was never contacted.
- Anthropic's data usage page, WebFetch domain safety check, read the same day: what is sent, the five-minute cache, the re-check of a blocked hostname, that it runs on every provider, and that
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFICdoes not affect it. - Anthropic's settings reference, skipWebFetchPreflight, read the same day: the setting, its scope, and the permission-rule pairing.
- Anthropic's error reference, WebFetch domain safety check failed, read the same day: the rate-limited and unable-to-verify wordings that this message is not.
- Anthropic's error reference, WebFetch cannot fetch localhost, read the same day: the separate refusal for hostnames with no dot.
- Anthropic's Claude Code issue tracker, read the same day, for the reports that quote this message with the sites that produced it.
Common questions
What does "Claude Code is unable to fetch from example.com" mean?
It means WebFetch asked Anthropic's domain safety check whether that hostname may be fetched, and the check answered no. Claude Code then stopped without contacting the site, so nothing was sent to the address you asked for. The word after "from" is the hostname, so the same message appears with any site's name in it.
Did the website see my request?
No. Anthropic's error reference says Claude Code didn't contact the host, because the check runs before the request. Only the hostname goes to api.anthropic.com, not the full URL, the path or the page contents, and the site itself is never part of the check.
How do I get around the check for a site it refuses wrongly?
Set skipWebFetchPreflight to true in your settings file. Anthropic documents that this makes WebFetch attempt any URL without consulting the blocklist, so pair it with WebFetch permission rules that list the domains you allow. It applies to every hostname once it is on, in whichever settings file holds it: your user settings cover all your projects, a project's settings cover only that repository.
Does the check run when I use Bedrock, Google Cloud, Foundry or Claude Platform on AWS?
Yes. Anthropic says the check runs regardless of which model provider you use, and CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC does not turn it off. Its own opt-out is skipWebFetchPreflight in settings.
Is a blocked hostname cached?
No. Claude Code caches a hostname that passes the check for five minutes, and re-checks a blocked or failed hostname on the next request. That is why a site the check refused once can work later without a restart.
Is this the same as the WebFetch safety check failing?
No. This message is the check answering that the hostname can't be fetched. A check that could not complete, because it was rate-limited or because the request failed, timed out, or was blocked by your network, produces a different message that names the domain and says the check itself failed. That one is a network or rate-limit problem, not a decision about the site.