Filter webhook entries by IP ou url


I’m on n8n cloud.

My question might be dumb: I have a workflow that start with a webhook, is there any way to filter and allow the incoming URL or IP from where the message comes from ?

Example: if the message reach the webhook url from 192.168.X.X or from, then authorize and pursue the workflow, otherwhise block and end the workflow.

Hey @Yoann,

Depending on the request type you can check the headers for x-real-ip or x-forwarded-for which will give you the IP it won’t be the internal IP of your machine but instead the public IP but to get you started for Get requests you can use the below.


Thank you very much for your prompt and detailed response @Jon


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.