Does firewall rule support regular expression?

Hi,

I just want to create a firewall rule that matches all good bots and when URI path is ended with .exe. I check the document at https://developers.cloudflare.com/ruleset-engine/rules-language/expressions/

It seems that in the sample, the URI path will match if it is ended with /autodiscover.xml or /autodiscover.src. But I cannot find detailed document on whether and how regular expression can be used.

http.request.uri.path matches "/autodiscover\.(xml|src)$"

Please help!
Thanks

Business and Enterprise plans support RegEx. There are operators for matches regex and does not match regex.

Cloudflare Firewall Rules · Cloudflare Firewall Rules docs

1 Like

Thank you very much for your quick and great help!

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.