Rule Gallery
Explore a curated collection of example configurations spanning from common to unconventional use-cases for the Traffic Policy module.
Deny non-GET requests:
This rule denies all inbound traffic that is not a GET request.
- YAML
- JSON
# snippet
---
inbound:
- expressions:
- "req.method != 'GET'"
actions:
- type: "deny"
// snippet
{
"inbound": [
{
"expressions": [
"req.method != 'GET'"
],
"actions": [
{
"type": "deny"
}
]
}
]
}