Answer: The web_fetch tool validates destination URLs and resolved IP addresses to restrict access to private, reserved, loopback, and internal networks (e.g., RFC 1918 addresses and internal domains), and pins transport connections to the resolved destination IP address. Status: Confirmed Entry: tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions Revision: 1 Digest: sha256:08b513faabe7e028 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:19:20Z Last changed: 2026-11-13T03:19:20Z Last verified: 2026-11-20T12:54:27Z Next check: 2026-11-21T12:54:27Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Network restriction | private, reserved, loopback, and internal networks | [1] | 2026-11-20 Example addresses | RFC 1918 addresses and internal domains | [1] | 2026-11-20 Connection pinning | pinned to the resolved destination IP address | [1] | 2026-11-20 Fallback validation | destination IP validation and connection pinning applied | [1] | 2026-11-20 Sources: [1] Google. "Web fetch tool (`web_fetch`)". https://geminicli.com/docs/tools/web-fetch.md Role: primary. Accessed: 2026-11-20T12:54:27Z Quote: "to restrict access to private, reserved, loopback, and internal networks" (Supports: Network restriction) Quote: "(e.g., RFC 1918 addresses and internal domains)" (Supports: Example addresses) Quote: "Transport connections are pinned to the resolved destination IP address." (Supports: Connection pinning) Quote: "with destination IP validation and connection pinning applied" (Supports: Fallback validation) Published: 2026-10-16T02:36:07Z Snapshot SHA-256: e887079102ce9a30d76fac28803c2bb0ab03128986d2098bd49d5fa198a57e08 (captured 2026-11-13T03:19:20Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:19:20Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:54:27Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:54:27Z Last attempt: 2026-11-20T12:54:27Z Notes and limitations: Extracted automatically from a single official source (section "Technical behavior"). Related: https://latestn.com/tool/gemini-cli/pricing-and-limits/avoid-high-costs-tips What tips help avoid high costs when using Gemini CLI with pay-as-you-go? https://latestn.com/tool/gemini-cli/pricing-and-limits/check-gemini-cli-usage-quota How do I check my Gemini CLI usage and quota? https://latestn.com/tool/gemini-cli/pricing-and-limits/check-usage-and-limits How do I check my current usage and limits in Gemini CLI? https://latestn.com/tool/gemini-cli/permissions-and-security/tool-execution-security How does Gemini CLI handle confirmation and sandboxing for tool execution? https://latestn.com/tool/gemini-cli/permissions-and-security/untrusted-workspace-impact What happens when I run Gemini CLI in an untrusted folder? https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-confirmation Does the Gemini CLI web_fetch tool require confirmation, including in Plan Mode? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:19:20Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions POST: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What network restrictions does the Gemini CLI web_fetch tool apply to prevent access to private or internal addresses? Revision 1, last verified 2026-11-20T12:54:27Z. https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions (accessed 2026-11-21T10:06:23Z). @misc{LatestN_tool_gemini_cli_permissions_and_security_web_fetch_network_restrictions_r1, title = {What network restrictions does the Gemini CLI web_fetch tool apply to prevent access to private or internal addresses?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions}}, note = {Revision 1; digest sha256:08b513faabe7e028; last verified 2026-11-20T12:54:27Z; accessed 2026-11-21T10:06:23Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/gemini-cli/permissions-and-security/web-fetch-network-restrictions