Explorar el Código

Remove headers for security

master
Daniel Covington hace 5 días
padre
commit
342097c156
Se han modificado 1 ficheros con 16 adiciones y 0 borrados
  1. +16
    -0
      public/web.config

+ 16
- 0
public/web.config Ver fichero

@@ -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>

Cargando…
Cancelar
Guardar

Powered by TurnKey Linux.