index files and directory listing

index files and directory listing

Séverin Terrier-mit -
Antal besvarelser: 4
Documentation writers-ip assinga Particularly helpful Moodlers-ip assinga Testers-ip assinga Translators-ip assinga
Hello,

in Moodle, some directories have useful index.php files (files/, group/, admin/, ...), some other have index.html files, just to avoid directory listing (enrol/, filter/, lib/, ...).

But there are also some other directories that have no index.* file (calendar/, question/, ...)

Wouldn't it be more logic to adopt the same thing everywhere, to avoid directory listing ?

Séverin
Gennemsnitsbedømmelse: -
I svar til Séverin Terrier

Re: index files and directory listing

Nicolas Martignoni-mit -
Core developers-ip assinga Documentation writers-ip assinga Particularly helpful Moodlers-ip assinga Plugin developers-ip assinga Testers-ip assinga Translators-ip assinga
Hi Séverin,
I had the same feeling: see MDLSITE-183.
I svar til Nicolas Martignoni

Re: index files and directory listing

Séverin Terrier-mit -
Documentation writers-ip assinga Particularly helpful Moodlers-ip assinga Testers-ip assinga Translators-ip assinga
Hi Nicolas,

i know there's nothing really serious about security, and people shouldn't see these type of URLs, but just don't understand why some directories have index.html file (even void), and some other don't...
I svar til Séverin Terrier

Re: index files and directory listing

Eloy Lafuente (stronk7)-mit -
Core developers-ip assinga Documentation writers-ip assinga Moodle HQ-ip assinga Peer reviewers-ip assinga Plugin developers-ip assinga Testers-ip assinga
Hi Séverin,

if I'm not wrong... only directories able to contain "plugins" are protected from listing by using those index.html files.

For example modules, blocks, filters, authentication and enrolment methods...

That will prevent public disclosure about what custom (contrib, own...) modules are being used in your site.

The rest is, simply, Moodle. And everybody can see its contents by downloading it. So it isn't protected.

Ciao smiler