Hide - prevent an access to file index page
-
Hi All,
Do you know how to prevent an access /to see/ the root / index of the pages, what I mean, for example here is an example: www.mywebsite.com/files/album.html after taking out album.html than you can see whole directory of "files" in www.mywebsite.com/files/
How to prevent / not to allow to see those directories ?
The version I have is 4.0.16 installed on W10
Thanks a lot
-
I am wondering if everybody understood my questions? Please let me know, otherwise I will try to rephrase it.
Thanks,
-
You can add .htaccess file to root folder of the site:
http://www.htaccess-guide.com/
-
Thank you for you replay .... I have that file even I setup a password protection some part of my website and even that part is still accessible to see root of those folders / directories. I think this could be some setup in global setting of Apache, but I am not that sure about this.
-
Learn more about this:
https://stackoverflow.com/questions/2530372/how-do-i-disable-directory-browsing
-
-
Thanks a lot for you video, I tried just add "-" before Indexes and Apache couldn't start.
So what would be in my case / Apache config file in that line ? I posted a screenshot of my configuration as of now.
Thanks,
-
-
YES - now it is working, - after I deleted that line, now can't access anymore root / file indexes.
Big THANK to you