Cloudflare for SaaS (4)
Last updated Jul 1, 2026 The following sections describe how to configure Cloudflare for SaaS with Regional Services and Customer Metadata Boundary to control where your custom hostnames are processed and where logs are stored.
Regional Services
To configure Regional Services for both hostnames proxied (meaning traffic routes through Cloudflare) through Cloudflare and the fallback origin, follow these steps for the dashboard or API configuration:
- In the Cloudflare dashboard, go to the Custom Hostnames page. Go to Custom Hostnames ↗
-
Follow these steps to configure Cloudflare for SaaS.
-
Set the fallback record.
- Create a Custom Hostname.
- Run the API POST command on the Custom Hostname to create a
regional_hostnameswith a specific region.
The Regional Services functionality can be extended to Custom Hostnames and this is dependent on the target of the alias.
Consider the following example.
Note
As a SaaS provider, I might want all of my customers to connect to the nearest data center to them and for all the processing and Cloudflare features to be applied there; however, I might have a few exceptions where I want the processing to only be done in the US.
In this case, I can just keep my fallback record with Earth as the processing region and have all my Custom Hostnames create a CNAME record and use the fallback record as the CNAME target. For any Custom Hostnames that need to be processed in the US, I will create a DNS record for example, us.saasprovider.com and set the processing region to United States of America. In order for the US processing region to be applied, my customers must create a CNAME record and use the us.saasprovider.com as the CNAME target. The origin associated with the Custom Hostname is not used to set the processing region, but instead to route the traffic to the right server.
Below you can find a breakdown of the different ways that you might configure Cloudflare for SaaS and the corresponding processing regions:
- No processing region:
fallback.saasprovider.com - Processing region is the
US:us.saasprovider.com - User location:
UK(closest datacenter:LHR)
| Test | Custom Hostname | Target | Origin | Location |
|---|---|---|---|---|
| 1 | regionalservices-default.example.com |
fallback.saasprovider.com |
default (fallback) | LHR |
| 2 | regionalservices-default2.example.com |
us.saasprovider.com |
default (fallback) | EWR |
| 3 | regionalservices-custom.example.com |
fallback.saasprovider.com |
us.saasprovider.com (custom) |
LHR |
| 4 | regionalservices-custom2.example.com |
us.saasprovider.com |
us.saasprovider.com (custom) |
EWR |
- In order to set a processing region for the fallback record to any of the available regions for Regional Services, create a new regional hostname entry for the fallback via a POST request.
- To update the existing region (for example, from
EUtoUS), make a PATCH request for the fallback to update the processing region accordingly. - To remove the regional services processing region and set it back to
Earth, make a DELETE request to delete the region configuration.
Customer Metadata Boundary
Cloudflare for SaaS Analytics based on HTTP requests are fully supported by Customer Metadata Boundary.
Refer to Cloudflare for SaaS documentation for more information.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/data-localization/how-to/cloudflare-for-saas/#page","headline":"Cloudflare for SaaS","description":"Configure Cloudflare for SaaS with Regional Services and Customer Metadata Boundary.","url":"https://developers.cloudflare.com/data-localization/how-to/cloudflare-for-saas/","inLanguage":"en","image":"https://developers.cloudflare.com/data-localization/how-to/cloudflare-for-saas/og.png?v=2973f6f28493370c","dateModified":"2026-07-01","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
description: Learn how to use a Worker as the fallback origin for your SaaS zone. title: Workers as your fallback origin image: https://developers.cloudflare.com/cloudflare-for-platforms/cloudflare-for-saas/start/advanced-settings/worker-as-origin/og.png?v=152004ef47a578ea
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/cloudflare-for-platforms/llms.txt
Use this file to discover all available pages before exploring further.
Docs