How to disable HTTP header leaks version numbers of your application

It's really simple,
Add enableVersionHeader="false" into section which is under System.Web section in web.config file. 



EX:-
Added into  web.config (System.Web)
 <httpRuntime useFullyQualifiedRedirectUrl="true" maxRequestLength="8192" requestLengthDiskThreshold="8192" enableVersionHeader="false" />

Happy coding!

No comments:

Post a Comment