> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to use a blacklist to prevent an IP address from accessing your website?

You can lock directory with a password by using the cPanel Password Protected Directories option.

# Here's how to use a blacklist to prevent an IP address from accessing your website

1. [Log into your cPanel account](https://help.ex2.com/en/article/how-to-log-in-to-my-cpanel-account-xyoqm0/?bust=1676305236426).

2. In the Security section, click on the IP Blocker Icon.

 ![](https://www.ex2.com/clients/img/ip-deny-manager-icon.gif)

3. Under Add an IP or Range, you should enter the IP Address you wish to block.

4. Click on the Add button.

![](https://www.ex2.com/clients/img/denyip.gif)

Here is an Example:

Single IP Address: 192.168.0.1\
Range: 192.168.0.1-192.168.0.40\
Implied Range: 192.168.0.1-40\
CIDR Format: 192.168.0.1/32\
Implies 10.*.*.* -- 192.