Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Indexing a website

  1. May 29, 2007 #1

    ssb

    User Avatar

    Hello, let me explain what I mean by indexing a website:

    Sometimes ill click on something or manually type in a URL into the web browser and ill be brought to a "index" of everything on that site. For example at the top of the screen it will say "index of /~whatever"

    It is as if there is a folder with a bunch of files in it and I can see all those files, from .html, .exe, .mp3, .txt, .pdf.... basically anything that the webmaster has uploaded is displayed in a list that describes file name, size, date created, etc.

    How do i manually do this to a website so I can find files that someone may have forgotten to link to in an .html document (or link incorrectly to)?

    an example of an index that I found is
    http://ftp.mozilla.org/pub/mozilla.org/

    I just want to be able to bring up that screen for all websites.

    Thanks!
     
  2. jcsd
  3. May 30, 2007 #2

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    In general, you cannot force this to happen. These lists are so-called virtual directories, and must be specifically enabled by the webmaster. If the webmaster chooses to not let you list virtual directories, then you can't, and there's no way to override it.

    - Warren
     
  4. May 30, 2007 #3

    -Job-

    User Avatar
    Science Advisor

    It would be a security risk if you were able to browse the structure and possibly the server-side code of a site, and it might grant users access to content the webmasters did not intend them to have, so naturally it's not something any site should have enabled, and most don't.
     
  5. Jun 8, 2007 #4
  6. Jun 8, 2007 #5

    russ_watters

    User Avatar

    Staff: Mentor

    Browsers, by default, are supposed to pull up the "index.html" file, not the actual directory structure.
     
  7. Jun 8, 2007 #6

    russ_watters

    User Avatar

    Staff: Mentor

  8. Jun 8, 2007 #7

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Oh no! They're going to steal all our.... gifs! :rofl:

    - Warren
     
  9. Jun 8, 2007 #8
  10. Jun 8, 2007 #9

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    No, he supplied an http url to a machine called ftp.

    - Warren
     
  11. Jun 9, 2007 #10
    pretty sure that's an option most web servers disables by default, unless your web server supports virtual hosting and you can write your own configuration for your custom domain. But like the other posters have stated, this is a major security risk and I rather have it disabled than to have some short-term conveniences ..
     
  12. Jun 10, 2007 #11

    DaveC426913

    User Avatar
    Gold Member

    Well, it actually is an ftp site - he's just reached it via http.

    You can go directly to the ftp site:
    ftp.mozilla.org/pub/mozilla.org/
    and download stuff.

    But that;s because they want you to.
     
  13. Jun 10, 2007 #12

    chroot

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    The fact that it's accessed over http means it's a web site. There is no deeper definition. The facts that the same data is also offered via ftp, and that the computer's name is ftp, are irrelevant. He's using a web browser to communicate with a web server. He's getting a virtual directory from this web server, in HTML. This is distinct from using your web browser's built-in ftp client to access an actual ftp site, as your link would do.

    - Warren
     
  14. Jun 11, 2007 #13

    Indeed. The link would look like this if it were an ftp server:

    ftp://ftp.mozilla.org/pub/mozilla.org/

    not like this:

    http://ftp.mozilla.org/pub/mozilla.org/
     
  15. Jun 12, 2007 #14
    Well, yes, if you'd like to get technical. I was just keeping things simple, since 999 out of 1000 times, any http link to an ftp.website.com URL will have an FTP service on it as well, seeing as how the http server is usually set up for compatibility with older browsers and downloaders that don't have FTP support.. ;)
     
    Last edited: Jun 12, 2007
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?



Similar Discussions: Indexing a website
  1. Website opinion (Replies: 1)

  2. Website Feedback (Replies: 6)

  3. Developing a website (Replies: 8)

  4. Storage Website (Replies: 18)

  5. Is website a software? (Replies: 4)

Loading...