---
title: "How to Blacklist/Whitelist an IP Address in WHM"
description: "After installing cPHulk on your dedicated server, you will have new security features. The ability to block (blacklist) or allow (whitelist) IP addresses from accessing your server is a great..."
url: https://www.inmotionhosting.com/support/edu/whm/blacklist-whitelist-ip-address-whm/
date: 2018-09-13
modified: 2021-11-19
author: "InMotion Hosting Contributor"
categories: ["WebHost Manager (WHM)"]
type: post
lang: en
---

# How to Blacklist/Whitelist an IP Address in WHM

After [installing cPHulk](/support/security/enabling-cphulk/) on your [dedicated server](https://www.inmotionhosting.com/dedicated-servers), you will have new security features. The ability to [block (blacklist) or allow (whitelist) IP addresses](https://www.inmotionhosting.com/support/server/ssh/blacklist-whitelist-ip-address-ssh/) from accessing your server is a great feature. You can stop known threats or let known users connect to the server. In this tutorial, we will show you how to **Blacklist and Whitelist IP addresses** in WHM.

- [Blacklist IP Address](#blacklist)
- [Whitelist IP Address](#whitelist)

****Note:** You need [root access](/support/amp/obtain-root-access/) to your server to complete this guide.

![How to Blacklist Whitelist an IP Address in WHM](https://i.ytimg.com/vi_webp/anpMqvQGDmk/maxresdefault.webp)

*Don’t have time to read our article on how to Blacklist & Whitelist an IP address in WHM? Watch our walk-through video.*

## Blacklist IP Address

1. [Log into WHM](https://www.inmotionhosting.com/support/edu/whm/log-into-whm/) as the ‘root’ user.
2. Type “cphulk” in the search box, then click the **cPHulk Brute Force Protection** link in the *Security Center* section.![Searching for cPHulk in WHM](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_cphulk-whm.png)
3. Click the **Blacklist Management** tab.![Whitelisting Tab in cPHulk](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_cphulk-blacklist-manager.png)
4. Enter the IP addresses you want to blackist. Each address should be on a new line.![Blacklisting IP Addresses](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_blacklist-ip-addresses.png)
5. If you want to add a note enter it in the **Comment** section.
6. Click the **Add** button to blacklist these addresses.![Add IP Address to Blacklist](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_add-ip-to-blacklist.png)You will then see a success message and the IP addresses you added will now be listed along with the comment you entered.![Blacklisted IP Address in WHM](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_blacklisted-ip-addresses.png)

Now that you know how to blacklist an IP address in WHM using cPHulk, we will now you you how to whitelist an IP address.

## Whitelist IP Address

1. [Log into WHM](https://www.inmotionhosting.com/support/edu/whm/log-into-whm/) as the ‘root’ user.
2. Type “cphulk” in the search box, then click the **cPHulk Brute Force Protection** link in the *Security Center* section.
3. Click the **Whitelist Management** tab.![Whitelist Management](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_whitelist-management.png)
4. Add the IP addresses that you want to whitelist to the *New Whitelist Records* section. Each addresses should be on a different line.
5. Enter a comment if you want to add it to the whitelist record.
6. Click the **Add** button to add the IP addresses to the whitelist. You will then see a success message and you will see the whitelisted IP addresses listed. ![Whitelisted IP Addresses](https://www.inmotionhosting.com/support/wp-content/uploads/2018/09/dedicated-hosting_blacklist-whitelist_whitelisted-ip-addresses.png)

Congratulations, now you know how to Blacklist and Whitelist IP addresses in WHM using cPHulk! In the next guide, we will show you [how to Blacklist/Whitelist IP address via SSH](https://www.inmotionhosting.com/support/server/ssh/blacklist-whitelist-ip-address-ssh/).
