---
title: "How to Blacklist/Whitelist a Country in WHM"
description: "One of the benefits of cPHulk is the ability to blacklist or whitelist a country in WHM. This is helpful if you want to allow a country to access your server, are limiting your customer base by..."
url: https://www.inmotionhosting.com/support/email/blacklist-check/blacklist-whitelist-country/
date: 2018-09-18
modified: 2021-11-19
author: "InMotion Hosting Contributor"
categories: ["Blacklist Check", "WebHost Manager (WHM)"]
type: post
lang: en
---

# How to Blacklist/Whitelist a Country in WHM

One of the benefits of cPHulk is the ability to **blacklist or whitelist a country** in WHM. This is helpful if you want to allow a country to access your server, are limiting your customer base by country, or trying to block a specific location from attacking your site.

**Note:** You should [enable cPHulk](/support/security/enabling-cphulk/) first to access this feature in WHM.

## Blacklist/Whitelist a Country

1. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_root-login.png)](/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_root-login.png)   [Log into WHM](https://www.inmotionhosting.com/support/edu/whm/log-into-whm/) as the ‘root’ user.  
2. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_cphulk-whm.png)](/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_cphulk-whm.png)   Type “cphulk” in the search box, then click the **cPHulk Brute Force Protection** link in the *Security Center* section.  
3. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_cphulk-countries-management.png)](/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_cphulk-countries-management.png)   Click the **Countries Management** link on the *cPHulk Brute Force Protection* page.  
4. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_country-search.png)](/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_country-search.png)   You will see a list of countries, type the country you want to whitelist or blacklist in the search field.  
5. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_whitelist-country.png)](/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_whitelist-country.png)   You can then click the **Whitelisted** or **Blackisted** option as needed.   [![](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_country-whitelist-and-blacklist-updated.png)](/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_country-whitelist-and-blacklist-updated.png)   You are finished when you see a message stating “*Country whitelist and blacklist updated.*“  

Congratulations, now you know how to **blacklist or whitelist a country** in WHM!

Check out our [Dedicated Server Hosting](https://www.inmotionhosting.com/dedicated-servers) for a high-performance custom server configuration.
