Restrciting wild card domains on azure app service

Rashmi Sajjan 56 Reputation points
2021-10-13T07:00:56.213+00:00

I was able to add wildcard domains and attach to out App service.

Now Our concern is , it allows any domains which ends with say '.oursize.com', at least the landing page of website.

Suppose, we asked customer A to use as.oursite.com, if they misspell and use ap.oursite.com, still they will be able to access this and try to login and end up having error.

So, Is there any way, we can add restriction for subdomain? at App service level to allow only some domains or at Traffic manager level or load balancer level?

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,321 questions
Azure Load Balancer
Azure Load Balancer
An Azure service that delivers high availability and network performance to applications.
252 questions
Azure Traffic Manager
Azure Traffic Manager
An Azure service that is used to route incoming network traffic for high performance and availability.
82 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 16,076 Reputation points Microsoft Employee
    2021-10-14T18:18:51.147+00:00

    I would think you could leverage a text pattern style management policy scoped to the traffic manager. I'm not well versed in management policies but hopefully the https://github.com/Azure/azure-policy repo provides some tips and tricks. Another option you could do is create tooling that uses the management REST API to create the resources for your customers. That way, you have complete control over the source metadata and how those resources get created.

    No comments