黑帽联盟

 找回密码
 会员注册
查看: 1173|回复: 0

[php] 屏蔽phpinfo()函数,安全起见

[复制链接]
yun 黑帽联盟官方人员 

920

主题

37

听众

1364

积分

超级版主

Rank: 8Rank: 8

  • TA的每日心情
    奋斗
    2019-10-18 11:20
  • 签到天数: 678 天

    [LV.9]以坛为家II

    Q:怎么样可以把 phpinfo()屏蔽掉?

    A:路径:C:\winnt(or windows)\php.ini(NT和2000)C:\windows(95,98)

    在 php.ini 配置文件里面有这个选项
    disable_functions = ; This directive allows you to disable certain
    ; functions for security reasons. It receives
    ; a comma separated list of function names.
    ; This directive is *NOT* affected by whether
    ; Safe Mode is turned on or off.
    改成
    disble_functions = phpinfo


    您需要登录后才可以回帖 登录 | 会员注册

    发布主题 !fastreply! 收藏帖子 返回列表 搜索
    回顶部