Encryption rule conditions
-
- UpdatedJan 30, 2025
- 2 minutes to read
- Yokohama
- Edge Encryption
Encryption rule conditions determine if the rule should be executed.
An encryption rule condition must return true if the rule is to handle the HTTP request; otherwise, it must return false.
As you build your condition, keep in mind that only one rule is executed per request. As a
result, the condition must be as general or specific as needed to run under the intended
circumstances.
Note: Be careful when performing checks on content in the condition. Excessive
checks can be expensive for the proxy server and may cause increased latency when handling
complex requests.
The condition can use the method type, content type, URL path, or any URL query string
parameters to determine if the rule should handle the request. The condition has access to these
fields via the request object. Be sure that,
prior to creating an encryption rule condition, you have inspected the client request and
understand the conditions needed to trigger the rule.
Note: To build efficient rules, consider
easy ways to rule out requests that you do not want to be evaluated by a rule. Build your
condition to return false for those requests first. This method increases performance and
quickly routes the request to the correct rule faster.
Encryption rule objects and APIs are available to encryption rule conditions.