Skip to content
Help Center Search the help center/
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.

About 2 minutes Applies to domain with CDN turned on Updated 20 Nov 2026
Right guide?

Doesn’t the domain have CDN turned on? Can I block visitors from certain countries?

Blocked from email, FTP or DirectAdmin after failed logins? Whitelist your IP address in the firewall

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. 1

    Log in to the client area 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.

  1. 2

    Open the CDN & security tab.

  2. 3

    Click Security.

    The Countries and IP addresses card is further down.

A

Countries

Stop or let in whole countries.

  1. 4

    Choose Block selected countries or Allow only selected countries.

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

  2. 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.

  1. 4

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

    A single address, at most 100 in the list.

  2. 5

    Click Block IP.

    The address is stopped at once.

C

Trusted IP address

The office or you should always be let through.

  1. 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

Done

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 .

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
  • Blocked IP addresses don’t show in the log. Stops from countries show there as Country rule. See what web protection has stopped
EmilLinusMelinda

Need more help?

Email [email protected] or call 08-519 70 666.