Policies let you define who can or cannot access applications secured behind Cloudflare Access, based on a number of attributes. These attributes include User Identity, network attributes, and device posture.
You can define the scope of a policy by configuring policy actions and policy rules.
Policy actions dictate how a user is routed based on a defined set of policy rules. You can select four types of policy actions:
Grants permission to reach the application to a user or group. Allow will always require authentication through an identity provider.
Explicitly prevents users from reaching an application behind Access.
Disables any Access enforcement on the given path.
Enforces authentication flows that do not require an identity provider IdP login, such as service tokens and mutual TLS.
Policy rules provide the criteria for how a policy actions are applied. There are three types of rules you can configure:
The Include action is similar to an OR logical operator. In case more than one Include rule is specified, users need to meet only one of the criteria.
The Exclude rule works like a NOT logical operator. A user meeting any Exclude criteria won’t be allowed access to the application.
The Require rule works like an AND logical operator. A user must meet all specified Require rules to be allowed access.
Rule criteria help define whether to include or exclude a team member from being influenced by a rule. These are the criteria you can assign to a rule:
- Emails —
- Emails ending in —
- Access groups —
- IP ranges —
192.168.100.14(supports IPv4 and IPv6).
- Everyone — allows, denies, or bypasses access to everyone.
- Country – uses the IP address to determine country.
- Valid Certificate - the request will need to present any valid client certificate.
- Common Name - the request will need to present a valid certificate with an expected common name.
- Any Access Service Token - the request will need to present the headers for any created for this account.
- Service Token - the request will need to present the correct service token headers configured for the specific application
- Identity provider groups — employs the user groups (if supported) you configured with your identity provider (IdP) or LDAP with Access. The IdP group option only displays if you use an identity provider that passes groups using SAML or OAuth Scope.
- Authentication Method - checks the method used by the user, if supported by the identity provider.
Policies are properties of applications. Creating the first policy for an application is part of the set up process for that application.
You can then choose to edit or delete that first policy after completing the application setup, or you can decide to add new policies to the application, all from the Applications section of the Teams dashboard.
There is no limit to the number of policies you can set up for your applications.
To make any changes to an application’s policies:
- On the Teams dashboard, navigate to the Access > Applications page.
- Locate the application for which you want to change the policies.
- Click Edit. This will automatically redirect you to the app’s Policies section.
- Once in the Policies section:
- To make changes to an existing policy, click Edit.
- To delete a policy, click Delete.
- To add a new policy, click Add a policy on top of the Policies card.
- Once you’ve made all the necessary changes, click Save application.