RegexThreatProtectionConfig
Defined in: src/policies/traffic/regex-threat-protection.ts:24
Configuration for the regexThreatProtection policy.
Extends
Section titled “Extends”Properties
Section titled “Properties”contentTypes?
Section titled “contentTypes?”
optionalcontentTypes:string[]
Defined in: src/policies/traffic/regex-threat-protection.ts:30
Only inspect body for these content types. Default: ["application/json", "text/plain"].
flags?
Section titled “flags?”
optionalflags:string
Defined in: src/policies/traffic/regex-threat-protection.ts:28
Regex flags applied to all patterns. Default: "i" (case-insensitive).
maxBodyScanLength?
Section titled “maxBodyScanLength?”
optionalmaxBodyScanLength:number
Defined in: src/policies/traffic/regex-threat-protection.ts:32
Maximum body bytes to scan. Default: 65536 (64KB).
patterns
Section titled “patterns”patterns:
RegexPatternRule[]
Defined in: src/policies/traffic/regex-threat-protection.ts:26
Pattern rules to evaluate against request data.
skip()?
Section titled “skip()?”
optionalskip: (c) =>boolean|Promise<boolean>
Defined in: src/policies/types.ts:33
Skip this policy when condition returns true
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean | Promise<boolean>