> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.nimbata.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to block calls from specific countries

You can block all calls originating from one or more countries by adding their country code prefixes to a **Caller ID Prefix** filter in a call flow, then routing those prefixes to **Hang Up**. 
All other callers continue through the flow normally.

### Step 1. Open the Call Flow Builder

* Go to [Tracking > Call Flows](https://app.nimbata.com/tracking/call-flows).
* Click **Create** to build a new call flow, or click an existing one to edit it.

### Step 2. Choose how to start (new flows only)

* Select **From Scratch** or **From Template**.
* If using a template, pick **Simple Call Flow** as the base and delete the pre-existing Dial action before continuing.

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/image_15l4581.png)

### Step 3. Add the Caller ID Prefix filter

* Click the **+** button on the canvas.
* Select **Caller ID Prefix** from the Filters menu.

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/image_1o89es0.png)

### Step 4. Enter the country codes to block

* Type the international dialling prefix for each country you want to block (e.g. `+44` for the UK, `+49` for Germany).

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/image_73vva9.png)

### Step 5. Route the blocked prefixes to Hang Up

* Click the **+** on the branch for the prefixes you entered.
* Select **Hang Up**.

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/image_1u2w6aj.png)

### Step 6. Route all remaining callers to a destination

* Click the **+** on the remaining-callers branch.
* Select **Dial** and choose the destination number.

![](https://storage.crisp.chat/users/helpdesk/website/-/2/f/4/5/2f459a49cf382400/image_13zodwz.png)

---

🎉 Done. Callers from the blocked countries will hear a hang-up immediately, while everyone else connects normally.
Detailed Guide: [**How to use the caller ID prefix filter for Geo-routing**](https://help.nimbata.com/en/article/how-to-use-the-caller-id-prefix-filter-for-geo-routing-5ptln6/)
Detailed Guide: [**How to block unwanted or spam callers**](https://help.nimbata.com/en/article/how-to-block-unwanted-or-spam-callers-1l5lrvu/) 
Detailed Guide: [**How to assign tracking numbers to call flows**](https://help.nimbata.com/en/article/how-to-assign-tracking-numbers-to-call-flows-uxu7qb/)
