-
index.html page
hi freinds.
i had downloaded a small project... its based on gallery...
i noticed that ther is index.html in every folder, either ther are images only in that folder... and that file is empty too... means no contents in index.html file...
can any1 tell me what is the purpose of this file?
-
-
Because the index page is the default page in any folder, this guarantees that, should a user attempt to view the folder contents by navigating to the folder instead of a file within it - to the server's directory listing for that folder, all they will get is a blank page.
Now some servers prohibit that anyway, but the designers of this project had no way of knowing. And they just assumed (probably rightly so) that you and they wouldn't want folks poking around in those folders.
-
-
If there is no default page, some servers display a 403 ('forbidden') error message; others display a list of all the files in that directory. And the second case can be bad for security (or at least bad if you don't want to list all the files), as John said.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks