Application Library, App Types, Granular Controls, and Domain Categories
How Cloudflare One Gateway matches SaaS applications, custom apps, operations, and domain categories in DNS and HTTP policies.
This page summarizes Cloudflare One Gateway documentation on controlling outbound traffic by application name, app type, Application Granular Controls, and domain categories—instead of writing separate hostname rules for every SaaS endpoint.
Gateway allows you to create DNS, Network, and HTTP policies based on applications and application types. Because a single application often spans multiple hostnames, selecting an application by name is easier than writing separate rules for each hostname.
— Cloudflare, Applications and app types
Application selector in Gateway policies: block SaaS by name
Section titled “Application selector in Gateway policies: block SaaS by name”Gateway DNS, network, and HTTP policies can use the Application selector so traffic is matched to a catalog entry (for example ChatGPT or Google Drive) rather than individual domains. The Value field in the policy builder lists supported applications and their app types; the Gateway API can return application lists and numeric IDs. The consolidated catalog lives in the Application Library.
| Policy type | Typical use of Application selector |
|---|---|
| DNS | Outbound resolution and filtering by application (expanded catalog; see changelog) |
| HTTP | Allow or block app traffic; optional Application Granular Controls on supported SaaS |
| Network | Match destinations tied to application definitions (including custom apps with ports) |
Hostnames versus support hostnames
Section titled “Hostnames versus support hostnames”Applications split traffic into hostnames (core to the app) and support hostnames (shared auth, CDN, or integrations).
Hostnames are domains that are core to the application and not used by other applications. These are the domains that Gateway blocks when you block an application.
— Cloudflare, Applications and app types
Support hostnames are shared resources that applications depend on for content delivery, authentication, or third-party integrations. Because multiple applications share these hostnames, blocking them can cause unexpected side effects.
— Cloudflare, Applications and app types
Gateway uses support hostnames only in Allow policies—it will allow those connections but will not Block on them alone. Blocking a shared login domain without this model can break allowed apps (for example accounts.google.com for many Google apps).
App types: how Gateway groups applications for policy
Section titled “App types: how Gateway groups applications for policy”App types are category labels (Artificial Intelligence, File Sharing, Productivity, and dozens more) used when you filter by type instead of a single app name. The full table is in Applications and app types (values such as Artificial Intelligence, File Sharing, Do Not Inspect for apps incompatible with the TLS certificate required by the Gateway proxy).
New application categories and remapping deadline
Section titled “New application categories and remapping deadline”Gateway added finer application categories for HTTP traffic management:
We have added the following categories to provide more precise organization and allow for finer-grained policy creation, designed around how users interact with different types of applications: Business, Education, Entertainment & Events, Food & Drink, Health & Fitness, Lifestyle, Navigation, Photography & Graphic Design, Travel.
— Cloudflare, New Application Categories added for HTTP Traffic Management
The new categories are live, but many apps still move from older types until January 30, 2026. After remapping, policies that targeted old groupings may allow or block different traffic unless you update rules. Cloudflare publishes an applications remapping table (for example Google Photos File Sharing → Photography & Graphic Design, DoorDash Shopping → Food & Drink).
Terraform users can resolve names to IDs with the cloudflare_zero_trust_gateway_app_types_list data source (example in Applications and app types).
Application Library custom applications: define your own app object
Section titled “Application Library custom applications: define your own app object”You can register custom applications in the Application Library and reference them in DNS, HTTP, and network policies like managed apps.
Starting today, you can create custom applications in the Application Library and reference them in Gateway DNS, Network, and HTTP policies. You can define an application with hostnames, IP subnets, or both. Then, optionally add TCP or UDP ports or port ranges to restrict HTTP and Network matching.
— Cloudflare, Application Library now supports custom applications
Creation steps are in Custom applications: Zero Trust → Team & Resources → Application library → Add custom application, then name, category, at least one Hostname or IP subnet, optional Support hostnames and Port protocols. Creating an app does not create a policy—you must reference it in Traffic policies.
Custom application matching rules
Section titled “Custom application matching rules”Gateway matches a custom application when the hostname or destination IP matches its definition. If the definition includes both hostnames and IP subnets, either can match independently.
— Cloudflare, Applications and app types
Hostnames match the domain and its subdomains (example.com includes api.example.com). For HTTP and network policies, configured port/protocol pairs further restrict matches; if Port protocols is empty, any port applies. A port match alone does not identify an app.
DNS policies match the query hostname (and resolved IPs where applicable) and do not use port constraints on the application object—so a query for crm.example.com can match even if the later connection uses a non-matching port.
Numeric application ID for API and Terraform
Section titled “Numeric application ID for API and Terraform”The human-readable Application ID from the form is not the ID used in expressions. For API rules use the assigned numeric ID, for example any(app.ids[*] in {<CUSTOM_APPLICATION_NUMERIC_ID>}). List apps with GET /accounts/{account_id}/resource-library/applications; the legacy app_types endpoint returns only the managed catalog (Applications and app types). Editing hostnames or subnets updates what rules match after propagation; you do not need new rule expressions. A custom application cannot be deleted while any Gateway rule or reusable profile references it, including disabled rules.
Application Granular Controls: allow SaaS but block uploads or prompts
Section titled “Application Granular Controls: allow SaaS but block uploads or prompts”Application Granular Controls apply to selected SaaS apps in HTTP policies when traffic uses the Application selector with the is operator.
With Application Granular Controls, you can create Gateway HTTP policies to control specific user actions within supported SaaS applications. This allows you to give users access to an application while restricting the actions that they can take within the application.
— Cloudflare, Application Granular Controls
Prerequisites for granular HTTP controls
Section titled “Prerequisites for granular HTTP controls”| Requirement | Purpose |
|---|---|
| Cloudflare or custom certificate on user devices | TLS trust for inspection |
| TLS decryption enabled | See application-layer operations |
| Gateway proxy enabled | Inline HTTP policy enforcement |
| (Optional) Gateway proxy for UDP | Apps using HTTP/3 |
| (Optional) DLP payload encryption public key | AI prompt logging |
Full list: Application Granular Controls.
Application Controls versus Operations
Section titled “Application Controls versus Operations”Application Controls are curated groupings of Operations which provide an easy way for users to achieve a specific outcome. Application Controls may include Upload, Download, Prompt, Voice, and Share depending on the application. Operations are controls aligned to the most granular action a user can take.
— Cloudflare, Application granular controls for operations in SaaS applications
Use Application Controls when a preset (for example Upload) matches your intent. Use Operations for API-level precision; when both Web Application API and Platform API operations exist, pick the API in use or include both (Application Granular Controls).
Supported apps listed in Application Granular Controls and Applications and app types include AI (ChatGPT, Google Gemini, Perplexity, Claude) and file sharing (Box, Dropbox, Google Drive, WeTransfer, and others).
Example: block ChatGPT uploads in the dashboard or API
Section titled “Example: block ChatGPT uploads in the dashboard or API”In Zero Trust → Traffic policies → Firewall policies → HTTP, traffic must include Application is ChatGPT, Controls such as Upload, action Block (Application Granular Controls). The same pattern appears in HTTP policies.
API example (traffic expression uses app and control IDs):
curl "https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/gateway/rules" \ --request POST \ --header "Authorization: Bearer $CLOUDFLARE_API_TOKEN" \ --json '{ "name": "Block ChatGPT uploads", "enabled": true, "action": "block", "filters": ["http"], "traffic": "any(app.ids[*] == 1199) and any(app_control.controls[*] in {1653})" }'Pair granular controls with Data Loss Prevention (DLP) when you need to scan file content or AI prompts; target operations that carry scannable payload (for example the upload content step, not only metadata).
Domain categories: DNS and HTTP filtering by Radar classification
Section titled “Domain categories: DNS and HTTP filtering by Radar classification”Separate from app types, domain categories classify any FQDN for content and security filtering in DNS and HTTP policies (Domain categories).
Cloudflare Gateway allows you to block known and potential security risks on the public Internet, as well as specific categories of content.
— Cloudflare, Domain categories
| Class | Source (per Cloudflare) |
|---|---|
| Content categories | Upstream vendor taxonomy |
| Security risks | Internal models (age, reputation, etc.) |
| Security threats | ML, feeds, open-source intel |
Examples include Malware, Phishing, Scam (category ID 191; changelog), Compromised Domain, and Potentially Unwanted Software (Domain Categories improvements). Technology subcategories such as Remote Access, Shareware/Freeware, and Keep Awake Software were added under parent Technology (New domain categories added).
Policy builders expose selectors such as Content Categories (any(http.request.uri.content_category[*] in {1}) in HTTP policies) and Security Categories / Security Risks on HTTP and network policies (Network policies, Gateway policy expressions).
Uncategorized subdomains inherit the parent domain’s category until Gateway assigns the subdomain its own category (Domain categories).
Request a domain categorization change
Section titled “Request a domain categorization change”If Gateway blocks a site due to category intel, you can request review via Change categorization (dashboard Investigate, Cloudflare Radar feedback, or POST to the miscategorization API). Content category changes are limited to two content categories per domain. Cloudflare does not guarantee approval. For incorrect security blocks, Gateway troubleshooting points to the Radar categorization feedback form.
Common mistakes when using applications and categories
Section titled “Common mistakes when using applications and categories”- Blocking an app without Allow coverage for support hostnames, breaking login or CDN dependencies (Applications and app types).
- Using the human-readable custom Application ID in API expressions instead of the numeric
app.idsvalue (Custom applications). - Expecting port constraints on DNS application matches while HTTP connection ports differ (Applications and app types).
- Granular controls without TLS decryption, proxy, and certificates—controls will not see in-app operations (Application Granular Controls).
- Policies still referencing deprecated Bard (
1198) instead of Gemini (1340). - Relying on old app type groupings past the January 30, 2026 remapping without revisiting HTTP policies (Applications to be remapped).
- Confusing domain content categories with Application Library app types—they use different selectors and IDs (Domain categories vs Applications and app types).
How to check this on your site
Section titled “How to check this on your site”- In the Cloudflare Zero Trust dashboard, open My Team → Application library and confirm managed and custom applications show the hostnames, support hostnames, and categories you expect.
- Review Traffic policies for rules using Application, app types, Content Categories, or Security Categories, and update any reference to deprecated Bard or pre-remapping app types before January 30, 2026 (Applications to be remapped).
- For DNS category rules, use Test DNS filtering test domains (for example
malware.testcategory.comfor Malware) to confirm allow/block behavior. - Inspect Gateway logs after a test session to verify matched application names, categories, and granular control actions align with policy intent (Domain categories).
- You can check automatically in Answerwell (our tool): https://answerwell.org/workspace
Report an error or ask a question
Section titled “Report an error or ask a question”If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact statement you are asking about, and we will correct or clarify it.