AI Azure Content Safety Policy

Block content with Azure blocklists

Configure the AI Azure Content Safety policy to check content against blocklists that you manage in Azure. With halt_on_blocklist_hit enabled, Azure rejects the request when any blocklist term matches.

Prerequisites

  • An Azure subscription with access to Azure AI Content Safety.

  • An existing AI Model.

  • An existing blocklist in Azure AI Content Safety.

Environment variables

  • CONTENT_SAFETY_URL: The full URL of the Azure AI Content Safety instance.

  • CONTENT_SAFETY_KEY: The API key to access the Azure AI Content Safety instance.

  • BLOCKLIST_NAME: The name of the blocklist in Azure AI Content Safety.

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!