Whitelist inbound IP address for Azure WebApp? Whitelist inbound IP address for Azure WebApp? azure azure

Whitelist inbound IP address for Azure WebApp?


You can restrict IP addresses in the web.config using the ipSecurity element like so:

<system.webServer>  <security>     <ipSecurity allowUnlisted="false">       <add ipAddress="XXX.XXX.XXX.XXX" allowed="true" />     </ipSecurity>  </security></system.webServer>

Full documentation on the ipSecurity element: https://www.iis.net/configreference/system.webserver/security/ipsecurity

Azure Web App support for the feature:https://azure.microsoft.com/en-us/blog/ip-and-domain-restrictions-for-windows-azure-web-sites/