在使用Azure上使用通配符域时,如何防止某些自定义域访问您的WebApp?

发布于 2025-02-06 06:25:27 字数 312 浏览 3 评论 0原文

我正在创建一个SaaS,多租户应用程序,每个房客将拥有一个自定义域,例如tenant1.mywebapp.com,tenant2.mywebapp.com ... tenantx.mywebapp.com。

  • 在Azure上,我可以添加那些自定义域。我注意到,您可以将最多500个自定义域添加到您的应用服务中,我希望租户比这更多。
  • 为了解决这个问题,我可以添加一个像.mywebapp.com这样的通配符域。但是,这将允许Anydomainx.mywebapp.com访问我的应用。我该如何防止这种情况?有没有办法阻止未经授权的域中访问Azure的应用?

I am creating a SaaS, multi-tenant application, where each tenant will have a custom domain like tenant1.myWebApp.com, tenant2.myWebApp.com ... tenantX.myWebApp.com.

  • On Azure, I can add those custom domains. I noticed that there is a max of 500 custom domains you can add to your App Services, and I expect more tenants than that.
  • To solve this I can add a wildcard domain like *.myWebApp.com. However, this will allow anyDomainX.myWebApp.com to access my App. How can I prevent this? Is there a way to block unauthorized domains from accessing your App in Azure?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

半衾梦 2025-02-13 06:25:27

如何在Azure使用通配符域时,请防止某些自定义域访问您的WebApp?

  • 我们可以将用户限制以阻止用户从特定域中,我们可以

在Azure Portal =&gt中添加一个拒绝列表log; Azure Active Directory =>用户=>用户设置=> 外部用户 => 管理外部协作设置

在协作限制下,选择拒绝邀请到

  • 目标域下的指定域,输入要阻止

How to, while using wildcard domain on Azure, prevent some custom domains from accessing your WebApp?

  • We can restrict the users to block users from specific domain, we can add a deny list

Log into the Azure Portal => Azure Active Directory => Users => Users Settings => External users => Manage external collaboration settings.

enter image description here

Under Collaboration Restrictions , select Deny invitations to the specified domains

  • Under target domain, enter the names of the domains which you want to block

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文