Skip to main content

Actions

Traffic Policy Actions enable you to manipulate, route or manage traffic on your endpoints in various ways.

Learn how actions work →

List of Available Actions

The following actions are available for use on your endpoints:

add-headers

Add headers to your incoming requests or outgoing responses.

on_http_requeston_http_response

basic-auth

Enforce HTTP Basic Auth for your HTTP endpoints.

on_http_request

circuit-breaker

Maintain system reliability by rejecting requests when error rates exceed defined thresholds.

on_http_request

compress-response

Compress HTTP response bodies from your upstream server.

on_http_requeston_http_response

custom-response

Send a custom HTTP response directly back to the client.

on_http_requeston_http_response

deny

Deny incoming traffic to your endpoint at the HTTP layer.

on_http_requeston_tcp_connect

forward-internal

Forward traffic to an internal endpoint within the same ngrok account.

on_http_requeston_tcp_connect

jwt-validation

Validate JSON Web Tokens (JWTs) on your incoming requests.

on_http_request

log

Add log metadata to events for logging and monitoring.

on_http_requeston_http_responseon_tcp_connect

rate-limit

Rate limit incoming traffic to your endpoint before it hits your upstream servers.

on_http_request

redirect

Redirect users through URL transformations using regular expressions.

on_http_request

remove-headers

Remove headers from incoming requests or outgoing responses.

on_http_requeston_http_response

restrict-ips

Allow or deny incoming traffic based on the client IP.

on_http_requeston_tcp_connect

terminate-tls

Control the behavior of TLS termination on your endpoints.

on_tcp_connect

url-rewrite

Rewrite request URLs transparently using regular expressions.

on_http_request

verify-webhook

Validate incoming signatures against a known secret to ensure authenticity.

on_http_request