Console
← Journal / BUILD & HOSTING

Shipping Sites on Custom Domains and Subdomains Without Hosting Lock-In

How DomainFA routes custom root domains, app subdomains, and instant .build.domainfa.com slugs directly to isolated web containers.

HOST EDGE 130.210.14.176 slug.build.domainfa.com Instant staging route · Cookie stripped yourdomain.com TXT _domainfa-verify · Verified app.yourdomain.com Spun-out CNAME -> Isolated container
Table of Contents
Key Takeaways
  • →Publish any AI Builder site to <slug>.build.domainfa.com (/s/<slug>/), a root domain, or a spun-out subdomain like app.yourdomain.com.
  • →Never route custom hosts by Host-header alone—DomainFA enforces cryptographic _domainfa-verify TXT ownership before serving traffic.
  • →Ingress proxies strip platform cookies, Authorization headers, and Referer CSRF state so custom sites cannot pivot into your account.

Generating a landing page or interactive web tool in an AI studio is only half the workflow. Until it resolves cleanly over HTTPS on a domain your customers trust—without shared-platform navigation chrome—you do not have a shipping product; you have a temporary preview link.

DomainFA's hosting router bridges that last mile cleanly: every website generated in AI Builder can bind to your own root domain, a spun-out product subdomain, or a free instant subdomain without lock-in.

Three Publishing Topologies Supported in Console

Inside DomainFA Console under AI Websites -> Connect Domain / Subdomain, each project supports three distinct routing topologies depending on whether you want speed, full apex branding, or side-by-side coexistence with an existing marketing site:

Binding ModeExample HostnameDNS Record RequiredBest Fit
Instant Slug Routelaunch.build.domainfa.com or /s/launch/None (provisioned immediately)Staging demos, investor previews, fast prototypes
Root Apex Domainyourdomain.comA @ -> 130.210.14.176 + verify TXTStandalone SaaS apps, micro-utilities, ventures
Spun-Out Subdomaindemo.yourdomain.com or app.yourdomain.comCNAME app -> <slug>.build.domainfa.comLaunching tools alongside an existing root site

Preventing Dangling-DNS Domain Takeovers

Multi-tenant SaaS platforms frequently make a subtle security mistake: they bind an incoming HTTP Host header directly to whichever tenant first types app.company.com into a form.

If company.com later deletes its project—or creates an A record pointing at 130.210.14.176 before claiming the domain inside the platform—any third party could register the dangling hostname and hijack traffic on the victim's domain.

DomainFA prevents this by keeping every newly created custom binding unroutable (verified: false) until one of two cryptographic proofs resolves publicly:

  1. TXT Challenge Token: Publish _domainfa-verify.<your-host> as a TXT record containing your account-scoped domainfa-verify=<token> secret, then click Verify DNS (POST /api/console/site-bindings/:id/verify).
  2. Unique CNAME Delegation: Point a subdomain via CNAME to your unique <slug>.build.domainfa.com target, whose slug reservation was validated atomically against reserved platform routes at creation time.

When CustomHostMiddleware matches an incoming verified hostname—or serves an instant slug under /s/<slug>/—traffic passes through a strict zero-trust boundary before reaching the container's Vite/static upstream:

  • Zero credential forwarding: Incoming Cookie and Authorization headers are scrubbed so visitors on custom domains never carry or leak domainfa_session credentials into third-party generated JavaScript.
  • No cross-boundary session mutation: Outbound Set-Cookie headers from user containers are dropped, and DomainFA's global csrfGuard rejects any state-changing POST/PUT/DELETE API call whose Referer originates from /preview/ or /s/.
  • Lazy cold-rebuild on idle containers: If a project container was slept or pruned during VPS maintenance, ServeBoundSite reconstructs the sandbox from durable disk custody seamlessly rather than serving a dead 502 or infinite spinner.
Direct Domain Search

Find an available domain across 900+ TLDs