小编And*_*huk的帖子

Azure上的慢HTTP POST漏洞

我在Azure上部署了asp.Net MVC Web应用程序。并且存在慢速HTTP POST漏洞的问题。所以我想配置<\ limits>来打开connectionTimeout。

我无法在Web.config中执行此操作(或者mb只是不知道写它的正确位置)。在指南中此东西在iis上配置,但是如何在蔚蓝中做到这一点?

asp.net-mvc ddos azure

5
推荐指数
1
解决办法
515
查看次数

Azure Web Apps中的ApplicationHost.xdt

如何在Azure Web应用程序中更改applicationHost.config?我尝试:

using (ServerManager serverManager = new ServerManager())
{
    Microsoft.Web.Administration.Configuration config = serverManager.GetApplicationHostConfiguration();
    Microsoft.Web.Administration.ConfigurationSection webLimitsSection = config.GetSection("system.applicationHost/webLimits");

    webLimitsSection["connectionTimeout"] = TimeSpan.Parse("00:00:10");
    webLimitsSection["dynamicIdleThreshold"] = 150;
    webLimitsSection["headerWaitTimeout"] = TimeSpan.Parse("00:00:10");
    webLimitsSection["minBytesPerSecond"] = 500;

    serverManager.CommitChanges();
}
Run Code Online (Sandbox Code Playgroud)

但抓住异常:

文件名:\?\ D:\ Windows\system32\inetsrv\config\applicationHost.config错误:由于权限不足,无法写入配置文件

c# azure azure-web-sites web.config-transform

5
推荐指数
1
解决办法
3688
查看次数