To limit access to your Azure web app using Azure Firewall. Absolutely, you can achieve that, but it's important to use Azure's access restrictions and related features to fine-tune your app's security.
- Azure App Service Access Restrictions You can set up rules to filter incoming requests to your web app. This works a bit like a firewall, where you can create allow and deny lists based on IP addresses or service endpoints.
- You can restrict access by adding specific IP addresses that are allowed to reach your app. This helps in scenarios where you only want traffic from certain known IPs. For detailed steps, you can refer to the documentation here.
- Service Endpoint Restrictions: If your app needs to be accessed only from certain subnets within a Virtual Network, you can create service endpoint rules that restrict access to those subnets. This is particularly useful for securing internal applications. More details can be found here.
- If you're also using Azure Application Gateway, you can configure it to provide an additional layer of security, ensuring that only traffic from the gateway reaches your app.
- For an extra layer of security, consider implementing authentication schemes through the App Service authentication settings. This will help restrict access based on user identity.
If the answer is helpful, please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefitted from it.
Let me know if you have any further Queries.