Cloudflare

Go wild: Wildcard support in Rules and a new open-source wildcard crate

Aug 22, 2024Nikita Cano, Diogo Sousa
Go wild: Wildcard support in Rules and a new open-source wildcard crate
SummaryAI, from the source post

Introduced wildcard support ('wildcard' and 'strict wildcard' operators) to the Ruleset Engine, enabling flexible pattern matching in various Cloudflare products. Developed a custom Rust crate for byte-oriented, UTF-8 compatible wildcard matching with substring capture, supporting up to 8 asterisks and escape sequences. Implemented the `wildcard_replace()` function for dynamic URL redirection in Single Redirects and added a simplified UI for wildcard pattern configuration.

More from the Website Security & Threat Management trail