Skip to content

Commit 7970cd3

Browse files
committed
Header 'RESPONSE_Server' overridden following the OWASP security best practice
1 parent 2aced3b commit 7970cd3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/Web.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
1212
</rule>
1313
</rules>
14+
<outboundRules>
15+
<rule name="Hide Server Header">
16+
<match serverVariable="RESPONSE_Server" pattern=".+" />
17+
<action type="Rewrite" value="n/a" />
18+
</rule>
19+
</outboundRules>
1420
</rewrite>
1521
</system.webServer>
1622
</configuration>

0 commit comments

Comments
 (0)