Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Jun 2013
    Thanked 0 Times in 0 Posts

    file names and browser display (index.html etc.)

    Hello, I'm running XXAMP and I've noticed that, while viewing directories, some filenames 'force' my browser (I use Firefox or Chrome) to display the page by default rather than the list of files.

    Examples would be index.html, home.html, or header.html (or any of those as .php) ... if those filenames are not present, I just get a simple list of clickable filenames.

    My questions are:
    1) What is the name for this behavior? (I don't know what to call it, to be able to search for info about it.)
    2) Can someone link to a beginner-friendly explication of how this works, and/or provide one here?


  2. #2
    Administrator VIPStephan's Avatar
    Join Date
    Jan 2006
    Halle (Saale), Germany
    Thanked 1,315 Times in 1,285 Posts

  3. #3
    Senior Coder
    Join Date
    Sep 2010
    Thanked 275 Times in 275 Posts
    You basically want to guard against this, either by putting a 'dummy' index page in the directory, one that might redirect someone back to the home page, or by the server settings via htaccess or the httpd.config file. You'd be amazed at how many sites leave their Images directory unguarded.
    Welcome to http://www.myphotowizard.net

    where you can edit images, make a photo calendar, add text to images, and do much more.

    When you know what you're doing it's called Engineering, when you don't know, it's called Research and Development. And you can always charge more for Research and Development.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts