# Установка ограничения на CloudFlare

{% hint style="warning" %}
**Важно:** Устанавливая ограничение на Cloudflare не забудьте [установить ограничение на API](#ogranichenie-vkhoda-na-api) это принципиально важно ограничение на CF лиш ограничивает визуальное отражение админ панели но не ограничивает запросы к Admin API.
{% endhint %}

1. Для ограничения доступа к админ панели по IP вам необходимо войти в ваш аккаунт [CloudFlare](https://dash.cloudflare.com/)
2. Перейти в раздел [**Security -> WAF**](#user-content-fn-1)[^1]
3. Нажать кнопку [**Create rule**](#user-content-fn-2)[^2] в разделе Custom rules
4. Заполнить форму: <br>

Rule name: **Admin block ip**

When incoming requests match…

Field: **Hostname**

Operator: **is in**

Value: %Домен вашей панели без https и слешей%<br>

**AND**

Field: **IP Source address**&#x20;

Operator: **is not in**

Value: Ваш ип или несколько ип&#x20;

\
Then…

**Block**

\
После нажать кнопку: **Deploy**

### Пример как должно выглядеть правило

<figure><img src="/files/7uQPPZz6H2bxpT41BQG8" alt=""><figcaption></figcaption></figure>

### Ограничение входа на API:

[^1]: ![](/files/epUiV6253APRbGmfDNVi)

[^2]: ![](/files/QmRAIRbLGcZcXUDOPxId)


---

# Agent Instructions: 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:

```
GET https://manual.boxexchanger.net/nachalo-raboty/nastroika-bezopasnosti/ogranicheniya-dostupa-admin-paneli-po-ip/ustanovka-ogranicheniya-na-cloudflare.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
