mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[GH-ISSUE #1192] Feature Request: Add index.html for New Folders #763
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#763
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @salahjaafar on GitHub (May 25, 2024).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1192
Dear TinyFileManager Team,
I'm a big fan of TinyFileManager and use it regularly. I'd like to suggest a small but helpful feature: adding an index.html file automatically when creating a new folder. This would prevent directory listing and improve security for those who expose TinyFileManager to the web.
Thank you for considering my suggestion.
Sincerely,
Salah
@salahjaafar commented on GitHub (May 25, 2024):
Hello @prasathmani I've developed a small addition to address this.
Here's the code to add in the tinyfilemanager.php file:
This code creates a basic index.html file in any directory that doesn't have one, which can be helpful to prevent directory listing vulnerabilities and improve navigation.
I hope this contribution is useful to you.
Best regards,
Salah
@ZeroSuf3r commented on GitHub (May 26, 2024):
Did something similar, but in my case i'm adding index.php.
@salahjaafar commented on GitHub (May 26, 2024):
Yes, the choice is yours, but index.html files are simple static files, whereas PHP requires additional processing by the Apache server.
@salahjaafar commented on GitHub (May 26, 2024):
@prasathmani
I have improved the code to check if there is also an index.php. Do not create an index.html file because it causes me problems with applications that run in the folder and sub folders.