Is it possible to see .htaccess file of any website?
Ex. I open http://www.gustdial.com 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?
- asked 5 years ago
- G John
It depends on the type of the webserver in question. If it's apache, it should contain something like this in the config file (usually in the "main" apache.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>
- answered 5 years ago
- Community wiki