Listing directories of a domain

  • Thread starter Thread starter kimiraikkonen
  • Start date Start date
K

kimiraikkonen

Hi,
I'd like to know whether it is possible to know the sub-directories
and also files of a domain, especially domains. Does system.net
provides such a function?

For example: you only know www.xyz.com but xyz.com has sub directories
such as xyz.com/abc or xyz.com/abc/123, that's why it would be nice to
know the directories "abc" and "123".

Thanks!
 
That largely depends on the web server, whether directory listings are
enabled for the authorized (or anonymous) user.
 
That largely depends on the web server, whether directory listings are
enabled for the authorized (or anonymous) user.

If server allows that feature, how to get directory listing info under
VB.NET project?
 
If server allows that feature, how to get directory listing info under
VB.NET project?

I think there is no easy solution for this. The only way might be just parse
html-files showing directories and files that are shown with browser.

If you can't see directory listings you can't get them. It would be a big
security risk to let people see directory structures.

-Teemu
 
I think there is no easy solution for this. The only way might be just parse
html-files showing directories and files that are shown with browser.

If you can't see directory listings you can't get them. It would be a big
security risk to let people see directory structures.

 -Teemu

IMO your best bet is to tell us what is the overall goal... On most
servers it won't work as described in earlier responses. If you do
this from your own server, it's likely you could this server side. If
you think about a search engine they analyze the html documents to
find out the links etc... As you see knowing some more details about
what you are trying to do could help...
 
Back
Top