Microsoft Knowledge Base Email Alertz

KBAlertz.com: How to add a custom HTTP response header to a Web site that is hosted by IIS

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]

Search KbAlertz

Advanced Search

Webmasters
Put kbAlertz on your website.
[ Click Here for more! ]





ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **


Bug Tracking Software
For bug tracking software or defect tracking software or issue tracking software, visit Axosoft.


Community Site



We Send hundreds of thousands of emails using ASP.NET Email



Expert Web Design & Graphic Design
Design44.com

ASP.NET 3.5 Web Hosting with Windows 2008 and SQL 2008: Click Here!
Discount ASP.NET Hosting
ASP.NET 2.0 and 3.5
Windows2008 and SQL2008
US and UK Hosting
The ad says 3 - but KBAlertz referrals get
** SIX MONTHS FREE **




Mentioned In








Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks




Article ID: 954002 - Last Review: July 1, 2008 - Revision: 1.0

How to add a custom HTTP response header to a Web site that is hosted by IIS

INTRODUCTION

This article discusses how to add a custom HTTP response header to a Web site that is hosted by Internet Information Services (IIS) 7.0, by IIS 6.0, or by earlier versions of IIS. This header may apply to a site or to an application.

You can also add custom HTTP response headers at the server level. However, we recommend that you use custom headers only on a specific site or application. We do not recommend that you use custom headers globally.

MORE INFORMATION

To add a custom HTTP response header at the Web site level in IIS 7.0 on a computer that is running Windows Server 2008, follow these steps:
  1. Click Start, click Administrative Tools, and then click Internet Information Services (IIS) Manager.
  2. In the connections pane, expand the node for the server, and then expand Sites.
  3. Click the Web site where you want to add the custom HTTP response header.
  4. In the Web site pane, double-click HTTP Response Headers in the IIS section.
  5. In the actions pane, click Add.
  6. In the Name box, type the custom HTTP header name.
  7. In the Value box, type the custom HTTP header value.
  8. Click OK.
To add a custom HTTP response header at the Web site level in IIS 6.0 and in earlier versions of IIS, follow these steps:
  1. Click Start, click Run, type inetmgr.exe, and then click OK.
  2. Expand the node for the server, and then expand Web Sites.
  3. Right-click the Web site, and then click Properties.
  4. Click the Custom HTTP headers tab, and then click Add.
  5. In the Custom header name box, type the custom HTTP header name.
  6. In the Custom header value box, type the custom HTTP header value.
  7. Click OK two times.

APPLIES TO
  • Microsoft Internet Information Services 7.0
  • Microsoft Internet Information Services 6.0
  • Microsoft Internet Information Services 5.1
  • Microsoft Internet Information Services 5.0
Keywords: 
kbexpertiseinter kbinfo kbhowto KB954002
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate

Be the first to leave feedback, to help others about this knowledge base article.

(Optional) Name

(Optional) Public URL Or Email

Comments
No HTML -- Text Only Please