x10hosting shows all contents of a folder!

drf1229

New Member
Messages
71
Reaction score
1
Points
0
Did anybody realize that if you type in the url of a folder on your website, x10hosting shows and gives access to all the files in the folder? This scared me, so I immediately moved all of the files to the root folder. Is there any solution to this?
 

xadrieth

New Member
Messages
62
Reaction score
1
Points
0
Add a blank file to each directory called "index.html". Infact, that is supposed to be the name of your homepage anyways.
 

pythondev

New Member
Messages
59
Reaction score
0
Points
0
add a .htaccess file and switch it off...

1. Enable/Disable Directory Listing

To have the web server produce a list of files for such directories, use the below line in your .htaccess.

Options +Indexes

To have an error (403) returned instead, use this line.

Options -Indexes
 
Top