Reputation: 301
Ex. I open http://www.delfi.lt via browser, can I somehow access/open/download .htaccess file of this site?
I read that .htaccess is visable to any browser if it's not hidden by apache. Does apache block access to .htaccess file by default?
Upvotes: 6
Views: 11301
Reputation: 785481
Access to .htaccess is disabled by Apache config similar to this in 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>
Upvotes: 5