如何添加标题X-XSS-Protection 1; mode =通过appcmd阻止

时间:2017-11-15 03:52:11

标签: iis http-headers iis-7.5

我可以通过命令行(appcmd)在IIS和其他简单的标题中通过UI添加下面提到的标题,但是这个看起来很神秘......无法得到它。无论我尝试什么,都会抛出语法错误。任何帮助表示赞赏...

X-XSS-保护 1;模式=块

1 个答案:

答案 0 :(得分:2)

看起来我找到了它

%windir%\ system32 \ inetsrv \ appcmd.exe set config -section:system.webServer / httpProtocol /+"customHeaders.[name='X-XSS-Protection',value= ' 1;模式=块']"

相关问题