regrex in waf rule for hmac_validation

Hi,

I want to use the regex replace function in (http.host eq "xxx.xxx" and not is_timed_hmac_valid_v0("secret", regex_replace(http.request.uri.path, "/.*$", ""), 10800, http.request.timestamp.sec, 8))

The purpose of this rule is to use the partial path (only want to truncate to the last /" of the uri path) to do the hmac valication.

it throws an error in the WAF custom rule dashboard saying regex_replace is not allowed.

Any solutions to this ?
Was this page helpful?