How to Block Access to Server IP
Posted: 05 Apr 2024, 15:25
Hello, I am a new CSF user. I am using Almalinux 8.9 and cpanel. I have successfully installed CSF. But I couldn't achieve my main goal.
I want to block all requests coming directly to my server's ip address. But I want to allow 3-4 ip addresses.
I allowed my own ip addresses in the CSF interface. And I entered 0.0.0.0.0/0 in the "Deny" field to block all other traffic. but this time the traffic of all websites was blocked.
Actually what I want to do is to block the requests directly to the server ip address without blocking the traffic of the websites. I want to exclude my own ip addresses from this block.
Can you show a way with this?
I want to block all requests coming directly to my server's ip address. But I want to allow 3-4 ip addresses.
I allowed my own ip addresses in the CSF interface. And I entered 0.0.0.0.0/0 in the "Deny" field to block all other traffic. but this time the traffic of all websites was blocked.
Actually what I want to do is to block the requests directly to the server ip address without blocking the traffic of the websites. I want to exclude my own ip addresses from this block.
Can you show a way with this?