> 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/ar/althyeh/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://ayakaleaf-pro.ayaka.space/on-premises/ar/althyeh/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.
