Equivalent CPL rules, without the use of Regex.
Using Regex is known to consume more CPU usage when evaluating policy.
See the equivalent CPL rules below, without the regex.
1.
url.regex="careers.example.com"
url.host="careers.example.com"
url.regex="example.com"
url.host="example.com"
In this modified rule, we use the "url.host" attribute to directly match the domain "careers.example.com" without requiring regex. The same applies, wherever this is used.
2.
url.regex="upload"
url.path="/upload"
In this modified rule, we use the "url.path" attribute to directly match the path "/upload" without requiring regex. The same applies, wherever this is used.
Note: Make sure to apply the changes to the Content Policy in your ProxySG according to your organization's policies and requirements.