Преглед изворни кода

Remove headers for security

master
Daniel Covington пре 5 дана
родитељ
комит
342097c156
1 измењених фајлова са 16 додато и 0 уклоњено
  1. +16
    -0
      public/web.config

+ 16
- 0
public/web.config Прегледај датотеку

@@ -87,6 +87,22 @@
</rule>
</rules>
</rewrite>

<!-- Strip the Server response header (reveals IIS version) - IIS 10+ only -->
<security>
<requestFiltering removeServerHeader="true" />
</security>

<!-- Strip framework-identifying headers that IIS/ASP.NET modules may add -->
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By" />
<remove name="X-AspNet-Version" />
<remove name="X-AspNetMvc-Version" />
<!-- URL Rewrite module adds this in IIS Express, leaking the physical file path -->
<remove name="X-SourceFiles" />
</customHeaders>
</httpProtocol>
</system.webServer>

</configuration>

Loading…
Откажи
Сачувај

Powered by TurnKey Linux.