Actions
Traffic Policy actions enable you to modify the behavior of traffic flowing through your endpoints. The following actions are available for use on your endpoints:
Type | Description | Supported On |
---|---|---|
add-headers | Add custom headers to incoming requests or outgoing responses. | Inbound, Outbound |
compress-response | Compress HTTP response bodies from your upstream server. | Inbound, Outbound |
custom-response | Send a predefined custom response directly to the client. | Inbound, Outbound |
deny | Block incoming traffic to an endpoint. | Inbound |
forward-internal | Forward traffic to an endpoint within the same ngrok account. | Inbound |
jwt-validation | Validate JSON Web Tokens (JWT). | Inbound |
log | Add metadata to events for logging and monitoring. | Inbound, Outbound |
rate-limit | Rate limit traffic to your upstream servers. | Inbound |
redirect | Redirect users through URL transformations using regular expressions. | Inbound |
remove-headers | Remove headers from incoming requests or outgoing responses. | Inbound, Outbound |
restrict-ips | Allow or deny traffic based on source IP. | Inbound |
url-rewrite | Rewrite request URLs transparently using regular expressions. | Inbound |