http.host — Host (Domain)
metin
In the console: Host (Domain)
Represents the hostname the request is targeting. Useful in multi-tenant setups or to apply different rules per subdomain.
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.host == api.example.comTHEN ratelimit 100/60sIF http.host has_suffix .example.comTHEN allow