• <legend id='jbiyu'><style id='jbiyu'><dir id='jbiyu'><q id='jbiyu'></q></dir></style></legend>

    <small id='jbiyu'></small><noframes id='jbiyu'>

      <bdo id='jbiyu'></bdo><ul id='jbiyu'></ul>
    <tfoot id='jbiyu'></tfoot>

    <i id='jbiyu'><tr id='jbiyu'><dt id='jbiyu'><q id='jbiyu'><span id='jbiyu'><b id='jbiyu'><form id='jbiyu'><ins id='jbiyu'></ins><ul id='jbiyu'></ul><sub id='jbiyu'></sub></form><legend id='jbiyu'></legend><bdo id='jbiyu'><pre id='jbiyu'><center id='jbiyu'></center></pre></bdo></b><th id='jbiyu'></th></span></q></dt></tr></i><div id='jbiyu'><tfoot id='jbiyu'></tfoot><dl id='jbiyu'><fieldset id='jbiyu'></fieldset></dl></div>

      1. 删除 X-Powered-By

        Removing X-Powered-By(删除 X-Powered-By)
            <bdo id='E6Vov'></bdo><ul id='E6Vov'></ul>
            <i id='E6Vov'><tr id='E6Vov'><dt id='E6Vov'><q id='E6Vov'><span id='E6Vov'><b id='E6Vov'><form id='E6Vov'><ins id='E6Vov'></ins><ul id='E6Vov'></ul><sub id='E6Vov'></sub></form><legend id='E6Vov'></legend><bdo id='E6Vov'><pre id='E6Vov'><center id='E6Vov'></center></pre></bdo></b><th id='E6Vov'></th></span></q></dt></tr></i><div id='E6Vov'><tfoot id='E6Vov'></tfoot><dl id='E6Vov'><fieldset id='E6Vov'></fieldset></dl></div>
            <legend id='E6Vov'><style id='E6Vov'><dir id='E6Vov'><q id='E6Vov'></q></dir></style></legend>
              1. <tfoot id='E6Vov'></tfoot>
                  <tbody id='E6Vov'></tbody>

                <small id='E6Vov'></small><noframes id='E6Vov'>

                  本文介绍了删除 X-Powered-By的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  1. 如何在 PHP 中删除 X-Powered-By 标头?我在 Apache 服务器上,我使用 php 5.21.我不能在 php 中使用 header_remove 函数,因为 5.21 不支持它.我使用了 Header unset X-Powered-By,它在我的本地机器上运行,但在我的生产服务器上运行.

                  2. 如果php不支持ver

                  解决方案

                  我认为这是由 expose_php 设置控制的/ini.core.php" rel="noreferrer">PHP.ini:

                  expose_php = 关闭

                  <块引用>

                  决定 PHP 是否可以公开它安装在服务器上的事实(例如,通过将其签名添加到 Web 服务器标头).它在任何方面都不是安全威胁,但它可以确定您是否在服务器上使用 PHP.

                  没有直接的安全风险,但正如 David C 指出的那样,暴露过时(并且可能易受攻击)的 PHP 版本可能会诱使人们尝试攻击它.

                  1. How can I remove X-Powered-By header in PHP? I am on an Apache Server and I use php 5.21. I can't use the header_remove function in php as it's not supported by 5.21. I used Header unset X-Powered-By, it worked on my local machine, but not on my production server.

                  2. If php doesn't support header_remove() for ver < 5.3, is there an alternative?

                  解决方案

                  I think that is controlled by the expose_php setting in PHP.ini:

                  expose_php = off
                  

                  Decides whether PHP may expose the fact that it is installed on the server (e.g. by adding its signature to the Web server header). It is no security threat in any way, but it makes it possible to determine whether you use PHP on your server or not.

                  There is no direct security risk, but as David C notes, exposing an outdated (and possibly vulnerable) version of PHP may be an invitation for people to try and attack it.

                  这篇关于删除 X-Powered-By的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                1. <small id='FeklS'></small><noframes id='FeklS'>

                  1. <i id='FeklS'><tr id='FeklS'><dt id='FeklS'><q id='FeklS'><span id='FeklS'><b id='FeklS'><form id='FeklS'><ins id='FeklS'></ins><ul id='FeklS'></ul><sub id='FeklS'></sub></form><legend id='FeklS'></legend><bdo id='FeklS'><pre id='FeklS'><center id='FeklS'></center></pre></bdo></b><th id='FeklS'></th></span></q></dt></tr></i><div id='FeklS'><tfoot id='FeklS'></tfoot><dl id='FeklS'><fieldset id='FeklS'></fieldset></dl></div>
                  2. <legend id='FeklS'><style id='FeklS'><dir id='FeklS'><q id='FeklS'></q></dir></style></legend>

                      <tfoot id='FeklS'></tfoot>
                        • <bdo id='FeklS'></bdo><ul id='FeklS'></ul>
                            <tbody id='FeklS'></tbody>