AI Prompt Guard Policy

Allow and deny

This configuration sets up the AI Prompt Guard policy to semantically filter incoming requests based on pattern matching.

In this example:

  • Requests are allowed if they match common IT-related question formats like “what is”, “how do I”, or “install”.
  • Requests are denied if they contain sensitive or inappropriate terms such as “hack”, “phish”, “malware”, or “cve”.

For a complete tutorial on this example, see Use AI Prompt Guard Policy to govern your LLM traffic.

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!