Firewall or IP blocking cPanel access
Could a firewall or IP block prevent access to cPanel? I’m getting ‘403 Forbidden’ when I try to log in, but everything else seems fine.
-
Yes it absolutely can. Have you tried accessing the resource from another network as for example your mobile phone provider or a VPN? If it then works you can be almost sure it is an IP block. However removing the block will highly depend on what firewall software is used if that is the case.
If it is ConfigServer Security & Firewall the most easy method from the interface when logged in from a none blocked location is to Flush all Blocks ( You need WHM access not cPanel) If you rather do it by terminal, console than the command is csf -tf
However do not do this if you first want to find out why it got blocked. Best to look at the active deny list first and copy its related entry incase it is a repeating access violation.
Also when you want the IP to not get blocked in the future you need to add it to the ignore, allow list.
More information: https://support.configserver.com/en/knowledgebase/article/i-whitelisted-an-ip-address-in-csf-csf-allow-why-is-it-being-blocked-by-lfd
Again this only works if you or your hosting provider uses CSF.
Also there is a small chance this is not related to a IP block but I would definately first try to confirm it as the cause.0 -
Are you the admin of the server? If so, you'd be able to check the log to see what is happening, but the fact that you're able to attempt a login at all would indicate it's not a firewall-level block, but something like CSF or another security tool, as ITHKBO mentions.
0 -
If the IP is blocked in firewall it does not give a 403 error, or any HTTP response status code.
That you get that error means that you can connect to the server, but after that happens something causing that error.
If you don't have root access contact your hosting provider.
0 -
thanks for your response. I really appreciate your help
0
Please sign in to leave a comment.
Comments
4 comments