Bug in RemoveServerHeader attribute for IIS 10+ There is a bug in RemoveServerHeader for IIS 10+ as documented here. I documented the new attribute in IIS 10 here back in March 2018.
Below is a very basic and short example of how to read settings from a JSON configuration file in .Net Core.
I prefer to keep my System directives at the top. Unfortunately the default settings is to sort everything alphabetically. To keep your System directives at the top when sorting the using clauses you can enable the following setting.
This is the #1 thing that I switch on when working on a newly installed Visual Studio. The option “Track Active Item in Solution Explorer” always selects the file you have open in the solution explorer.
The a HTTP module is used when you need to intercept and examine the incoming HTTP requests before or after the page life cycle. The HTTPModule provides events where you can plug into to examine or alter the request or response within the asp.net cycle. HTTPModule are the perfect place the apply security checks.
Some basic interview questions. Its not comprehensive and ill extend this as needed.
HTTP headers leak technical information to potential attackers about a system. To harden the security of an application you need to disclose as little information about a system as possible. In this post I will show to remove the Asp.net version from HTTP server header responses.
In the previous post I showed how to how to use the configSource to create multiple broken-out config files to ease maintenance. Below are more examples of where the configSection can be used.
The size of configuration files often creates the desire to split it into multiple smaller more manageable parts. To achieve this one can break the file into smaller more manageable parts by using configSource attribute.
Securing a website with HTTPS in Asp.net core is a bit different than with normal asp.net in IIS. In this post I will show to configure asp.net core so that it uses HTTPS.