> ## Documentation Index
> Fetch the complete documentation index at: https://help.freakhosting.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Block Countries, Networks and Unmatched Traffic on Your IP

> Set the default action for unmatched traffic and block or allow traffic by country or network (ASN) on your FREAKHOSTING IP address.

Each IP address has its own settings that work alongside your [filters](https://help.freakhosting.com/portals/firewall/how-to-apply-ddos-filters.md). You can choose what happens to traffic no filter matches, and block or allow traffic from whole countries or networks.

> **Difficulty**
>
> Intermediate

> **Time**
>
> 5 minutes

***

## Open the IP settings

**1. Go to My IP addresses**

In the sidebar, click [My IP addresses](https://network.freakhosting.com/network).

**2. Click Settings**

Click **Settings** next to your IP. You can also open the IP with **Manage** and then click **Settings** in the left menu, or **Open** next to **IP settings** under **Quick links**.

![IP settings page with Default action set to Filter, ASN blocking and Country blocking each set to Disabled, and a Review and save button](https://mintcdn.com/freakhostingltd/0pHRhrSyr8uIxHTc/images/firewall/ip-settings.png?fit=max\&auto=format\&n=0pHRhrSyr8uIxHTc\&q=85\&s=c8c780752fae1252a3613a6ded9e17df)

The IP settings page

The page has three sections: **Default action**, **ASN blocking** and **Country blocking**. Nothing changes until you [review and save](#review-and-save-your-changes).

***

## Default action

The default action is applied to traffic that isn't matched by any of your filters.

| Option | What happens | When to use it |
| - | - | - |
| **Filter** (default) | Unmatched traffic still goes through the provider's general DDoS filtering. | Recommended for most people. |
| **Drop** | Unmatched traffic is blocked. Only traffic that matches one of your filters gets through. | When you've added a filter for every port you use and want to block everything else. |

> [!WARNING]
>
> With **Drop**, any port without a filter stops working, including SSH or Remote Desktop if you haven't added filters for them. Check your [active filters](https://help.freakhosting.com/portals/firewall/how-to-apply-ddos-filters.md#read-the-active-filters-table) before you switch.

***

## Block or allow countries

Country blocking controls traffic based on the country it comes from. You can add up to **20 countries**.

| Mode | What it does |
| - | - |
| **Disabled** | No country blocking. |
| **Blacklist** | Blocks traffic from the countries you add. Everyone else can connect. |
| **Whitelist** | Allows traffic **only** from the countries you add. Everyone else is blocked. |

**1. Choose a mode**

Under **Country blocking**, click **Blacklist** or **Whitelist**.

**2. Add a country**

Type the country's two-letter code, such as `US`, `GB` or `DE`, then click **Add**. The country appears as a flag chip.

**3. Add more**

Repeat for each country. The counter shows how many of the 20 you've used.

**4. Remove a country**

Click the **×** on its chip.

> [!TIP]
>
> Country codes use the two-letter ISO standard. A few that often catch people out: the United Kingdom is `GB` (not UK), and Germany is `DE`. You can look up any code in the [ISO country code list](https://www.iso.org/obp/ui/#search/code/).

> [!WARNING]
>
> A **Whitelist** blocks everyone outside the countries you add, including you if you're travelling and your team members abroad. Use it only when your players or visitors come from a few known countries.

***

## Block or allow networks (ASN)

Every internet provider or hosting company has an **AS number** (ASN) that identifies its network. ASN blocking lets you block or allow a whole network at once, for example a hosting company that attacks often come from. You can add up to **10 ASNs**.

The modes work the same way as country blocking: **Disabled**, **Blacklist** or **Whitelist**.

**1. Choose a mode**

Under **ASN blocking**, click **Blacklist** or **Whitelist**.

**2. Add an ASN**

Type the AS number, such as `13335`, then click **Add**.

**3. Remove an ASN**

Click the **×** on its chip.

> [!TIP]
>
> To find a network's ASN, search an IP address on a lookup site such as [bgp.he.net](https://bgp.he.net). The ASN is shown as "AS" followed by a number. Enter just the number.

***

## Review and save your changes

The panel keeps track of your edits before anything goes live. An **unsaved** badge shows how many changes you've made, and a bar at the bottom says **You have unsaved changes**.

**1. Click Review and save**

At the bottom of the page, click **Review and save**.

**2. Check the changes**

The **Review changes** window lists each setting with its old and new value.

![Review changes dialog listing each changed setting with its old and new value, and Cancel and Save changes buttons](https://mintcdn.com/freakhostingltd/0pHRhrSyr8uIxHTc/images/firewall/ip-settings-review.png?fit=max\&auto=format\&n=0pHRhrSyr8uIxHTc\&q=85\&s=445584b88fb2a233890a046d956d395c)

Checking changes before saving

**3. Save**

Click **Save changes**. To go back and edit, click **Cancel**.

To throw away all your edits without saving, click **Discard**.

***

## Troubleshooting

> **My service stopped working after I changed the default action**
>
> You probably set **Default action** to **Drop** while a port had no filter. Set it back to **Filter**, or [add a filter](https://help.freakhosting.com/portals/firewall/how-to-apply-ddos-filters.md#add-a-single-filter) for that port.

> **Players from an allowed country can't connect**
>
> Some players use VPNs or mobile networks that appear to be in another country. Check you added the right two-letter code, or switch from **Whitelist** to **Blacklist** and block only the countries you don't want.

> **I can't add another country or ASN**
>
> You've reached the limit: 20 countries or 10 ASNs. Remove one you no longer need, or block specific addresses with an [IP list](https://help.freakhosting.com/portals/firewall/how-to-create-and-manage-ip-lists.md).

> **My changes didn't apply**
>
> Settings only go live after you click **Review and save** and then **Save changes**. Leaving the page without saving loses your edits.

***

## Related articles

> **[Apply DDoS filters](https://help.freakhosting.com/portals/firewall/how-to-apply-ddos-filters.md)**
>
> Add filters for each port you use.

> **[Create IP lists](https://help.freakhosting.com/portals/firewall/how-to-create-and-manage-ip-lists.md)**
>
> Whitelist or blacklist specific addresses.

***

> [!NOTE]
>
> ### Need Extra Help?
>
> If you encounter any issues, our support team is ready to assist:
>
> * **Live Chat:** Quick assistance via our website.
> * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
> * **Discord:** [Join our Community](https://discord.gg/freakhosting)
> * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)

> [!TIP]
>
> ### Save on Your Hosting
>
> Ready to upgrade your hosting? Use code **KB20** at checkout for **20% off** your first order!

***

**Last Updated:** October 2026


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.