> For the complete documentation index, see [llms.txt](https://ayakaleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ayakaleaf-pro.ayaka.space/on-premises/it/configurazione/overleaf-toolkit/external-url.md).

# URL esterno

### funzionalità "Da URL esterno"

Per abilitare la ["Da URL esterno"](https://www.overleaf.com/learn/how-to/How_to_upload_a_file_using_an_external_URL) la variabile della funzionalità `ENABLED_LINKED_FILE_TYPES` deve includere `url` tipo:

```
ENABLED_LINKED_FILE_TYPES=project_file,project_output_file,url
```

Ciò estenderà sia il *Aggiungi file* menu e il *Inserisci figura* menu a discesa nella barra degli strumenti: il *Aggiungi file* menu consente di aggiungere un file al progetto utilizzando il suo URL, mentre il *Inserisci figura* menu a discesa consente di inserire un'immagine nel documento direttamente dal suo URL.

#### Nota di sicurezza

Quando gli utenti aggiungono un collegamento a un file esterno nei propri progetti, il file viene recuperato per conto del server su cui è installato Overleaf.

Se il server Overleaf è ospitato all'interno di una rete privata che contiene anche server HTTP interni (destinati esclusivamente all'uso interno), un utente con accesso a Overleaf potrebbe potenzialmente accedere ai dati provenienti da questi servizi interni.

Per impedire ciò, i collegamenti a file esterni non devono puntare a server i cui indirizzi IP appartengano ad alcuna delle reti con restrizioni. Queste sono:

* `127.0.0.0/8` (loopback)
* `169.254.0.0/16` (link-local)
* `10.0.0.0/8` (rete privata)
* `172.16.0.0/12` (rete privata)
* `192.168.0.0/16` (rete privata)

Inoltre, viene introdotta la seguente variabile di ambiente:

* `OVERLEAF_LINKED_URL_BLOCKED_NETWORKS`
  * Un elenco di reti separate da spazi, in notazione CIDR, da cui è vietato recuperare risorse esterne. In genere, dovrebbe includere la rete interna dell'organizzazione.
    * Esempio: `OVERLEAF_LINKED_URL_BLOCKED_NETWORKS=123.123.0.0/16 124.124.124.0/24`

Tuttavia, in molte organizzazioni, i server all'interno della rete interna possono anche ospitare dati che dovrebbero essere accessibili pubblicamente. Per consentire l'accesso a risorse specifiche anche se l'intera rete è bloccata, viene fornita la seguente variabile di ambiente:

* `OVERLEAF_LINKED_URL_ALLOWED_RESOURCES`
  * Un'espressione regolare che definisce le risorse web consentite da cui è possibile recuperare file esterni. Se un URL corrisponde a questa espressione regolare, l'accesso viene concesso anche se la sua rete è altrimenti bloccata.
    * Esempio: per consentire URL come `https://www.example.com/~john/pictures/frog.jpg` e `http://www.example.com/public/whatever/lit.bib`:

      `OVERLEAF_LINKED_URL_ALLOWED_RESOURCES=^https?://www\.example\.com/(?:~[^/]+|public)(?:/.*)?`
    * Esempio: per negare URL come `http://www.example.com/private/whatever/file`, consentendo al contempo tutte le altre risorse non presenti nella `privata` sottoalbero:

      `OVERLEAF_LINKED_URL_ALLOWED_RESOURCES=^https?://www\.example\.com/(?!private)(?:.*)`<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ayakaleaf-pro.ayaka.space/on-premises/it/configurazione/overleaf-toolkit/external-url.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
