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 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题