This document is intended to guide server administrators in how to secure their IIS settings.
Perform these steps on your webserver so ISO will allow access to it:
- Enable HSTS
- Disable Anonymous Access
- Disable HTTP TRACE
- Disable Version
- Remove IP from Location Header
Enable HSTS
- Open IIS Manager


- Select the site
- Click HTTP Response Headers


- Add
- Name = Strict-Transport-Security
- Value = max-age=31536000
- Ok

Disable Anonymous Access
1. Open IIS Manager


2. On the TreeView on the left, browse to the directory you wish to disable Anonymous Access for and click on it to select it.
In this case it is HOUSINGPRD -> Sites -> Default Web Site -> CFIDE -> administrator. This will display all of the configuration settings that can be applied to this web directory. Open up 'Authentication' by double clicking on it.


3. Select Anonymous Authentication in the middle pane, and set it to 'Disabled' using the 'Disable' Action in the right hand pane.
Select Windows Authentication in the middle pane, and set it to 'Disabled' using the Action pane on the right.


Disable HTTP TRACE
1) open an elevated command prompt, then navigate to the following folder:
- C:\Windows\System32\inetsrv\
2) type the following command, replacing "NameOfSite" with the name of the site to disable HTTP TRACE, then run the command.
- C:\Windows\System32\inetsrv\appcmd.exe set config "NameOfSite" /section:requestfiltering /+verbs.[verb='TRACE',allowed='false']
As verification the configuration took affect, perform the following commands:
a) open IIS Manager
b) highlight the site you've made the configuration to, located within the left pane


b) double-click the "Request Filtering" button located within the middle pane


c) click the "HTTP Verbs" tab within the top-middle pane


d) you should see an entry for TRACE that's set to false under the "Allowed" column


Disable Version
Edit the Web.Config file for your site using your favorite text editor.
Note: The web.config file is primarily located in the root directory of your web application or website.
Application Root Folder: Found in the main directory where your website files are stored (e.g., C:\inetpub\wwwroot\YourAppName\).
Ensure that requestFiltering line is in the web.config


Remove IP from Location Header
- Log in to IIS Manager
- Configuration Editor


- Change section to system.webServer/serverRuntime
- Set FQDN at alternateHostName


- Apply