> For the complete documentation index, see [llms.txt](https://overleaf-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://overleaf-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) funzionalità, la variabile `ENABLED_LINKED_FILE_TYPES` deve includere `URL` tipo:

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

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

#### Nota di sicurezza

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

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

Per evitare ciò, i link a file esterni non devono puntare a server i cui indirizzi IP appartengono a uno degli intervalli di rete limitati. Questi 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 d'ambiente:

* `OVERLEAF_LINKED_URL_BLOCKED_NETWORKS`
  * Un elenco separato da spazi di reti in notazione CIDR dalle quali è 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 ospitare anche dati che dovrebbero essere accessibili pubblicamente. Per consentire l'accesso a risorse specifiche anche se l'intera rete è bloccata, è prevista la seguente variabile d'ambiente:

* `OVERLEAF_LINKED_URL_ALLOWED_RESOURCES`
  * Un'espressione regolare che definisce le risorse web consentite dalle quali è 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 nel `privato` 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://overleaf-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.
