- 08 Feb 2023
- 1 Minute to read
- Print
- DarkLight
How to block an IP in cPanel
- Updated on 08 Feb 2023
- 1 Minute to read
- Print
- DarkLight
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.