Skip to main content

Traffic Policy Overview

What is Traffic Policy?

The ngrok engine enables you to manage traffic consistently across your endpoints. It allows you to inspect, manipulate, and route traffic in a structured way.

Features

Traffic Policy is composed of a few key components:

  • Phases: Defined points in the traffic lifecycle where you can apply logic.
  • Phase Rules: The set of conditions and actions applied during specific phases to filter, manipulate, or manage traffic.
  • Expressions: Conditions used in Phase Rules to determine when an action should be applied.
  • Actions: Logic that is triggered when a Phase Rule condition is met.
  • Interpolation: A way to dynamically evaluate variables and macros inside configuration values, such as URLs or headers.

Use cases

TK

What's next?

TK