Hello , Welcome to MS Q&A
To enforce inbound restrictions on Azure App Service and redirect users who directly hit the App Service URL to the setup domains, you can follow these steps:
Set Up Access Restrictions: - Configure access restriction rules that allow or deny traffic based on IP addresses or Azure Virtual Network subnets. This can be done by setting up a priority-ordered allow/deny list that controls network access to your app. If a request does not match any rules, it will receive an HTTP 403 status code.
Implement URL Redirection: - You can implement URL redirection within your application code or use Azure Application Gateway. By configuring the Application Gateway to restrict access, you can ensure that only traffic from specific sources is allowed, effectively redirecting unwanted traffic.
References:
- Azure App Service access restrictions
- Set up Azure App Service access restrictions
- Configure App Service with Application Gateway
Kindly accept answer if it helps
Please let us know if further questions
Thanks
Deepanshu