Skip to main content

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.

Traffic Policy Building Blocks