Skip to content
Cloudflare Docs

Common policies

The following policies are commonly used to secure network traffic.

Refer to the network policies page for a comprehensive list of other selectors, operators, and actions.

To minimize the risk of shadow IT, some organizations choose to limit their users' access to certain web-based tools and applications. For example, the following policy blocks known AI tools:

SelectorOperatorValueAction
ApplicationinArtificial IntelligenceBlock

Configure access on a per user or group basis by adding identity-based conditions to your policies.

SelectorOperatorValueLogicAction
ApplicationinSalesforceAndBlock
User Group NamesinContractors

Require devices to have certain software installed or other configuration attributes. For instructions on enabling a device posture check, refer to the device posture section. For example, you can use a list of device serial numbers to ensure users can only access an application if they connect with the WARP client from a company device:

In the following example, you can use a list of device serial numbers to ensure users can only access an application if they connect with the WARP client from a company device:

SelectorOperatorValueLogicAction
SNI Domainisinternalapp.comAndBlock
Passed Device Posture Checksnot inDevice serial numbers

To require users to re-authenticate after a certain amount of time has elapsed, configure WARP sessions.

Restrict user access to only the specific sites or applications configured in your HTTP policies.

SelectorOperatorValueLogicAction
Detected ProtocolisTLSAndAllow
Destination Portin80, 443
SelectorOperatorValueAction
ProtocolinTCP, UDPBlock

Restrict access to resources which you have connected through Cloudflare Tunnel.

The following example consists of two policies: the first allows specific users to reach your application, and the second blocks all other traffic.

SelectorOperatorValueLogicAction
Destination IPin10.0.0.0/8AndAllow
User Emailmatches regex.*@example.com
SelectorOperatorValueAction
Destination IPin10.0.0.0/8Block

Override traffic directed toward a specific IP address with a different IP address.

SelectorOperatorValueLogicAction
Destination IPin203.0.113.17AndNetwork Override
Destination Portis80
Override IPOverride Port
1.1.1.180