"From External URL" feature
To enable the "From External URL" feature the variable
ENABLED_LINKED_FILE_TYPES must include url type:
This will extend both the Add Files menu and the Insert Figure dropdown in the toolbar: the Add Files menu allows you to add a
file to your project using its URL, while the Insert Figure dropdown lets you insert an image into your document directly from its URL.
Security Note
When users add a link to an external file in their projects, the file is fetched on behalf of the server where Overleaf is installed.
If the Overleaf server is hosted inside a private network that also contains internal HTTP servers (intended only for internal use),
a user with access to Overleaf could potentially access data from these internal services.
To prevent this, links to external files must not point to servers whose IP addresses belong to any of the restricted network ranges. These are:
127.0.0.0/8 (loopback)
169.254.0.0/16 (link-local)
10.0.0.0/8 (private network)
172.16.0.0/12 (private network)
192.168.0.0/16 (private network)
In addition, the following environment variable is introduced:
OVERLEAF_LINKED_URL_BLOCKED_NETWORKS
However, in many organizations, servers within the internal network may also host data that should be publicly accessible.
To allow access to specific resources even if the entire network is blocked, the following environment variable is provided:
OVERLEAF_LINKED_URL_ALLOWED_RESOURCES