htaccess禁用ip
How to disable directory listing using .htaccess? The webserver (Apache) should allow downloading files in a directory and child directories of it but forbid listing of the directory and child directories.
如何使用禁用目录列表。 htaccess ? 该网络服务器( Apache的 )应该允许下载文件,在它的目录和子目录,但禁止列出目录和子目录的。
In the directory that you want to disable directory listing, create the .htaccess file that contains:
在要禁用目录列表的目录中,创建包含以下内容的.htaccess文件:
Options -Indexes
Answered by anonymous.
匿名回答。
You can also done by
您也可以通过
Options -Indexes
选项-索引
or
IndexIgnore *
IndexIgnore *
Reference: visit here
参考:访问这里
翻译自: https://www.systutorials.com/htaccess-how-to-disable-directory-listing/
htaccess禁用ip