Website Security & Threat Management
Go wild: Wildcard support in Rules and a new open-source wildcard crate

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

8/22/2024 · Nikita Cano, Diogo Sousa

What this post added

Introduced wildcard support (case-insensitive 'wildcard' and case-sensitive 'strict wildcard' operators) to the Ruleset Engine, enabling flexible pattern matching for various string fields. Developed the `wildcard_replace()` function for Single Redirects to dynamically construct redirect URLs using captured wildcard segments. Introduced a simplified UI for Single Redirects to facilitate wildcard pattern configuration without complex functions. Built a custom Rust crate for wildcard matching, optimizing for performance and supporting byte-oriented matching and escape sequences, while limiting the number of asterisks to ensure predictable performance.

Read the original post ↗