我在.htaccess写了一些规则禁止下载.htaccess
<FilesMatch ".(zip|htaccess|htpasswd|ini|php|sh)$">Order Allow,Deny
Deny from all
</FilesMatch>
但是文件还是能被下载的? 用的是N+A? [b]回复 [url=http://www.wdlinux.cn/bbs/redirect.php?goto=findpost&pid=32642&ptid=8262]2#[/url] [i]admin[/i] [/b]
我用的是Nginx+Apache服务器,也遇到同样的问题,有哪位大神知道为什么? 试试nginx 在 server 里加上这个
location ~ ^.*\.(zip|htaccess|htpasswd|ini|php|sh)$ {
deny all;
} 使用Apache再说
页:
[1]