In the header of the HTTP request, why do you sometimes have x-powered-by this value, sometimes not?

Source: Internet
Author: User

X-powered-by is not an Apache or nginx output, but is output by a language parser or application framework, meaning that this value is used to tell the website which language or framework is written.
For example:

  • Php

PHP standard output is: x-powered-by:php/5.2.1, can be added in the php.ini or modified to expose_php = Off close.

  • thinkphp

and using the thinkphp, will output: x-powered-by:thinkphp 2.0, can modify the related class file close

  • . Net

With. NET output: X-powered-by:asp.net, can be modified to web.config delete

Nginx compile time can add a module, Httpheadersmore, used to uniformly delete or modify the returned HTTP header.

Key content In addition, the Web server itself will spit out its own version number, HTTP header is server:xxxxx, which sometimes caused someone to specifically exploit a specific version of the Web server vulnerability to attack, Nginx can be added to the configuration file or modified server_tokens off to remove the version number.

The above describes the HTTP request header inside, why sometimes there is x-powered-by this value, sometimes not? , including the aspects of the content, want to be interested in PHP tutorial friends helpful.

  • 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.