gpt4 book ai didi

.htaccess - 是否可以查看任何网站的 .htaccess 文件?

转载 作者:行者123 更新时间:2023-12-01 14:30:05 24 4
gpt4 key购买 nike

前任。我开http://www.delfi.lt通过浏览器,我可以以某种方式访问​​/打开/下载此站点的 .htaccess 文件吗?

我读到 .htaccess 对任何浏览器都是可见的,如果它没有被 apache 隐藏。默认情况下,apache 会阻止对 .htaccess 文件的访问吗?

最佳答案

Apache 配置禁用对 .htaccess 的访问,类似于 httpd.conf :

# The following lines prevent .htaccess and .htpasswd files from being 
# viewed by Web clients.
#
<FilesMatch "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>

关于.htaccess - 是否可以查看任何网站的 .htaccess 文件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18181562/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com