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

Regular Visitor
Is it possible to disable the default URL <webapp>.azurewebsites.net for a web app?
2 Replies

@PDDEV1 

 

I don't think you can turn off access to the website via [your cloud service name].azurewebsites.net 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 azurewebsites.net domain, they are automatically redirected to your custom domain.

How to: Redirect the default *.azurewebsites.net domain to your custom domain on Azure Web Apps
https://www.zainrizvi.io/blog/block-default-azure-websites-domain/

Setup custom domain URL
https://docs.microsoftcommunitytraining.com/docs/setup-custom-domain-url