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

# Geoblocking

Configure Geo Blocking to block selected countries or allow access only from selected countries.

Control access to CDN-delivered content based on the geographic location of incoming requests.

**Geo Blocking** allows you to block requests from selected countries or allow access only from selected countries.

Geo Blocking is configured per CDN Resource under **Security → Geo blocking** in the [Medianova Control Panel](https://cloud.medianova.com).

## Configure Geo Blocking

{% stepper %}
{% step %}

### Open Geo Blocking

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

{% step %}

### Enable Geo Blocking

Turn on **Geo Blocking**.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FxNsS0au8atHxGhhXSDOI%2Fimage.png?alt=media&amp;token=2d888705-2ce3-4b14-a081-91f582ba00aa" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Select the Mode

Under **Mode**, select how the configured countries are handled:

* **Block Selected** — Block requests from the selected countries.
* **Allow only selected** — Allow requests only from the selected countries. Requests from other countries are blocked.

{% hint style="warning" %}
When **Allow only selected** is used, visitors from countries that are not selected cannot access the content.
{% endhint %}
{% endstep %}

{% step %}

### Select Countries

Select the countries to which the configured mode applies.

<figure><img src="https://542970813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtK7oIwmhUHdEJcaH4Hx8%2Fuploads%2FHDMALJ4cbLOkwz6tdOUz%2Fimage.png?alt=media&amp;token=94c2c692-19b1-4133-ab04-10076eb344b3" alt=""><figcaption></figcaption></figure>

You can:

* Select countries individually.
* Search for a country using **Search country...**.
* Filter the country list by region.
* Use **Select all** or **Deselect all** to update the complete selection.
* Select all countries within a displayed region.

The map and selection counter indicate the countries currently included in the configuration.
{% endstep %}

{% step %}

### Save the Configuration

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

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

## How Geo Blocking Works

Geo Blocking evaluates the geographic location associated with an incoming request and applies the configured country policy.

<table><thead><tr><th width="187.199951171875">Mode</th><th>Behavior</th></tr></thead><tbody><tr><td><strong>Block Selected</strong></td><td>Requests from selected countries are blocked. Requests from other countries are allowed.</td></tr><tr><td><strong>Allow only selected</strong></td><td>Requests from selected countries are allowed. Requests from other countries are blocked.</td></tr></tbody></table>

## Common Use Cases

Geo Blocking can be used to:

* Restrict content to countries where it is intended to be available.
* Block access from specific countries.
* Apply country-based content distribution requirements.

## Important Notes

* Geo Blocking applies country-based access rules to the selected CDN Resource.
* The selected countries are interpreted according to the configured **Mode**.
* Review the country selection carefully when using **Allow only selected**, because all countries outside the selection are blocked.
* Changes take effect after the updated CDN Resource configuration is saved.

## Related Concepts

* [IP Restriction](/products/security/ip-restriction.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/geoblocking.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.
