Hello and welcome to our community! Is this your first visit?
Register
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
    Posts
    38
    Thanks
    5
    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?

    Thanks!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,784
    Thanks
    6
    Thanked 1,022 Times in 995 Posts

  • #3
    Senior Coder
    Join Date
    Sep 2010
    Posts
    2,195
    Thanks
    15
    Thanked 253 Times in 253 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
    •