--- title: "How to block an IP Address in cPanel" slug: "how-to-block-an-ip-in-cpanel" updated: 2026-04-20T06:36:03Z published: 2026-04-20T06:36:03Z canonical: "docs.serversaustralia.com.au/how-to-block-an-ip-in-cpanel" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.serversaustralia.com.au/llms.txt > Use this file to discover all available pages before exploring further. # How to block an IP Address in cPanel > [!WARNING] > Note > > This is for very basic website blocking. If you need a more powerful/complete block from the server, consider blocking IP’s in the firewall (such as CSF or Imunify360) 1. Start by logging in to your cPanel, then click **IP Blocker**. ![Security options including IP Blocker highlighted for easy access and management.](https://cdn.document360.io/d809f158-d4f4-47ff-83d4-18d9c9f7a04d/Images/Documentation/Screenshot 2026-03-26 at 10.23.20 AM.png) 2. Under "***Add an IP or Range***", enter the IP address or range you wish to block. 3. Click the ‘**Add’** button.![](https://cdn.document360.io/d809f158-d4f4-47ff-83d4-18d9c9f7a04d/Images/Documentation/image-1673997912759.png) ## **How to unblock the IP address** 1. Log in to cPanel and click **IP Blocker**. 2. At the bottom, under "*Currently-Blocked IP addresses*", click **Delete**.![](https://cdn.document360.io/d809f158-d4f4-47ff-83d4-18d9c9f7a04d/Images/Documentation/image-1673998060770.png) ## **Deny ALL IP addresses** You can also set an option for deny from all, which will deny everyone. This must be done by coding your **.htaccess file** as follows: ```plaintext deny from all allow from 70.24.291.52 allow from 216.130.49.223 #my house ``` > [!CAUTION] > Important Note > > **It is possible to block access to yourself accidentally by using this method.** Be sure to allow access via your IP otherwise you will be blocked as well. > > *If you get blocked from the server, you can always contact Servers Australia and we can help remove the block.*