【问题标题】:Is it possible to see .htaccess file of any website?是否可以查看任何网站的 .htaccess 文件?
【发布时间】:2013-08-12 07:28:00
【问题描述】:

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

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

【问题讨论】:

  • 你也可以通过cheatsheet学习一些.htaccess

标签: .htaccess


【解决方案1】:

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>

【讨论】:

    猜你喜欢
    • 2022-11-07
    • 1970-01-01
    • 2011-05-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多