⌨️CLAUDE_CODE_DISABLE_WEB_FETCH
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
Example code
bash
export CLAUDE_CODE_DISABLE_WEB_FETCH=1
claudeCommon mistake
Key takeaways
- 1WebFetch off. No page reads.
- 2Search stays. Its own tool.
- 3From 2.1.285. Version.