Zero Trust Access Applications, Policy Rules, and Clientless Hostnames
How Cloudflare Access applications, Allow policies, and public hostnames gate self-hosted and SaaS apps without a traditional VPN.
This page summarizes Cloudflare documentation on Cloudflare Access in Access controls: how to register applications, choose an application type, write Access policies, and publish internal tools on public hostnames for clientless access (browser-only, no VPN).
What Cloudflare Access does: identity check on every request
Section titled “What Cloudflare Access does: identity check on every request”Cloudflare Access sits in front of your application and checks each request against Access policies before traffic reaches the origin.
Cloudflare Access allows you to secure your web applications by acting as an identity-aware proxy. Access sits in front of your application and checks each request against your Access policies before allowing it through. You can use signals from your existing identity providers (IdPs), device posture providers, and other selectors to control who can reach the application.
— Cloudflare, Add web applications
For self-hosted apps, users authenticate (IdP, one-time PIN, service tokens, and similar signals); Cloudflare only forwards allowed requests. SaaS apps use Access as an identity proxy with SAML/OIDC. The same policy engine also covers infrastructure targets and Workers when you model them as applications.
Access application types: which one matches your app
Section titled “Access application types: which one matches your app”Cloudflare Access supports several application types; choice depends on hosting, how users connect, and session control. See Choose an application type.
| Application type | What it protects | Cloudflare One Client often required? | Clientless access |
|---|---|---|---|
| Self-hosted | Your web apps, private IPs/hostnames, Workers | Depends on public vs private destination | Yes (public hostnames, browser isolation, cloudflared) |
| SaaS | Third-party tools (e.g. Salesforce, Workday) | No | N/A — users hit the SaaS URL |
| Infrastructure | Servers, clusters, databases on private networks | Yes | No |
| Bookmark | External URLs in App Launcher only | No | N/A |
Self-hosted applications are the default for most deployments: full policy engine, session management, application tokens, device posture, and IdP groups.
Self-hosted applications are the most versatile application type and account for the majority of Access deployments.
— Cloudflare, Choose an application type
Public hostname vs private IP: clientless access and tunnels
Section titled “Public hostname vs private IP: clientless access and tunnels”Public hostname applications (browser-only access)
Section titled “Public hostname applications (browser-only access)”If DNS is on Cloudflare (full setup or partial CNAME), match the app hostname so Cloudflare proxies the request, shows login, then forwards after policy match.
If your application is already on the public Internet with DNS managed through Cloudflare (or a partial CNAME setup, where your DNS is hosted elsewhere but Cloudflare proxies the traffic), you can place Access in front of it by matching the application’s hostname. Cloudflare proxies the request, presents a login page, and only forwards traffic to your origin after the user passes your Access policies.
— Cloudflare, Choose an application type
In clientless access deployments, users reach internal apps via public hostnames. You need a domain on Cloudflare as authoritative DNS (Enterprise may use CNAME setup). One domain can back many subdomains. See Add a site and Publish a self-hosted application to the Internet.
In clientless access deployments, users connect to internal applications via public hostnames. You will need to own a domain, add it to Cloudflare, and configure Cloudflare as the authoritative DNS provider for that domain.
— Cloudflare, Add a site
Recommended pattern: publish internal HTTP(S) via a tunnel public hostname and protect it with Access policies—no client software on the device. See Network-focused migration from VPN concentrators to Zero Trust Network Access.
Private IP and private hostname applications
Section titled “Private IP and private hostname applications”Private network applications have no public DNS; traffic must route through Cloudflare Gateway, usually via the Cloudflare One Client, Cloudflare Tunnel, or Cloudflare Mesh. Policies can target private IPs, hostnames, CIDR ranges, and ports. See Secure a private IP or hostname and Choose an application type.
A private hostname Access application wins over a matching private IP application when DNS resolves to that IP. Overlapping destinations use specificity rules (hostname vs IP, port, virtual network, protocol)—documented in Secure a private IP or hostname.
Create an Access application: deny by default until Allow policies exist
Section titled “Create an Access application: deny by default until Allow policies exist”All Access applications are deny by default; users need a matching Allow policy.
-
In the Cloudflare dashboard, open Zero Trust → Access controls → Applications and choose Create new application (Create an Access application).
-
Select Self-hosted and private, then Add public hostname (or private destination per Secure a private IP or hostname).
-
Pick the domain (active zone) or a custom hostname; use Application paths for apex, subdomains, paths, or wildcards.
-
Attach Access policies (new or reusable). With no policy, every request is denied (Cloudflare Access).
-
Configure identity providers, session duration, and optional Apply instant authentication for a single IdP. Select Create.
All Access applications are deny by default – a user must match an Allow policy before they are granted access.
— Cloudflare, Create an Access application
Application paths define which URLs a policy covers—whole site (apex) or specific paths (Application paths).
Access policies: actions, Include, Require, Exclude, and reusable policies
Section titled “Access policies: actions, Include, Require, Exclude, and reusable policies”Policies define who may log in. Manage them under Zero Trust → Access controls → Policies and reuse across apps (Manage Access policies).
Every Access policy has four building blocks:
Actions: What happens when a user matches the policy (Allow, Block, Bypass, or Service Auth) Rule types: How criteria are combined (Include, Require, or Exclude) Selectors: The attributes being checked (for example, email domain, country, or device posture) Values: The specific values to match against (for example, @example.com)
— Cloudflare, Policies
| Rule type | Role |
|---|---|
| Include | Required; defines the eligible user pool |
| Require | AND — user must meet all Require rules |
| Exclude | NOT — matching users are denied |
Actions: Allow (human users), Service Auth (service tokens / machine access), Bypass (no Access enforcement—narrow scope only), Block.
Common Allow policy patterns
Section titled “Common Allow policy patterns”Examples live in Common policies:
- Employees by email domain: Allow, Include, Emails ending in,
@example.com. - Contractors with OTP: pair OTP Login methods with specific email domains—not OTP in Include alone.
- Sensitive apps: purpose justification, device posture, IdP groups.
- Public endpoints (OAuth callbacks, webhooks): separate app/path with Bypass for
Everyone—scoped narrowly.
Bypass disables all Access security controls and request logging for matching traffic. Scope Bypass policies as narrowly as possible and never use them as a persistent access mechanism for users or services.
— Cloudflare, Common policies
For automation, use Service Auth and service tokens instead of Bypass (Connect to a private database using Tunnel).
Access Groups, rule groups, and reusable policies
Section titled “Access Groups, rule groups, and reusable policies”Access Groups aggregate user/device criteria once and reference them in many policies (Designing ZTNA access policies for Cloudflare Access). Rule groups bundle rules for reuse (Rule groups). Cloudflare also treats Access policies as standalone objects reusable across applications (Access changelog).
Policy tester: test one policy or all policies on an application before rollout (Manage Access policies).
Selectors people actually use
Section titled “Selectors people actually use”Identity selectors (email, IdP groups, login methods, MFA) are mostly evaluated at login. IP ranges, country, device posture, Gateway, WARP, and service tokens can be re-evaluated on requests (Policies selector table). External Evaluation calls your API after IdP auth (External Evaluation rules).
Common mistakes when writing Access policies
Section titled “Common mistakes when writing Access policies”- Include → Everyone → Everyone on Allow — effectively open access (Policies).
- Include → Login Methods → One-time PIN without email domain restriction — any valid email can get a code (Common policies).
- Bypass too broad — loses logging and all Access controls (Common policies).
- Integrated SSO with internal ACS URLs — clientless users may fail when redirects hit unresolved internal hostnames (Applications with integrated SSO).
- Port in application URL — Access cannot enforce policy on
hostname:portin the URL; point non-standard ports via Cloudflare Tunnel (Policies FAQ).
Best practices: standardize public hostnames (connect private applications best practices); one primary domain per app unless SPAs/iframes need multiple domains (access application best practices); mix onboarding paths by app type (migrate applications best practices).
Origin security: validate the Access application token
Section titled “Origin security: validate the Access application token”Publishing with a public hostname does not by itself stop direct origin access. Validate the application token Cloudflare Access issues—or enable Protect with Access on cloudflared (Publish a self-hosted application to the Internet, Protect your origin server).
Integrated SSO and clientless migration (high level)
Section titled “Integrated SSO and clientless migration (high level)”Apps with integrated SSO (ACS URL on an internal domain) break when users have no corporate DNS. Cloudflare documents paths: move ACS to the tunnel public hostname, delegate matching external domains, consume the Cloudflare JWT in the app, or use Access for SaaS as the SSO front door (Applications with integrated SSO). Each path trades cutover risk against DNS and code changes.
How to check this on your site
Section titled “How to check this on your site”-
Open Zero Trust → Access controls → Applications, select your app, and use Test login or Policies → Policy tester with a real user email (Private web application, Manage Access policies).
-
Confirm at least one Allow policy matches intended users and that Bypass policies, if any, apply only to narrow paths (Common policies).
-
For tunneled origins, verify Protect with Access or manual JWT validation is enabled (Publish a self-hosted application to the Internet).
-
For private destinations, confirm the Cloudflare One Client or your chosen on-ramp matches the app type (Secure a private IP or hostname).
-
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.