weixin_33716154 2013-10-06 03:31 采纳率: 0%
浏览 41

jQuery Ajax PHP安全性

This question already has answers here:
                </div>
            </div>
                    <div class="grid--cell mb0 mt4">
                        <a href="/questions/5121495/php-code-is-not-being-executed-instead-code-shows-on-the-page" dir="ltr">PHP code is not being executed, instead code shows on the page</a>
                            <span class="question-originals-answer-count">
                                (27 answers)
                            </span>
                    </div>
            <div class="grid--cell mb0 mt8">Closed <span title="2016-06-11 11:32:29Z" class="relativetime">3 years ago</span>.</div>
        </div>
    </aside>

Is there any way to prevent jQuery AJAX retreiving a complete PHP file instead of its server output ? I just tried to obtain text only output, expecting what ever php decides to return, but got the whole file. Not ideal if as on some files it would reveal potential hacking targets such as database tables etc

</div>
  • 写回答

1条回答 默认 最新

  • weixin_33730836 2016-06-11 11:30
    关注

    The host was not allowing config of private files, the solution was to move provider and place php above the root directory.

    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器