I would like to create a firewall for one of my apis.
The API I am using is too strong, has too much potential for damage to expose on a Wordpress backend. So I would like to make a “firewall” by registering a webhook with a url of. “n8n.domain.com/customservice/{{regex(.*)}}” so any time we hit that end point this webhook is triggered. Then my goal is to filter the incoming requests look for evidence of abuse/misuse and the forward the real api.
Hi @roofboard, there is some flexibility about the path, as long as you can live with the webhook ID being part of your path. So, if you can live with something like https://your.n8n.domain/webhook/$uuid/* that would work:
In this example I called https://mutedjam.app.n8n.cloud/webhook-test/1c04b027-39d2-491a-a9c6-194289fe400c/foo, and foo is recognized as a path parameter (and of course be changed as needed in the URL).