Omniscio

OmniscioGuidesWebFetch domain safety check

Claude Code: unable to verify if domain example.com is safe to fetch

Three wordings, one cause: WebFetch asks Anthropic's domain safety check about a hostname before it fetches anything, and that check did not answer yes. This is not the WebFetch permission prompt and not a model error.

Last checked against Anthropic's documentation on November 25, 2026. By the Omniscio team. Updated .

What is the exact message?

The safety check for domain example.com is rate-limited (too many domain checks from this network; the limit is shared and can stay exhausted for minutes). Do not retry WebFetch in a loop or sleep to wait it out; continue without this page and report that its safety check was rate-limited. A single later attempt is fine; if that is rate-limited too, stop.
Unable to verify if domain example.com is safe to fetch. This may be due to network restrictions or enterprise security policies blocking claude.ai.

A third wording appears when the check answers that the hostname cannot be fetched at all: Claude Code is unable to fetch from example.com. Anthropic's error reference gives it its own entry beside this one, because it is the same check answering. If the hostname is one you need, there is nothing on your side to allowlist: the check answered no, and the settings below are the only way past it.

Reading an older log? Before v2.1.286 the rate-limited line read The safety check for domain example.com is temporarily rate-limited (too many domain checks from this network). Retry after about a minute; retrying sooner will fail the same way., and before v2.1.285 a rate-limited check was reported with the Unable to verify message instead.

Why did WebFetch stop before it fetched anything?

Before fetching a URL, WebFetch sends the hostname to api.anthropic.com to check it against a safety blocklist Anthropic maintains. Anthropic's data usage page says only the hostname is sent: not the full URL, the path, or the page contents. When the check cannot answer yes, WebFetch does not fetch the page.

That is why the failure reads like a network problem rather than a permissions problem. Claude Code never contacted the site, so nothing on the site can have refused you.

The check runs regardless of which model provider you use. Anthropic says CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC does not affect it either; the marketplace auto-install is the only other documented exception to that variable.

Which message is which

  • Rate-limited means the check endpoint answered HTTP 429. Anthropic says the limit is shared across a network and the answer can stay like that for minutes. HTTP 429 is the status code for "too many requests".
  • Unable to verify means the check request failed, timed out, or came back with another error status.
  • Unable to fetch from means the check answered that this hostname is one it will not approve.

The check was rate-limited

Nothing on your machine is misconfigured. The endpoint that answers domain checks took too many requests from this network, and Anthropic documents the counter as shared rather than per user, which is why an office, a shared VPN exit or a CI box can exhaust it while you have made no requests at all.

The message is also an instruction to Claude, and the instruction is to stop: continue without the page, report that the check was rate-limited, and make at most one later attempt. A loop of retries keeps the counter busy and does not fetch anything.

Claude Code does not cache a failed check, so a later fetch of the same domain runs the check again from scratch. That is what makes a single later attempt worth making.

How do I fix it

  1. Send the same request again after a few minutes. One attempt, not a loop.
  2. If this happens most days on your network, give Claude the page a different way, a saved copy or another tool you already run, rather than retrying WebFetch.
  3. On a network where many people or jobs share one exit, consider skipWebFetchPreflight below. Anthropic documents it as the opt-out for exactly this check.

The check could not reach Anthropic

The second message names its own likely causes: network restrictions, or an enterprise security policy. The check calls api.anthropic.com, so a proxy, VPN, DNS filter or firewall that blocks that host stops WebFetch before any page is requested, while the rest of the internet keeps working.

The message names claude.ai, while Anthropic's data usage page says the check sends the hostname to api.anthropic.com. Allowlist both hosts: one is what your message was produced against, the other is where Anthropic documents the check going today.

How do I fix it

  1. curl is the command-line web fetcher most systems ship, and -I asks it for the response headers only. Run it in the same shell you start Claude Code from: curl -I https://api.anthropic.com. A failure here is the same failure, and it is the network's.
  2. Ask whoever runs the proxy or firewall to allow HTTPS to api.anthropic.com.
  3. Try one page from a different network, such as a phone hotspot. If WebFetch works there, the block is on your network and the allowlist is the fix.
  4. If the host is allowed and the message stays, set skipWebFetchPreflight and move on; the section below covers what it changes.

This is the same family as the other failures where a request never leaves the machine. WebFetch cannot fetch localhost covers the hostnames WebFetch refuses by design, and the data usage guide covers what Claude Code sends and when.

Should I turn the check off?

Sometimes, and only knowingly. Anthropic documents one setting for it: skipWebFetchPreflight, a boolean in your settings file. With it on, WebFetch attempts any URL without consulting the blocklist.

{
  "skipWebFetchPreflight": true
}

Put that in ~/.claude/settings.json for every project on the machine, or in a project's .claude/settings.local.json to limit it to that one folder. Anthropic's settings reference entry gives its scope (any settings file) and its default (unset, so the check runs).

Anthropic's own guidance is to pair it with a WebFetch permission rule that names the domains you allow, because turning the check off removes the boundary the check provided. A rule such as a domain-scoped allow keeps Claude inside the sites you meant, and the permission modes guide explains how those rules combine with the rest of your settings.

  • Do it when your network cannot reach the check at all and allowlisting is not yours to decide.
  • Do not do it to clear a rate limit you hit once. That limit passes on its own and the check is doing work you asked for.
  • Never treat it as a fix for a page the check answered no to. That answer was the blocklist doing its job.

How do I know it is fixed?

  • Ask Claude to fetch the same URL again, and the tool result carries page content instead of the safety-check message.
  • curl -I https://api.anthropic.com answers from the same shell, which confirms the host is reachable now.
  • The next fetch of that domain goes straight through for five minutes, because Claude Code caches a hostname that passed the check.

A page that still refuses after all three is no longer this error: read the tool result's own words and match them to the entry on the error messages page.

Where these answers come from

  • Anthropic's error reference, read November 25, 2026: both messages, the HTTP 429 cause, the retry instruction, the failed-check caching rule and the version notes.
  • Anthropic's data usage page, read November 25, 2026: the hostname-only payload, the five-minute cache, the provider independence and skipWebFetchPreflight.
  • Anthropic's permissions page, read November 25, 2026: the WebFetch permission rules that can bound a fetch once the check is off.
  • anthropics/claude-code issue 6388, opened in August 2025 and still open: the "unable to verify domain is safe" report, so the message is one real users meet rather than a documentation-only case.

Common questions

Was the page fetched before the check failed?

No. WebFetch sends the hostname to the check before it requests the page, so a failed or rate-limited check means Claude Code never contacted the host. Nothing on the target site saw the request.

What exactly is sent to Anthropic?

The hostname only. Anthropic's data usage page says the check sends the requested hostname to api.anthropic.com to compare it against a safety blocklist, and that the full URL, the path and the page contents are not sent.

Does a rate-limited check mean I am over a Claude Code usage limit?

No. It is the domain check endpoint answering HTTP 429, not your model usage. Anthropic says the limit is shared across a network and can stay exhausted for minutes, so a busy office or VPN exit can hit it while your own usage is untouched.

Does CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC turn the check off?

No. Anthropic says CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC does not affect the WebFetch check, and the official plugin marketplace auto-install is the other documented exception. Its own opt-out is skipWebFetchPreflight in settings.

What should I check first when the message says it could not verify?

Whether this network can reach api.anthropic.com. The message names network restrictions and enterprise security policies, so a proxy, VPN or firewall that blocks that host produces it while ordinary browsing still works. Allowlist the host, then try the same URL again.