Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

haythoo's avatar

Allowed IP Address

Hi, Sorry for the silly question. I'm not a network expert. I have vapor deployment, and I want to block access to the deployment and allow it for certain IP addresses only, "our company IP address". How to achieve that? If it is a security group configuration, where to implement this?

0 likes
1 reply
haythoo's avatar

Thanks to Joe from Vapor team.

I'm afraid that's not possible natively. You'd need to look into adding IP restrictions via WAF or using Laravel to implement basic auth. Please note, due to limitations with AWS, basic auth is only available when using a load balancer. You can read more about it here: https://docs.aws.amazon.com/apigateway/latest/developerguide/apigateway-control-access-aws-waf.html

I followed this tutorial this get it done: https://repost.aws/knowledge-center/waf-allow-my-ip-block-other-ip

Please or to participate in this conversation.