Using wildcards in WAF Rules

I see that WAF Rules now allows wildcards, presumably as of August 22, 2024:

The Expression Builder creates the expression like so:

http.request.uri.path) wildcard r"/wp-*.php"

but I keep seeing these requests in my error log. Upon reading the docs, though, I don’t see the r prepend anywhere. And when I remove the r manually, the rule is saved with no error.

Is the r a typo in the expression builder, or does it have a meaning that I don’t understand?

Hey there,

The r character is added to specify raw string syntax. I would suggest taking a look at this document for more information on this.

This topic was automatically closed after 15 days. New replies are no longer allowed.