Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

There is a website which allows directory browsing; I know this for sure because I can browse directories where there is no default page.

There is a directory which I want to browse, but it instead has a default page, so that page is displayed if I type the URL in my browser, or if I click on that directory when browsing the directory above it (which, as said, allows browsing).

How can I ask the web server to send me the directory listing instead of the default page?

I'm currently using Internet Explorer, but I don't mind using another browser if IE is not up to the task.

share|improve this question
1  
You might want to check out the Wikipedia article on directory traversal, though it's not strictly related to your question. –  Code Bling May 26 '11 at 16:02
    
Next time, you should word your question different. First give the problem like "I have some files I keep on the webserver that I want to be able to access with a web browser." Then state your current situation, which is directory traversal. Lastly, offer the specification of an acceptable solution, like "must work on a PC and iPhone." That would probably get your somewhere faster. –  surfasb Jun 29 '11 at 5:23
add comment

2 Answers

up vote 11 down vote accepted

You can't.

In the standard configuration of all popular web servers, the term "allows browsing" only applies when the directory in question does not have a default page, to avoid introducing a large security hole.

(In some configurations (for example, DirectorySlash off in Apache2), http://example.com/path/ displays the index page while http://example.com/path returns the index, but this is very rare.)

The browser used does not matter; all they do is send a HTTP request and display returned data. It's entirely up to the server whether to display the index or the default page.

share|improve this answer
    
I was hoping for something better... but this seems to be true. Answer accepted, thanks anyway. –  Massimo May 27 '11 at 13:13
add comment

Sometimes you can browse a directory that has a default or index file. The only way I have found to do so is to find a sub directory on the site that lacks a default or index file and then traverse from there. For instance say you're on an image site you might get a listing by clicking on an image and then removing the image file name from the url and pressing enter. Of course this won't work if listing is disabled.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.