我有以下.htaccess文件:
RewriteEngine On
RewriteBase /
# Protect the htaccess file
<Files .htaccess>
Order Allow,Deny
Deny from all
</Files>
# Protect log.txt
<Files ./inscription/log.txt>
Order Allow,Deny
Deny from all
</Files>
# Disable directory browsing
Options All -Indexes
我试图禁止访问者访问以下文件:
domain.com/inscription/log.txt
但是上面的内容不起作用:我仍然可以从浏览器远程访问文件。