• support@answerspoint.com

Is it possible to see .htaccess file of any website?

2084

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?

1Answer


0

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 7 years ago
  • Community  wiki

Your Answer

    Facebook Share        
       
  • asked 7 years ago
  • viewed 2084 times
  • active 7 years ago

Best Rated Questions