Skip to content

Request Fields

FieldKeyTypeExample
Host (Domain)http.hoststringapi.example.com
HTTP Methodhttp.request.methodstringPOST
Path (without query)http.request.base_uristring/api/v2/login
Last URI Segmenthttp.request.uri.pathstring/login
Query Parametershttp.request.uri.querystringpage=1
URI (with query)http.request.uristring/path?q=1
Full URI (host+path)http.request.full_uristringhttps://example.com/path
HTTP Versionhttp.request.versionstring2
Headerhttp.headername=valueX-Api-Key=secret
Cookiehttp.cookiename=valuesession=abc123
User Agenthttp.user_agentstringMozilla/5.0
Refererhttp.refererURLhttps://example.com
X-Forwarded-For IPhttp.x_forwarded_forstring203.0.113.42
TLS Versiontls.versioninteger (uint16)772
# Protect login endpoint from high bot-score traffic
IF http.request.base_uri has_prefix /login
AND waf.bot_score ge 60
THEN captcha
# Block a specific User-Agent
IF http.user_agent contains BadBot
THEN block