Lady_G wrote: Thu May 08, 2025 8:33 pm
Be sure to allow your own IP address (and those needing admin access) to your host.
I'll elaborate a little more. For true DDOS protection you also need to eliminate anything that will expose the IP. Email is the one and only thing that requires exposing the IP.
With a VPS you usually get two IP's and you can always add others. On WHM server you set up hostname using different domain that you don't have concern about DDOS. This is the "main" IP, you set up the domain you want to protect on the other IP with minimal DNS records on CF. WHM has option to send email through the domains IP or the main IP so you send through main IP and set the MX records etc for the domain you want to to protect to the main IP.
For the domain you want to protect you can now firewall just about everything with exceptions for Cloudflare on ports 80 and 443. If you need access to WHM, email etc panel etc you can just use the main IP/hostname. This of course leaves the main IP exposed however it can be null routed during an attack, you'll lose email but it's small price to pay. Ideally the email server is on another server altogether but that's more expense.
Firewalling those ports accomplishes two important things. If the attacker determines the IP it will mitigate the attack because the requests are being blocked at firewall. The second thing it does is help prevent them from finding it to begin with. If they know who the host is they can send a bot across your hosts IP range making a request for unique file on your site which WHM server will happily spit out if it's default domain on that IP.

“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”
Attributed - Thomas Edison