Traffic Policy
ngrok's Traffic Policy is a powerful configuration language for ngrok endpoints and edges, offering the flexibility to filter, match, manage and orchestrate traffic exactly as you need.
With ngrok's Traffic Policy you can validate incoming traffic, block malicious traffic, rewrite URLs, respond with custom content, forward traffic to your agents running across the globe and more...
Get Started
Learn how traffic policies work, key concepts, examples, and identity management principles.
Quickstart
Apply a traffic policy to your app with the ngrok agent in 5 minutes.
Get started with Traffic Policy →Looking to do more with Traffic Policy?
Learn the Concepts
Deep dive into the parts that make up a traffic policy and how it works.
Read more →Explore Examples and Use-Cases
Dive into practical examples, use-cases, and guides to see traffic policies in action.
View Examples →Understand Traffic Identity
Learn how you can manage users authenticated with OAuth, SAML, and OIDC actions.
View Examples →Traffic Policy Building Blocks
Actions to Control & Manage your Traffic
Utilize actions, such as add-headers and rate-limit, to transform, redirect, and manage traffic flow with advanced control options.
Explore Actions →