© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•9mo ago•
4 replies
Blankyyyy

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.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

SaaS with custom domains
Cloudflare DevelopersCDCloudflare Developers / general-help
4w ago
Cloudflare for SaaS Domains
Cloudflare DevelopersCDCloudflare Developers / general-help
15mo ago
Cloudflare for SaaS custom domains webhooks for status updates
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago
Make apex domains work with Cloudflare for SaaS’s custom hostnames feature
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago