Skip to content

RegexPatternRule

Defined in: packages/gateway/src/policies/traffic/regex-threat-protection.ts:16

A single pattern rule with target areas and optional custom message.

optional message?: string

Defined in: packages/gateway/src/policies/traffic/regex-threat-protection.ts:22

Custom error message when this pattern matches.


regex: string

Defined in: packages/gateway/src/policies/traffic/regex-threat-protection.ts:18

Regular expression pattern string.


targets: ("headers" | "query" | "body" | "path")[]

Defined in: packages/gateway/src/policies/traffic/regex-threat-protection.ts:20

Which parts of the request to scan.