I have created an Azure Web App and put that behind Application Gateway & WAF V2. I have also added custom domain on the App Service.
Azure default domain – webapp.azurewebsite.net
Custom Domain – webapp.mycompany.com (This DNS mapped with Application Gateway Frontend IP).
Now I am trying to block access to Azure default domain (webapp.azurewebsite.net), but Custom Domain (webapp.mycompany.com) should work.
I tried with App Service Networking access restriction and allowed only from Application gateway. But didn’t work as expected (both default domain & custom domain getting blocked).
Is there anyway to block Public Access to Azure default domain only?
1