소스 검색

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>

불러오는 중...
취소
저장

Powered by TurnKey Linux.