Skip to content

Instantly share code, notes, and snippets.

@blowdart
Created February 8, 2018 15:56
Show Gist options
  • Save blowdart/e1a65c9051cc997d669c7235fa062cd3 to your computer and use it in GitHub Desktop.
Save blowdart/e1a65c9051cc997d669c7235fa062cd3 to your computer and use it in GitHub Desktop.
Suppressing headers
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.web>
<httpRuntime enableVersionHeader="false"/>
</system.web>
<system.webServer>
<security>
<requestFiltering removeServerHeader="true" />
</security>
<httpProtocol>
<customHeaders>
<remove name="X-Powered-By"/>
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment