How to block an IP in cPanel
  • 08 Feb 2023
  • 1 Minute to read
  • Dark
    Light

How to block an IP in cPanel

  • Dark
    Light

Article summary

How to block an IP address

1. Start by Logging into your cPanel, then click IP Blocker.

2. Under "Add an IP or Range", enter the IP address or range you wish to block.
3. Click the Add button.

How to unblock the IP address

1. Login to cPanel and click IP Blocker.
2. At the bottom, under "Currently-Blocked IP addresses", click Delete.

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:

deny from all

allow from 70.24.291.52

allow from 216.130.49.223 #my house

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 will happily remove the block.


Was this article helpful?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence