cala
cala

Reputation: 1421

Joomla index.html file

Why is there an index.html file in almost every folder in Joomla? What folders do not contain an index.html file and why?

Upvotes: 3

Views: 1692

Answers (3)

BradM
BradM

Reputation: 656

The blank index.html file in each folder is to prevent directory browsing via web address.

On a poorly configured web server someone could see all the files contained in a folder by simply browsing to the path, such as www.yoursite.com/images/, this could be a potential security problem on servers without directory browsing (indexing) turned off.

Having the blank index.html file returns a blank white screen to the browser rather than displaying the contents of the folder.

Upvotes: 5

nomayann
nomayann

Reputation: 156

Another approach (for apache servers) is to add this line to the .htaccess file placed at the root directorty of the website:

Options -Indexes

It prevents directory browsing for the whole website.

Upvotes: 1

Robert
Robert

Reputation: 143

The index.html file isn't necessary, it's in the folders as a layer of security. It is there to keep prying eyes from being able to see a directory structure, if there was no index.html file and someone randomly went to http://yoursite.com/scripts/js/ (for example), they could potentially see a listing of all files in that directory. Instead, with the index.html file in place they see a blank landing page:

<html><body bgcolor=" #FFFFFF" ></body></html>

Upvotes: 1

Related Questions