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

# عنوان URL خارجي

### ميزة "من عنوان URL خارجي"

لتمكين ["من عنوان URL خارجي"](https://www.overleaf.com/learn/how-to/How_to_upload_a_file_using_an_external_URL) الميزة، يجب أن يتضمن المتغير `ENABLED_LINKED_FILE_TYPES` يجب أن يتضمن `رابط` النوع:

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

سيؤدي هذا إلى توسيع كلٍّ من *إضافة ملفات* القائمة و *إدراج شكل* القائمة المنسدلة في شريط الأدوات: إذ إن *إضافة ملفات* تتيح لك القائمة إضافة ملف إلى مشروعك باستخدام عنوان URL الخاص به، بينما *إدراج شكل* تتيح لك القائمة المنسدلة إدراج صورة في مستندك مباشرةً من عنوان URL الخاص بها.

#### ملاحظة أمنية

عندما يضيف المستخدمون رابطًا إلى ملف خارجي في مشاريعهم، يتم جلب الملف نيابةً عن الخادم الذي تم تثبيت Overleaf عليه.

إذا كان خادم Overleaf مستضافًا داخل شبكة خاصة تحتوي أيضًا على خوادم HTTP داخلية (مخصصة للاستخدام الداخلي فقط)، فقد يتمكن مستخدم لديه صلاحية الوصول إلى Overleaf من الوصول إلى البيانات الموجودة في هذه الخدمات الداخلية.

لمنع ذلك، يجب ألا تشير الروابط إلى الملفات الخارجية إلى خوادم تقع عناوين IP الخاصة بها ضمن أي من نطاقات الشبكات المقيّدة. وهذه هي:

* `127.0.0.0/8` (حلقة رجعية)
* `169.254.0.0/16` (محليّ الرابط)
* `10.0.0.0/8` (شبكة خاصة)
* `172.16.0.0/12` (شبكة خاصة)
* `192.168.0.0/16` (شبكة خاصة)

بالإضافة إلى ذلك، تم إدخال متغير البيئة التالي:

* `OVERLEAF_LINKED_URL_BLOCKED_NETWORKS`
  * قائمة بالشبكات مفصولة بمسافات بصيغة CIDR يُحظر جلب الموارد الخارجية منها. وعادةً يجب أن تتضمن الشبكة الداخلية للمؤسسة.
    * مثال: `OVERLEAF_LINKED_URL_BLOCKED_NETWORKS=123.123.0.0/16 124.124.124.0/24`

ومع ذلك، في كثير من المؤسسات، قد تستضيف الخوادم داخل الشبكة الداخلية أيضًا بيانات ينبغي أن تكون متاحة للعامة. وللسماح بالوصول إلى موارد محددة حتى إذا كانت الشبكة بأكملها محظورة، يُوفَّر متغير البيئة التالي:

* `OVERLEAF_LINKED_URL_ALLOWED_RESOURCES`
  * تعبير نمطي يحدد موارد الويب المسموح بجلب الملفات الخارجية منها. إذا طابق عنوان URL هذا التعبير النمطي، فسيُمنح الوصول إليه حتى لو كانت شبكته محظورة بخلاف ذلك.
    * مثال: للسماح بعناوين URL مثل `https://www.example.com/~john/pictures/frog.jpg` و `http://www.example.com/public/whatever/lit.bib`:

      `OVERLEAF_LINKED_URL_ALLOWED_RESOURCES=^https?://www\.example\.com/(?:~[^/]+|public)(?:/.*)?`
    * مثال: لحظر عناوين URL مثل `http://www.example.com/private/whatever/file`، مع السماح بجميع الموارد الأخرى غير الموجودة في `الخاص` الفرع الفرعي:

      `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/ar/aliadadat/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.
