Removing unnecessary HTTP response headers in ASP.

Source: Internet
Author: User

Reprint: http://www.cnblogs.com/CareySon/archive/2009/12/14/1623624.html

In order to see the HTTP header that communicates between the server and the browser, you need to install some plugins in the browser. For example, Fiddler is a free software released by Microsoft for logging HTTP logs. And these HTTP logs will contain HTTP headers, in this article I will assume that the reader is already familiar with the software, if you are not familiar with the software, I recommend reading troubleshooting Website problems by examining the HTTP Traffic, this article explains in detail how to install & Use Fiddler.

Using Fiddler, find a Web server that uses IIS and ASP. NET, such as the official Microsoft Web site, usually by default, the HTTP response header contains the 3 Web server's own identity header.

    • Server-Specify which server and server version, such as:
      • server:microsoft-iis/6/0
      • server:microsoft-iis/7.0
    • X-powered-by, used to indicate that this site is "Powered by ASP."
      • X-powered-by:asp.net
    • X-aspnet-version, which specifies the current ASP. Note that even if you use ASP. X-aspnet-version, you may report that you are using 2.0:
      • x-aspnet-version:2.0.50727
      • x-aspnet-version:1.1.4322
    • X-ASPNETMVC, specify the current version of ASP. NET MVC (if you use ASP.):
      • x-aspnetmvc-version:1.0

These server self-identifying information is not used by the browser in most cases, so it can be safely removed, and the remainder of this article will tell you how to remove these HTTP headers

Removing unnecessary HTTP response headers in ASP.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.