Whitelisting IPs to be able to receive webhooks

Hi n8n community :slight_smile:

How can I whitelist an IP in order to be able to receive webhook from a thirdparty to my n8n workflow?

Best regards,

Hi @Rmn_Ornk :wave: Welcome to the community :tada:

You could use a reverse proxy if you need this to be IP based - this would have to be handled before the request reaches n8n, essentially.

If you control the service that makes the request, the easiest solution would be adding authentication to the HTTP Request node. n8n checks then if the given user & password matches (Basic Auth) or a required header has the correct value (Header Auth). But since you mentioned third party, this may not be an option for you.

Hi @EmeraldHerald and thanks a lot for taking the time to answer.

Yeah, it is a third party service that requires it to send webhooks so I may not go for the second option.

How would the first option work, and is there any documentation about it (I couldn’t find it)?

HI @Rmn_Ornk - no worries, I had a feeling that might be the case!

Can you tell me how you’ve installed n8n so I can get you the right information? This template would be helpful:

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

I’m using n8n cloud @EmeraldHerald - is it possible in this case?

Hi @Rmn_Ornk - I’m afraid it wouldn’t be at this point in time :see_no_evil: You could however head over to our Feature Request section of the forum, since our product team reads it regularly, and it looks like this has been requested at least once: Feature to restrict webhook_url for n8n

You can upvote and add your use-case to the thread :slight_smile:

Ok @EmeraldHerald, thanks a lot for taking the time to answer me! I’ll reopen the topic on the product side then :wink:

1 Like