Share via


Adding Footers to Web Pages

Applies To: Windows Server 2003, Windows Server 2003 R2, Windows Server 2003 with SP1

You can configure the Web server to automatically insert an HTML-formatted file to the bottom of every Web page sent out by your Web server (appending footers or scripts to ASP pages is not supported). For example, your file can contain HTML formatting instructions to add a simple text message and logo image to your Web pages. Once enabled, IIS automatically appends the footer file to the designated Web page or file each time the Web page or file is accessed.

Note

Document footers can reduce Web server performance, especially if a Web page is frequently accessed.

A footer file should be not be a complete HTML document. It should contain only those HTML tags necessary for formatting the appearance of footer content. For example, a footer file that adds your organization's name to the bottom of every page should consist of text and the HTML tags necessary for formatting the font and color.

Important

You must be a member of the Administrators group on the local computer to perform the following procedure or procedures. As a security best practice, log on to your computer by using an account that is not in the Administrators group, and then use the runas command to run IIS Manager as an administrator. At a command prompt, type runas /User:Administrative_AccountName "mmc %systemroot%\system32\inetsrv\iis.msc".

Procedures

To add a footer to every Web page

  1. Create an HTML footer file and save it on your Web server's hard disk.

  2. In IIS Manager, expand the local computer, expand the Web Sites folder, right-click a Web site, directory, or file, and click Properties.

  3. Click the Documents tab, and select the Enable document footer check box.

  4. In the box below Enable document footer, type either the full local path to the footer file or click Browse to navigate to it.

  5. Click OK.