Skip to content
BENIBIX Learn

CLAUDE_CODE_DISABLE_WEB_FETCH

AI⌨️ Claude CodeConfiguration

Also known as CLAUDE_CODE_DISABLE_WEB_FETCH=1

Set to 1, it turns off WebFetch. Web search still works.

Think of it like

It is like a helper may look up a book's name. They may not borrow the book.

Example

Emma worries that a web page could carry hidden orders for Claude. She turns fetching off, but keeps search for quick facts.

Why it matters

Reading a web page brings in text no one checked. Some teams want less of that.

Definition

CLAUDE_CODE_DISABLE_WEB_FETCH set to 1 turns off the WebFetch tool. Claude can no longer open a web page and read it. Web search still works. It needs version 2.1.285 or later.

Example code

bash
export CLAUDE_CODE_DISABLE_WEB_FETCH=1
claude
Search the web, but open no pages.

Common mistake

Expecting it to stop web search too. Search is a separate tool.

Key takeaways

  1. 1
    WebFetch off. No page reads.
  2. 2
    Search stays. Its own tool.
  3. 3
    From 2.1.285. Version.