'Cloud Armor Matching rule

My goal is to match evaluatePreconfiguredExpr('sqli-stable') except certain requestUrls. I have setup this expression without any luck:

"expression": "!request.headers['host'].lower().contains('exclude/this/path') && evaluatePreconfiguredExpr('sqli-stable')

Any suggestions?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source