Protecting SaaS with Custom Domains via Cloudflare
I’m running a SaaS platform where each user can use a custom domain for their site. Currently, I require users to point an A record to my server's IP address. However, this introduces a challenge: if there's a DDoS attack, the traffic directly hits my server, making mitigation difficult.
I want to use Cloudflare to help handle this, especially to protect my infrastructure from such attacks. The complication is that not all users use Cloudflare on their domains. Additionally, users may point either root domains or subdomains to my server.
I want to use Cloudflare to help handle this, especially to protect my infrastructure from such attacks. The complication is that not all users use Cloudflare on their domains. Additionally, users may point either root domains or subdomains to my server.