http.request.base_uri — Path (without query)
metin
In the console: Path (without query)
The full path without the query string: for a request to /admin/login?next=/panel its value is /admin/login. It is the primary field for path-based rules (directory protection, endpoint targeting) — http.request.uri.path carries only the last segment, while base_uri gives you the whole path.
Supported Operators
Section titled “Supported Operators”| Operator | Description |
|---|---|
== | Exact match |
!= | Not equal |
in | In list |
not_in | Not in list |
contains | Contains |
not_contains | Does not contain |
has_prefix | Starts with |
has_not_prefix | Does not start with |
has_suffix | Ends with |
has_not_suffix | Does not end with |
Examples
Section titled “Examples”IF http.request.base_uri has_prefix /api/THEN ratelimit 100/60sIF http.request.base_uri has_suffix .phpTHEN block