# Configure publisher restrictions

IAB TCF version 2 allows publishers to set restrictions on the purposes and legal basis IAB vendors use.

This is useful for restricting the purposes declared by an IAB vendor and/or modifying the legal basis on which it is based.\
\
**You will need to specify the purpose(s) to which you wish to apply a restriction and the vendor(s) to which the restriction should apply.**

Didomi currently supports four types of restrictions:

* **Allow purpose** - allow vendors to process data for the specified purpose.
* **Disallow purpose** - do not allow vendors to process data for the specified purpose.
* **Require consent** - only allow a purpose to be processed with consent as a legal basis.
* **Require legitimate interest** - only allow a purpose to be processed with legitimate interest as a legal basis.

![](/files/XYUMBAdGHc1rJh9l0twN)

These restrictions can be managed in the Didomi console directly and are possible for **web notices only**.

#### Create a restriction

1. Go to **Consent Notices** and click to edit a notice.
2. Go to  step **1. Regulations,** then the **Regulations** tab, and click on **Edit Vendors & Purposes** under your chosen regulation, next to the number of vendors and purposes.<br>

   <figure><img src="https://support.didomi.io/hs-fs/hubfs/image-png-Apr-08-2025-07-39-26-0414-AM.png?width=2622&#x26;height=1120&#x26;name=image-png-Apr-08-2025-07-39-26-0414-AM.png" alt=""><figcaption></figcaption></figure>
3. Scroll down to **IAB TCF Publisher Restrictions** and click on **Add restriction**.&#x20;

   <figure><img src="https://support.didomi.io/hs-fs/hubfs/New%20console%20flow/Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.35.31.png?width=688&#x26;height=355&#x26;name=Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.35.31.png" alt=""><figcaption></figcaption></figure>
4. By clicking on **Add restrictions +**, a new window appears. Choose a purpose and the type of restriction you want to add.\ <br>

   <figure><img src="https://support.didomi.io/hs-fs/hubfs/New%20console%20flow/Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.36.39.png?width=360&#x26;height=352&#x26;name=Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.36.39.png" alt=""><figcaption></figcaption></figure>
5. You can choose to apply the restrictions to all IAB vendors (that is to say all the IAB vendors you use in your banner)or selected vendors.\ <br>

   <figure><img src="https://support.didomi.io/hs-fs/hubfs/New%20console%20flow/Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.39.55.png?width=445&#x26;height=387&#x26;name=Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.39.55.png" alt=""><figcaption></figcaption></figure>
6. You can also choose your restriction, allow or disable a purpose for your selected vendors, or force a legal basis.

   <figure><img src="https://support.didomi.io/hs-fs/hubfs/New%20console%20flow/Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.39.59.png?width=480&#x26;height=236&#x26;name=Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.39.59.png" alt=""><figcaption></figcaption></figure>
7. Click on **Save**.

<figure><img src="https://support.didomi.io/hs-fs/hubfs/New%20console%20flow/Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.41.58.png?width=688&#x26;height=228&#x26;name=Capture%20d%E2%80%99%C3%A9cran%202023-03-09%20%C3%A0%2012.41.58.png" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Restrictions cannot be applied to Purpose 1 ("Store and/or access information on a device").
{% endhint %}

**Mobile Applications**

If you wish to use publisher restrictions on a Mobile application, please update your SDK to at least:&#x20;

* 1.25.0 (Android)
* 1.37.0 (iOS)

✍️ Please note that, due to TCF V2 technical specifications, publisher restrictions are heavy and will increase the size of your euconsent-v2 cookie. In some cases, the cookie will be too large for a browser, which generally has a 4096 byte limit.

As a result, the browser will be unable to store the cookie and TCF V2 will not work properly (this explains why you could encounter errors related to publisher restrictions in your browser console).

📰 Please also bear in mind that Special Features ("Use precise geolocation data" and "Actively scan device characteristics for identification") do not work based on legitimate interest. For this reason, neither "**Require consent"** nor **"Require legitimate interest"**  should be applied to these features.&#x20;


---

# 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://docs.didomi.io/consent-management-platform-cmp/consent-notices/configure-publisher-restrictions.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.
