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?
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?
Add a blank file to each directory called "index.html". Infact, that is supposed to be the name of your homepage anyways.
Oh thanks!
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
yes, i think using index pages to hide them aren't very clean, use .htaccess when ever you have something like this, a good site i found for .htaccess is http://corz.org/serv/tricks/htaccess.php. Good luck!