Is it possible to disable the default URL assigned to the azure web app?

Copper Contributor
Is it possible to disable the default URL <webapp> for a web app?
5 Replies



I don't think you can turn off access to the website via [your cloud service name] domain.
However what you could do is include a rewrite rule in your web.config, so that whenever someone tries to access your website via domain, they are automatically redirected to your custom domain.

How to: Redirect the default * domain to your custom domain on Azure Web Apps

Setup custom domain URL



An App Service might be running in an App Service Environment though, and their default hostnames are different to (see, I believe you can even select your own domain suffix that replaces the one for the App Service Environment.


Additionally, App Services in Clouds other than the Global Cloud (GCC High, DoD, 21Vianet) use other domains than


Thus, it is difficult to impossible to disable it for an existing Azure App Service, but if you are dealing with App Services in general, you should not assume that the domain always ends with

You cannot edit/update the default one but you can add custom domain names beside the ""


Seems not by default but handle by access restrictions