Sometimes, you may need to block traffic to your website. This can be done in your cPanel by blocking the IP address.  You can block just one IP, or a range of IPs from accessing your site.

Why would I block an IP Address?

Most website owners never have to worry about blocking an IP address.  However, there are a few instances where you may need to:

  • An IP address is trying to hack your site. If in your logs you see one IP trying to access your files via FTP, you can block it. This will prevent whoever was using that IP from attempting to hack your site.
  • An IP address is visiting your website suspiciously. In rare situations, you may see an IP from a different country visiting your site. This is pretty normal, but if the IP's connecting hundreds of times a day, it may be suspicious. You may choose in that situation to block the IP address.
  • You don't want someone accessing your site. This can be for a variety of reasons. But if there's one person you don't want visiting your site, you can add their IP to the block list.

How do I Block an IP Address?

First, log into your cPanel. Navigate to the IP Deny Manager:


This is where you will enter the IP address. Put the full IP address in the blank field and click Add:


The next screen will confirm the IP address has been added:


It is that simple! You can also add a range of IPs.  If you enter in a range of IPs:


Then on the "Current IP addresses being blocked" section it will list every IP not allowed:


You can remove an IP from the list by clicking the red X in the "Remove" column.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.