When a client browser requests a web page, a server returns a response with a Hypertext Transfer Protocol (HTTP) header. HTTP response headers are name and value pairs that contain information about the requested page. These include the HTTP version, date, and content type.

You can create custom headers to pass special information in responses to browsers. For example, you could create a custom header named “authors” that might contain the names of content authors. Or you might create a Content-Language header to describe the natural languages used in the body of your web page, and provide several language-country/region. Custom HTTP headers also allow control of content expiration. For example, this header

    Expires: Fri, 15 Nov 2015 19:30:00 GMT

will have the content expired at 19:30 GMT time.

Read HTTP Headers for Dummies and List of HTTP header fields articles for more information about HTTP headers.

Windows 2003

  1. Go to HostPilot Control Panel > Web/FTP Server > Web Server > Settings and Permissions.
  2. Select htdocs directory
  3. Place one header per line in the HTTP Custom Header field and save changes when done. When creating a custom HTTP header, you should place a colon (:) between the header name and its value. The part before the colon is the name, and the part after the colon is its value.

Windows 2008

  1. Open IIS Manager.
  2. In Features View, double-click HTTP Response Headers.
  3. On the HTTP Response Headers page, in the Actions pane, click Add.
  4. In the Add Custom HTTP Response Header dialog box, type a name, and a value or set of values separated with commas (,) in the Name and Value boxes.
  5. Click OK.

Linux

.haccess file should be used for HTTP headers customization. Read articles on Apache Module mod_headers and Manipulating HTTP Headers with htaccess for more information.