Skip to content

Commit dac7650

Browse files
committed
docs: correct local address fetching and document ENABLE_LOCAL_WEB_FETCH for links and web search
1 parent 284d2e5 commit dac7650

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

‎docs/features/workspace/knowledge.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Knowledge bases, notes and single files can be attached to a chat, to a [folder]
4848
**In a chat:**
4949

5050
- Type `#` in the message input. The list offers **Folders**, **Knowledge** (knowledge bases) and **Files** (single files from knowledge bases), and accepts a web or YouTube URL.
51-
- Or click **+** (**More**) and open **Attachments**. **Attach Knowledge** lists your knowledge bases, with **Show Files** to pick single files from one. **Attach Notes** lists your notes. The same menu has **Attach Webpage**, **Attach Files** (files you uploaded before) and **Reference Chats**.
51+
- Or click **+** (**More**) and open **Attachments**. **Attach Knowledge** lists your knowledge bases, with **Show Files** to pick single files from one. **Attach Notes** lists your notes. The same menu has **Attach Webpage**, **Attach Files** (files you uploaded before) and **Reference Chats**. **Attach Webpage** refuses private and loopback addresses unless [`ENABLE_LOCAL_WEB_FETCH`](/reference/env-configuration#enable_local_web_fetch) is on; see [Attaching a Link Fails](/troubleshooting/rag#14-attaching-a-link-or-a-youtube-video-fails).
5252
- Or drag a note, folder or chat from the sidebar into the message input.
5353

5454
**On a model or a folder:** open the **Knowledge** field, in the model editor (**Workspace > Models**, or **Settings > Models > Edit** (admin section)) or in the folder's **Edit** dialog under **Advanced**. Its search lists **Notes**, **Knowledge** (knowledge bases) and **Files** (single files from knowledge bases), and **Upload Files** adds a file straight from your computer.

‎docs/reference/env-configuration.mdx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5147,10 +5147,10 @@ Strictly return in JSON format:
51475147

51485148
- Type: `bool`
51495149
- Default: `False`
5150-
- Description: Deprecated alias of [`ENABLE_LOCAL_WEB_FETCH`](#enable_local_web_fetch), still honored when the new name is unset. Controls whether outbound fetches can access URLs that resolve to private/local network IP addresses. It started as a RAG web-fetch guard, but the same SSRF gate now also covers other caller-influenced fetch surfaces, including user and automation **webhooks**, retrieval, remote image loading, OAuth profile-picture fetches and skill [**Import from URL**](/features/workspace/skills#importing-from-a-url).
5150+
- Description: Deprecated alias of [`ENABLE_LOCAL_WEB_FETCH`](#enable_local_web_fetch), still honored when the new name is unset. Controls whether outbound fetches can access URLs that resolve to addresses that are not globally routable, such as private, loopback and link-local addresses. It started as a RAG web-fetch guard, but the same SSRF gate now also covers other caller-influenced fetch surfaces, including user and automation **webhooks**, retrieval, remote image loading, OAuth profile-picture fetches and skill [**Import from URL**](/features/workspace/skills#importing-from-a-url).
51515151
- Persistence: Set via environment variable; applied at startup (not a `ConfigVar`).
51525152

5153-
When disabled (default), Open WebUI blocks web fetch requests to URLs that resolve to private IP addresses, including:
5153+
When disabled (default), Open WebUI blocks web fetch requests to URLs that resolve to any address that is not globally routable, and logs `Blocked non-global address:`. This includes the shared address range `100.64.0.0/10`, which Tailscale uses, as well as:
51545154

51555155
- IPv4 private ranges (`10.x.x.x`, `172.16.x.x`-`172.31.x.x`, `192.168.x.x`, `127.x.x.x`)
51565156
- IPv6 private ranges

‎docs/troubleshooting/rag.mdx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,9 @@ For the full explanation of how knowledge scoping and retrieval modes work, see
498498

499499
A webpage or YouTube attachment came back as an error toast. The message names the step that failed: a link that could not be read names the link, a refused YouTube transcript gives the reason, and a message about the knowledge base means the content was read and only saving it failed.
500500

501-
`[ERROR: Could not read content from <url>]` means nothing was attached. The usual causes are a site that blocks the request or serves its content only after JavaScript runs, which [`WEB_LOADER_ENGINE=playwright`](../reference/env-configuration.mdx#web_loader_engine) handles; a proxy Open WebUI is not being told to use, see [`WEB_SEARCH_TRUST_ENV`](../reference/env-configuration.mdx#web_search_trust_env); or an address refused on purpose, since private and loopback addresses, cloud metadata endpoints and anything matched by [`WEB_FETCH_FILTER_LIST`](../reference/env-configuration.mdx#web_fetch_filter_list) are never requested.
501+
`[ERROR: Could not read content from <url>]` means nothing was attached. The usual causes are a site that blocks the request or serves its content only after JavaScript runs, which [`WEB_LOADER_ENGINE=playwright`](../reference/env-configuration.mdx#web_loader_engine) handles; a proxy Open WebUI is not being told to use, see [`WEB_SEARCH_TRUST_ENV`](../reference/env-configuration.mdx#web_search_trust_env); or an address refused on purpose. Cloud metadata endpoints and anything matched by [`WEB_FETCH_FILTER_LIST`](../reference/env-configuration.mdx#web_fetch_filter_list) are never requested, and the log shows `Blocked by filter list:`. Private, loopback, link-local and other addresses that are not globally routable are refused by default, and the log shows `Blocked non-global address:` followed by the address.
502+
503+
To attach pages from your own network, such as an intranet wiki or a service on the same host, set [`ENABLE_LOCAL_WEB_FETCH=True`](../reference/env-configuration.mdx#enable_local_web_fetch) (the older name `ENABLE_RAG_LOCAL_WEB_FETCH` still works) and restart. Every user who can chat can then make the server request internal addresses, so turn it on only when you trust all of them. The filter list and its metadata endpoints stay blocked either way.
502504

503505
A YouTube attachment is the video's transcript, so a video without a usable one cannot be attached at all. Where the message says YouTube blocked the request from your server's address, common for cloud provider ranges, route it through [`YOUTUBE_LOADER_PROXY_URL`](../reference/env-configuration.mdx#youtube_loader_proxy_url). Where a transcript exists but not in the languages asked for, add yours to [`YOUTUBE_LOADER_LANGUAGE`](../reference/env-configuration.mdx#youtube_loader_language). The message then reads `No transcript found for the YouTube video <id> in these languages: <list>.` Set the list in **Youtube Language** under **Settings > Web Search** (admin section) as language codes separated by commas, such as `de,fr`. Leave out spaces in the environment variable, since only the admin field trims them. Open WebUI tries them in order and adds `en` at the end when it is missing, so `de,fr` tries German, French, then English. For each language it takes a manually created transcript over an automatically generated one. Captions switched off by the uploader, age restriction and unavailable videos cannot be worked around.
504506

‎docs/troubleshooting/web-search.mdx‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ If web search returns empty content or poor quality results, the issue is often
7676

7777
- **Set a real User-Agent**: If results from Wikipedia, Cloudflare-protected sites, or other large publishers come back empty (or as 403s in logs), the default Python `requests`/`aiohttp` UA is being filtered by bot detection. Set [`USER_AGENT`](/reference/env-configuration#user_agent) to a real browser-like string (e.g. `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0 Safari/537.36`). This affects web search result fetching, the `fetch_url` tool and web pages attached with `#`, including the check whether a link points to a file such as a PDF.
7878

79+
- **Results on your own network are skipped**: a result URL that resolves to a private, loopback or other non-globally routable address is dropped before fetching, and the log shows `Blocked non-global address:` followed by the address. To search an intranet, set [`ENABLE_LOCAL_WEB_FETCH=True`](/reference/env-configuration#enable_local_web_fetch), which lets every user who can chat reach internal addresses through the server.
80+
7981
- **Compressed responses are refused**: Open WebUI asks for uncompressed pages and files and refuses a compressed answer with `The server answered with a compressed response, which is not accepted.` A host that always sends a file compressed, such as an S3 or MinIO object uploaded with a `Content-Encoding` header, cannot be read. Upload the file again without that header.
8082

8183
For more details on context window issues, see the [RAG Troubleshooting Guide](./rag.mdx).

0 commit comments

Comments
 (0)