Add a custom HTTP response header to a web site that is hosted by IIS
This article discusses how to add a custom HTTP response header to a web site that's hosted by IIS. This header may apply to a site, or an application.
Original product version: Internet Information Services 7.0
Original KB number: 954002
Add custom HTTP response header in IIS 7.0
To add a custom HTTP response header at the web site level in IIS 7.0 on a Windows Server 2008 computer, follow these steps:
- Select Start, select Administrative Tools, and then select Internet Information Services (IIS) Manager.
- In the connections pane, expand the node for the server, and then expand Sites.
- Select the web site where you want to add the custom HTTP response header.
- In the web site pane, double-click HTTP Response Headers in the IIS section.
- In the actions pane, select Add.
- In the Name box, type the custom HTTP header name.
- In the Value box, type the custom HTTP header value.
- Select OK.
You can also add custom HTTP response headers at the server level. However, we recommend you use custom headers only on a specific site or application. We don't recommend you use custom headers globally.