Every day, dozens of bots, crawlers, and other attackers make requests to xttp://SERVER_IP. So the question arises - how to restrict access to the server by its IP address.
One of the options that immediately came to mind is to use the Accces/Denied List at the Server Settings level in the WebAdmin panel.
Knowing that I have Cloudflare, I first set the mode to Trusted IP and then marked all Cloudflare-trusted IP addresses with a T. In the Access List, I had the following:
And in the Denied List, I added ALL, hoping to block all IP addresses that are making access to xhttp://SERVER_IP.
As a result, Cloudflare returning a 520 error (Obviously, their IP address pool is much wider... ). I had to disable the full blocking and create the Denied List manually, adding each address separately...
So the question is still relevant: what is the best practice to completely restrict public HTTP access to a server IP address?
A similar topic was discussed here, but I didn't find an answer there: https://forum.openlitespeed.org/thr...lare-ip-for-connection-limit.5870/#post-17285
Are there any administrators here who care about the security of their servers and have come up with a complete solution?
One of the options that immediately came to mind is to use the Accces/Denied List at the Server Settings level in the WebAdmin panel.
Knowing that I have Cloudflare, I first set the mode to Trusted IP and then marked all Cloudflare-trusted IP addresses with a T. In the Access List, I had the following:
173.245.48.0/20T, 103.21.244.0/22T, 103.22.200.0/22T, 103.31.4.0/22T, 141.101.64.0/18T, 108.162.192.0/18T, 190.93.240.0/20T..
(all IPs CF here: https://www.cloudflare.com/ips/)And in the Denied List, I added ALL, hoping to block all IP addresses that are making access to xhttp://SERVER_IP.
As a result, Cloudflare returning a 520 error (Obviously, their IP address pool is much wider... ). I had to disable the full blocking and create the Denied List manually, adding each address separately...
So the question is still relevant: what is the best practice to completely restrict public HTTP access to a server IP address?
A similar topic was discussed here, but I didn't find an answer there: https://forum.openlitespeed.org/thr...lare-ip-for-connection-limit.5870/#post-17285
Are there any administrators here who care about the security of their servers and have come up with a complete solution?