---
title: "Block countries and IP addresses with web protection"
url: "https://inleed.com/helpcenter/block-countries-ips-web-protection"
language: "en"
updated: "2026-11-20"
category: "Web hosting"
type: "guide"
---

# Block countries and IP addresses with web protection

With web protection you decide which countries and IP addresses may visit the site. Trusted addresses, for example the office, are always let through.

## Right guide?

- Doesn’t the domain have CDN turned on?  
  [Can I block visitors from certain countries?](https://inleed.com/helpcenter/block-visitors-countries)
- Blocked from email, FTP or DirectAdmin after failed logins?  
  [Whitelist your IP address in the firewall](https://inleed.com/helpcenter/whitelist-ip-address)

## Before you start

- Don’t block your own country by mistake. With **Allow only selected countries** everyone else is stopped, including you when travelling and services that call the site from abroad, such as payments.
- Search engines like Google and Bing are always let through.

## How to block

1. Log in to the [client area](https://login.inleed.net) and click **Manage** next to the domain.

   The domain’s page opens.

**Tip:** Domain with another registrar? Click **Manage** next to it under the **CDN & security** tab on your hosting’s page.

2. Open the **CDN & security** tab.

3. Click **Security**.

   The **Countries and IP addresses** card is further down.

### A. Countries

Stop or let in whole countries.

4. Choose **Block selected countries** or **Allow only selected countries**.

   If you switch mode, the list is emptied at once.

5. Type the country’s name in **Add country…** and pick it in the list.

   It’s saved at once.

### B. Block an IP address

A single address that causes trouble, for example with spam.

4. Enter the address under **Blocked IP addresses**, and a note if you like.

   A single address, at most 100 in the list.

5. Click **Block IP**.

   The address is stopped at once.

### C. Trusted IP address

The office or you should always be let through.

4. Click **Add my IP address** under **Trusted IP addresses**.

   The address you’re connected from is added, at most 5.

   You can only add your own address, so do it from the office network.

## How to know it worked

The countries and addresses are listed and apply at once.

## If something doesn’t work

### The IP address isn’t accepted

**Why:** An address range, a private address like `192.168.x.x` or one that’s already in a list.

**What to do:** Enter a single public address. You can see your own at [ip.inleed.se](https://ip.inleed.se).

### You’ve locked yourself out

**Why:** Your country or IP address is blocked.

**What to do:** The client area isn’t affected. Log in there and remove the country or address.

## Good to know

- Trusted addresses are let through the firewall, the login protection and under attack mode. If the network changes IP address, add the new one.
- This only applies to the website. Email, FTP and DirectAdmin don’t go through the CDN. If you’re blocked there, it’s your hosting’s firewall.  
  [Whitelist your IP address in the firewall](https://inleed.com/helpcenter/whitelist-ip-address)
- Blocked IP addresses don’t show in the log. Stops from countries show there as **Country rule**.  
  [See what web protection has stopped](https://inleed.com/helpcenter/web-protection-logs)

## Related guides

- [Can I block visitors from certain countries?](https://inleed.com/helpcenter/block-visitors-countries)
- [Whitelist your IP address in the firewall](https://inleed.com/helpcenter/whitelist-ip-address)
- [Web protection blocks real visitors](https://inleed.com/helpcenter/web-protection-blocks-visitors)
- [Google and other services can’t reach your website](https://inleed.com/helpcenter/services-cant-reach-website)
