使用htaccess我基本上试图禁止访问页面,即http://example.com,但它仍然允许人们下载文件,如果他们有直接链接,即http://example.com/hi.zip。Htaccess访问/下载
我正在使用directory指令来显示基本的下载页面。据heremod_autoindex.c被使用,所以基本上我想要做的是:
<Files mod_autoindex.c>
AuthType Basic
AuthName "Example"
AuthUserFile "/home/.htpasswd"
require valid-user
</Files>
任何意见/建议吗?
权摸索出盒子:) – Icestorm 2012-02-02 21:31:43