> For the complete documentation index, see [llms.txt](https://docs.ironblocks.com/platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ironblocks.com/platform/firewall/blacklist-and-whitelist-policy.md).

# Blacklist and Whitelist policy

The Whitelist and the Blacklist List policies on the Ironblocks platform empower developers to manage access to their blockchain protocol selectively. By configuring either a Whitelist or a Blacklist, you can specify which addresses are permitted or denied interactions. This policy offers the flexibility to dynamically adjust these lists by adding or removing addresses, providing direct control over access, and enhancing security measures against unauthorized interactions.

Deploy Blacklist and Whitelist policy:

Go to “Firewall” in the side Menu on the left to access the Firewall page.

<figure><img src="/files/mDlgXC0NIiNxKSfKTUtv" alt=""><figcaption><p><strong>firewall dashboard empty</strong></p></figcaption></figure>

Click “Add Policy” on the “My Policies” page or from the 'Policies Library" page.

<figure><img src="/files/kOvC7Inp8eRwoDmaTwIU" alt=""><figcaption></figcaption></figure>

Set Policy Configuration: Select the blacklist or whitelist, the network, and the contracts you want to protect.

Set the Policy Parameters: In the selected mode (Allow/Block), add the addresses you wish to permit or restrict access to.

<figure><img src="/files/qRL73XWsyi3ogZAJOh6W" alt=""><figcaption><p><strong>firewall "add policy", select Blacklist/Whitelist policy</strong> </p></figcaption></figure>

Confirm and deploy the policy, then confirm the signature and wait for the confirmation that the policy has been activated:

<figure><img src="/files/SMmtW8buwLJJpCamV99S" alt=""><figcaption><p><strong>whitelist/blacklist policy deploy window=. signature request</strong></p></figcaption></figure>

Once activated, you will see the Blacklist/Whitelist Policy active in the “My Policies” page:

<figure><img src="/files/P1YFQrexO8K5UEojA4ON" alt=""><figcaption><p><strong>My policies page shows active Whitelist/Blacklist policy</strong></p></figcaption></figure>

Expand the policy to see the policy on-chain address, the networks, and the assets it's protecting. You can also remove the policy or edit it if needed. Use the toggle to deactivate or activate the policy.&#x20;

<figure><img src="/files/bFfbrXOBTtykzZ4Tbkc5" alt=""><figcaption><p><strong>"active" toggle for blacklist/whitelist policy</strong></p></figcaption></figure>


---

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ironblocks.com/platform/firewall/blacklist-and-whitelist-policy.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
