iis 防止头部攻击 webconfig配置

                <rule name="防止头部攻击" patternSyntax="ExactMatch" stopProcessing="true">
                    <match url="*" negate="true" />
                    <conditions>
                        <add input="{HTTP_HOST}" pattern="域名不加协议" negate="true" />
                        <add input="{HTTP_HOST}" pattern="127.0.0.1" />
                    </conditions>
                    <action type="AbortRequest" />
                </rule>

 

posted @ 2023-03-30 10:14  榕树下的回忆  阅读(22)  评论(0编辑  收藏  举报