这几天组里有个php系统报安全漏洞,负责的厂商跑了,没办法,被组长丢过来改漏洞,记录一下部份内容。php
配置php的环境 参考https://blog.csdn.net/u011415782/article/details/49246925thinkphp
参考 https://blog.csdn.net/the_victory/article/details/51006167apache
https://blog.csdn.net/weixin_38336920/article/details/82868405安全
2.2使用Order Deny / Allow的方式,2.4改用Requireui
apache2.2:.net
Order deny,allowblog
Deny from allip
apache2.4:it
Require all deniedio
此处比较经常使用的有以下几种:
Require all denied容许全部否定(拒绝)
Require all granted容许全部授予
Require host xxx.com 容许某某某站点
Require ip 192.168.1 192.168.2 容许这两个IP
Require local 容许本地(默认配置)
注意:如有设定在htaccess文件中的也要修改
将 Application下的 Runtime/common~runtime.php文件删除便可。