Documentation

How to block a country

You can block traffic from any country you want to prevent accessing your website. This could be if you get a lot of spam or automated hack attempts.

To block a country is easy, go to the Firewall tab and scroll down to the “Block visits from these countries”.

You can enter a search term to filter the list of countries or you can scroll down and choose as many as you wish.

To remove a country from the list, click the little x next to the name.

Each visitor IP is compared to the IP2Location database and if the IP matches any of the countries you the visitor will be blocked. You can also redirect a blocked visitor to another URL.

This site or product includes IP2Location LITE data available from https://lite.ip2location.com.

Was this helpful?

Previous Article

Block or redirect visitors

Next Article

How to blacklist an IP

Protect your WordPress website

Fast and easy to use

10% OFF

Subscribe to our newsletter

* We do not spam or share your email

Discount on any Security Ninja plan

and get

Hi and welcome back :-)

We won't spam you. Unsubscribe any time.

Wait! Before you go!

Get 10% discount for any WP Security Ninja plan!

 

Subscribe to our newsletter for new releases, discounts and general WordPress Security news. Sprinkled with other interesting stuff :-)