【问题标题】:How can this file be treated as a directory?如何将此文件视为目录?
【发布时间】:2014-11-02 03:37:42
【问题描述】:

我只是在 glassdoor 周围蹦蹦跳跳,我的开发面板是打开的。我在contact page看到了这个

 <form class="lpeRegForm formNotEmpty" method="post" enctype="application/x-www-form-urlencoded" action="http://resources.glassdoor.com/index.php/leadCapture/save" id="mktForm_1059" name="mktForm_1059">

这是什么action="http://resources.glassdoor.com/index.php/leadCapture/save"?后跟斜杠的文件如何工作?它指示计算机去哪里?

【问题讨论】:

  • 这就是我们所说的URL Redirect!见:en.wikipedia.org/wiki/URL_redirection 或者它只是被调用的`index.php!
  • 这很可能是 .htaccess 中的一个 mod 重写设置,可能是为了让机器人认为这是一个 404,以便让他们发疯并让他们到 not 回来并提交表格,如果它是不是人类或垃圾邮件发送者。偷偷摸摸但有效。向开发者致敬。

标签: php forms file http directory


【解决方案1】:

如果一个脚本名后面有更多的路径组件,则网络服务器运行该脚本,其余组件放在$_SERVER['PATH_INFO'] 中。所以当index.php 读取$_SERVER['PATH_INFO'] 时,它会得到"/leadCapture/save"

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-10-24
    • 1970-01-01
    • 2016-11-04
    • 2011-12-21
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多