2017-05-15 10:31:36 11309次浏览 3条回答 1 悬赏 30 金钱

有人在线上看到自己 runtime/logs/app.log 這个文件看见這个吗?弄出了這个错误。请问我已经有传递csrf了,然后页面访问也正常为什么会打印這个log

[warning][yii\debug\Module::checkAccess] Access to debugger is denied due to IP address restriction

2017-05-15 10:23:35 [183.253.136.149][8][-][warning][yii\debug\Module::checkAccess] Access to debugger is denied due to IP address restriction. The requesting IP address is 183.253.136.149
2017-05-15 10:23:35 [183.253.136.149][8][-][info][application] $_POST = [

最佳答案

  • johnny1991 发布于 2017-05-15 11:08 举报

    百度找到你的ip,然后将你的ip写入配置文件debug的这个组件的allowedIPs里面就可以了

    $config['modules']['debug'] = [
            'class' => 'yii\debug\Module',
            'allowedIPs'=>[
                '127.0.0.1',
          
            ]
        ];
    
  • 回答于 2017-05-15 11:28 举报

    debug默认只允许本地访问。谁都能看了,哪有安全可言。
    要想远程访问,方法看其他回复。但不建议这么做。

  • 回答于 2017-05-15 12:05 举报

    同1楼,看看yii-debug模块就知道了

您需要登录后才可以回答。登录 | 立即注册
ok
助理

ok

注册时间:2017-03-01
最后登录:2022-03-22
在线时长:14小时45分
  • 粉丝1
  • 金钱50
  • 威望0
  • 积分190

热门问题