【发布时间】:2014-09-09 05:39:03
【问题描述】:
我正在尝试使其只有机器/Web 服务器上的本地脚本才能访问 /avatars/ 示例:profile.php?username=Jordan 它必须显示在该脚本上,但如果我直接转到链接它显示错误 403 或任何它需要的。我用过:
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
ErrorDocument 403 "Error: <br /><h2>You are not allowed to access this directly.</h2>
但它不起作用,为什么?
【问题讨论】: