Last active
February 21, 2024 18:17
-
-
Save marcin-burak/dc704543068c62c1543248313de2c019 to your computer and use it in GitHub Desktop.
Hide server HTTP headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.webServer> | |
<security> | |
<requestFiltering removeServerHeader="true" /> | |
</security> | |
<httpProtocol> | |
<customHeaders> | |
<remove name="X-Powered-By" /> | |
<remove name="X-AspNet-Version" /> | |
</customHeaders> | |
</httpProtocol> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment