Would you like to learn how to add a custom header on the IIS server? In this tutorial, we are going to show you how to configure the IIS server to add an HTTP header.

• Windows 2012 R2
• Windows 2016
• Windows 2019

Equipment list

The following section presents the list of equipment used to create this tutorial.

As an Amazon Associate, I earn from qualifying purchases.

Tutorial IIS - Add a header

Start the application named: IIS Manager.

Start IIS Windows

On the IIS Manager application, select your website.

On the right part of the screen, access the option named: HTTP Response Headers.

IIS response header

On the top right part of the screen, click on the Add option.

IIS Add header

To add an HTTP header, enter the following configuration:

• NAME - Enter an identification to the new HTTP header.
• VALUE - Enter a value to the new HTTP header.

Click on the OK button.

IIS - Add a header

Optionally, use the command-line to add a custom HTTP header.

Copy to Clipboard

In our example, we add an HTTP header on the default website of an IIS server.

To test the installation, open the Chrome browser on a remote computer and enter the IP address of your web server using the HTTP protocol.

In our example, the following URL was entered in the Browser:


Use the page inspection feature of the google chrome browser to verify the Headers from your server.

IIS - Add a custom header

Optionally, you may use the CURL command of a Linux computer to test the header configuration.

Copy to Clipboard

Here is the command output.

Copy to Clipboard

Congratulations! You configured an HTTP header on the IIS server.