> For the complete documentation index, see [llms.txt](https://clients.medianova.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://clients.medianova.com/products/security/ip-restriction/configure-ip-restriction.md). Agents can also search and read this documentation through its [MCP server](https://clients.medianova.com/~gitbook/mcp).

# Configure IP Restriction

Configure IP Restriction ACL to allow or block access to a CDN Resource based on specific IP addresses.

Configure IP-based access control for a CDN Resource using Whitelist or Blacklist mode.

**IP Restriction ACL** allows you to control access to a CDN Resource based on configured IP addresses.

You can configure IP Restriction ACL for each CDN Resource in the [Medianova Control Panel](https://cloud.medianova.com).

## Configure IP Restriction ACL

{% stepper %}
{% step %}

### Open Security

Open the CDN Resource that you want to configure and select **Security**.
{% endstep %}

{% step %}

### Enable IP Restriction ACL

Turn on **IP Restriction ACL**.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2Fwdbb7kULiPKoGGr7PLm5%2Fimage.png?alt=media&amp;token=65b608ec-4684-48da-b5c1-ff2906dabd01" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Select the Mode

Under **Mode**, select the access policy:

* **Whitelist** — Allow requests from the configured IP addresses and deny requests from other addresses.
* **Blacklist** — Deny requests from the configured IP addresses and allow requests from other addresses.

Only one mode can be selected at a time.
{% endstep %}

{% step %}

### Add IP Addresses

Under **Addresses**, enter the IP addresses to which the selected policy applies.

You can enter multiple addresses:

* One address per line
* Multiple addresses separated by commas

Select **Add** to add the addresses to the configuration.
{% endstep %}

{% step %}

### Save the Configuration

Select **Save** in the pending changes bar.

Review the pending changes and confirm the configuration.
{% endstep %}
{% endstepper %}

## Verify the Configuration

After saving the configuration, verify that the access policy behaves as expected:

* For **Whitelist** mode, test access from an address included in the configured list and from an address that is not included.
* For **Blacklist** mode, test access from an address included in the configured list and from an address that is not included.

{% hint style="warning" %}
Review Whitelist configurations carefully before saving. Requests from IP addresses that are not included in the whitelist are denied.
{% endhint %}

## Related Concepts

For an overview of IP-based access control and the differences between Whitelist and Blacklist modes, see IP Restriction.

{% hint style="info" %}
For API-based configuration, see [IP Restriction API](https://clients.medianova.com/api-documentation/security/ip-restriction-acl.md).
{% endhint %}


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://clients.medianova.com/products/security/ip-restriction/configure-ip-restriction.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
