【发布时间】:2012-04-21 03:22:58
【问题描述】:
今天我在我的服务器上发现了一个奇怪的东西。 我创建了一个 php 文件(test.php)并在其中编写了一些 php 代码。然后我使用
调用它http://127.0.0.1/test
并且执行了“test.php”!没有 .php 时如何理解运行 test.php ? 我的根目录上没有 htaccess 文件来告诉 apache 这样做。 我想这可能会导致安全问题。我该如何预防?
我的操作系统是 ubuntu,网络服务器是 Apache2。
【问题讨论】:
-
这如何导致安全问题?如果有人可以访问 example.com/test,他们也可以访问 example.com/test.php。