您的位置 首页 php

如何隐藏php版本信息

有效的隐藏php版本信息,降低网站被黑客攻击的风险

查看当前是否开启php版本号

curl -I http://你的地址

X-Powered-By: PHP/5.6.22

这里可以看到当前地址的php版本信息是5.6.22

通过命令可查看到php.ini路径,我这里php.ini路径在/usr/local/php/etc/php.ini

php -i | grep php.ini
Configuration File (php.ini) Path => /usr/local/php/etcLoaded Configuration File => /usr/local/php/etc/php.ini

编辑/usr/local/php/etc/php.ini

查找expose_php参数

将expose_php = On改成expose_php = Off,然后重启php即可

/etc/init.d/php-fpm restart

验证

curl -I http://你的地址

此时php版本号已隐藏

推荐:《PHP教程》

以上就是如何隐藏php版本信息的详细内容,更多请关注求知技术网其它相关文章!

文章来源:智云一二三科技

文章标题:如何隐藏php版本信息

文章地址:https://www.zhihuclub.com/2563.shtml

关于作者: 智云科技

热门文章

评论已关闭

38条评论

  1. Like your primary care provider, a urologist can write a valid prescription for Cialis or other ED medication How Can You Pay for Cialis, Besides PayPal

  2. If you are interested in buying Cialis and its generics in large volumes, you can use special aggregator sites in order to find out exactly where the price for the right amount of pills is the most attractive 5 of patients see Adverse Reactions 6

  3. com erectile dysfunction after da vinci prostectomy Safe And Secure, Supplement Pills

  4. Controlled ovarian hyperstimulation and intrauterine insemination for treatment of unexplained infertility should be limited to a maximum of three trials.

  5. Fever is caused by circulating endogenous and or exogenous pyrogens that increase levels of prostaglandin E2 in the hypothalamus. Relatively high treatment efficiencies were observed for antibiotics in composting, anaerobic digestion, and aerobic anaerobic lagooning.

  6. Twenty years ago, the National Comprehensive Cancer Network NCCN began as a cooperative effort of 12 prestigious cancer centers, working to define and promote national guidelines for the care of patients with cancer

  7. falciparum 3D7 early ring stage parasites were grown in the presence of bazedoxifene BZ, E64, or DMSO CON for 24 h and assessed for the presence of hemozoin in the food vacuole A, hemoglobin level B, and hemozoin content C

  8. Comprehensive functional analysis of large lists of genes and proteins Eckert RL, Mullick A, Rorke EA, Katzenellenbogen BS Estrogen receptor synthesis and turnover in MCF 7 breast cancer cells measured by a density shift technique

  9. Internalization of PTEN nanocomposites in the spheroids was confirmed by confocal microscopy

  10. 165 Mutations in APC and CTNNB1 are not detected in superficial fibromatoses Nonetheless, the individual tragedy of a disease that strikes down young, vibrant people makes it disproportionately urgent to treat them

  11. Breast cancer is the most prevalent malignancy in women, and its incidence has been rising along with rapid urbanization and adoption of modern life style in developing countries like China 1 3 hours plasma Tmax 3

  12. Nicky, USA 2022 06 20 06 52 43 Which statement by the client indicates the need for further instruction

  13. My eyes will get red and some pain behnd the eye and then usually a couple of days later they will clear up

  14. Personal decisions concerning voluntary exposures to carcinogenic agents need to be based on additional information that is beyond the scope of the 9th Report

  15. Menthol is the naturally occurring and main form of menthol, and is assigned the 1R, 2S, 5R configuration

  16. But overwhelmingly, exercise during pregnancy is highly encouraged, even for those who had to cut back in order to conceive

  17. Glutathione is also not able to cross cellular membranes, preventing it from being uptaken into cells

  18. The clomid challenge test is not a sensitive enough test to identify every woman with decreased ovarian reserve

  19. Hydrocephalus related symptoms that worsen after shunt placement may indicate a malfunctioning or obstructed shunt

  20. Desmoid tumors are rare, and there are no standard screening tests for this type of tumor

  21. The changes in subtype classification occurred in a systematic fashion with all subtypes switching to a classification of Normal Insufficient, with the exception of Luminal B, which switched to Luminal A

网站地图