> 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/id/konfigurasi/overleaf-toolkit/external-url.md).

# URL Eksternal

### fitur "Dari URL Eksternal"

Untuk mengaktifkan ["Dari URL Eksternal"](https://www.overleaf.com/learn/how-to/How_to_upload_a_file_using_an_external_URL) fitur, variabel `ENABLED_LINKED_FILE_TYPES` harus menyertakan `url` tipe:

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

Ini akan memperluas baik *Tambah File* menu dan *Sisipkan Gambar* dropdown di toolbar: *Tambah File* menu memungkinkan Anda menambahkan file ke proyek Anda menggunakan URL-nya, sedangkan *Sisipkan Gambar* dropdown memungkinkan Anda menyisipkan gambar ke dokumen Anda langsung dari URL-nya.

#### Catatan Keamanan

Saat pengguna menambahkan tautan ke file eksternal di proyek mereka, file diambil atas nama server tempat Overleaf diinstal.

Jika server Overleaf di-host di dalam jaringan privat yang juga berisi server HTTP internal (yang ditujukan hanya untuk penggunaan internal), pengguna dengan akses ke Overleaf berpotensi dapat mengakses data dari layanan internal ini.

Untuk mencegah hal ini, tautan ke file eksternal tidak boleh mengarah ke server yang alamat IP-nya termasuk dalam salah satu rentang jaringan yang dibatasi. Ini adalah:

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

Selain itu, variabel lingkungan berikut diperkenalkan:

* `OVERLEAF_LINKED_URL_BLOCKED_NETWORKS`
  * Daftar jaringan dalam notasi CIDR yang dipisahkan spasi yang dari sana sumber daya eksternal dilarang untuk diambil. Biasanya, ini harus mencakup jaringan internal organisasi.
    * Contoh: `OVERLEAF_LINKED_URL_BLOCKED_NETWORKS=123.123.0.0/16 124.124.124.0/24`

Namun, di banyak organisasi, server dalam jaringan internal juga dapat menyimpan data yang seharusnya dapat diakses publik. Untuk mengizinkan akses ke sumber daya tertentu meskipun seluruh jaringan diblokir, variabel lingkungan berikut disediakan:

* `OVERLEAF_LINKED_URL_ALLOWED_RESOURCES`
  * Ekspresi reguler yang mendefinisikan sumber daya web yang diizinkan yang darinya file eksternal dapat diambil. Jika sebuah URL cocok dengan ekspresi reguler ini, akses ke URL tersebut diberikan meskipun jaringannya diblokir.
    * Contoh: Untuk mengizinkan URL seperti `https://www.example.com/~john/pictures/frog.jpg` dan `http://www.example.com/public/whatever/lit.bib`:

      `OVERLEAF_LINKED_URL_ALLOWED_RESOURCES=^https?://www\.example\.com/(?:~[^/]+|public)(?:/.*)?`
    * Contoh: Untuk menolak URL seperti `http://www.example.com/private/whatever/file`, sambil tetap mengizinkan semua sumber daya lain yang tidak berada di `privat` subpohon:

      `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/id/konfigurasi/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.
