Injection Protection Policy

Custom regex injection

You can specify a custom regular expression by using the custom_injections parameter. To create a custom regular expression, define the following:

  • The name of the regular expression, which appears in the data plane log
  • The regular expression string to match
  • The content to check (for example, headers, path and query, and body)

Set up the policy

Attach the policy

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!