> 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.md).

# IP Restriction

Control access to your CDN Resources by allowing or blocking specific IP addresses through whitelist or blacklist configurations.

Control access to your CDN Resources by allowing or blocking specific IP addresses.

**IP Restriction ACL** evaluates incoming requests against a configured list of IP addresses. Depending on the selected mode, matching addresses can be allowed or denied access to the CDN Resource.

You can manage IP Restriction ACL in the [Medianova Control Panel](https://cloud.medianova.com) or through the IP Restriction API.

## How IP Restriction Works

IP Restriction ACL provides two access control modes:

<table><thead><tr><th width="144">Mode</th><th>Behavior</th></tr></thead><tbody><tr><td><strong>Whitelist</strong></td><td>Allows requests from the configured IP addresses and denies requests from other addresses.</td></tr><tr><td><strong>Blacklist</strong></td><td>Denies requests from the configured IP addresses and allows requests from other addresses.</td></tr></tbody></table>

Only one mode can be selected for a CDN Resource at a time.

## Common Use Cases

IP Restriction can be used to:

* Restrict access to internal or staging environments.
* Limit access to services intended for specific clients or networks.
* Block specific IP addresses from accessing CDN-delivered content.
* Apply IP-based access requirements to a CDN Resource.

## Configuration Overview

When configuring IP Restriction ACL, select **Whitelist** or **Blacklist** and add the IP addresses to which the policy applies.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FdA7zJPopGCZz8qZ1fME9%2Fimage.png?alt=media&amp;token=8f684fb1-caa0-4f5e-be99-d4de8c2158d0" alt=""><figcaption><p>Configuration Overview</p></figcaption></figure>

The **Addresses** field accepts multiple entries. Enter addresses one per line or separate them with commas.

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

For step-by-step configuration instructions, see [Configure IP Restriction](/products/security/ip-restriction/configure-ip-restriction.md).

## Related Concepts

* [Rate Limiting](/products/security/rate-limiting.md)
* [Web Application Firewall (WAF)](/products/security/web-application-firewall-waf.md)
* [Security](/products/security.md)


---

# 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.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.
