.htaccess Options -Indexes not working

Avatar
  • Answered
My htaccess file has the following: order deny,allow deny from 87.59.101.111 Options -Indexes ?? # Deny access to sub directory #COUNTRY_BLOCK_START order allow,deny deny from 2.104.0.0/13 deny from 20.133.16.0/24 I was under the impression that Options -Indexes would prevent the following: mywebsite.com/~root/ ?? I'm able to view a link to the parent directory and the cgi folder.
Avatar
Arn
Hello Corsairdriver, Thanks for the question about the Options -Index in your .htaccess. It's actually a very good question. The directory that you're seeing is actually a blank public_html (under "root") that's on the server. No one can access it and it's also empty. All of your files and folders cannot be accessed. The only reason you're seeing anything is because you specified the user "root". Again, that directory structure is NOT in your account and cannot be accessed from the outside except to list an empty folder. Check out this video and article for more information. I hope this helps to answer your question, please let us know if you require any further assistance. Regards, Arnel C.