There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: Viewing Files In A HTML Directory Tree


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
rolfman22's Avatar
Junior Member with 3 posts.
 
Join Date: Jul 2005
06-Jul-2005, 08:24 AM #1
Solved: Viewing Files In A HTML Directory Tree
I have a website hosted on GoDaddy. I want to view the files I have uploaded in an html directory tree.

Please see the following link for an example...

cpan.org/modules/by-module/LWP/

I have seen this all over the internet, and I have searched for this the last couple of days. I contacted GoDaddy support, and they say they "don't support this and that I should refer to a search engine." (like I hadn't tried that already)

Any help would be greatly appreciated.

Thanks!
AKA Arizona's Avatar
Computer Specs
Distinguished Member with 2,911 posts.
 
Join Date: Jul 2003
Location: Mississippi South of Mason Dixion
Experience: Computer & Web Design Engineer
06-Jul-2005, 08:44 AM #2
Welcome to TSG rolfman22 !! They are correct Directory Browsing is not supported by most ISP's for security reasons. The ones you saw may have been private servers setup to allow the search for other reasons.
Squashman's Avatar
Distinguished Member with 12,589 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
06-Jul-2005, 01:38 PM #3
If the server is Apache and it allows the use of .htaccess files; you can setup the .htaccess file to allow file indexes.
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,102 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
06-Jul-2005, 01:50 PM #4
Usually if there is no index file in a directory, it will do that automatcally.
rolfman22's Avatar
Junior Member with 3 posts.
 
Join Date: Jul 2005
06-Jul-2005, 02:27 PM #5
I have done some research on Directory Browsing, and I am going to try some php scripts I found. I will let you know how it goes. Thanks for all the suggestions!
Squashman's Avatar
Distinguished Member with 12,589 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
06-Jul-2005, 03:27 PM #6
Quote:
Originally Posted by namenotfound
Usually if there is no index file in a directory, it will do that automatcally.
Most Web Hosting companies will turn off file indexing on their servers for security reasons. You can use an .htaccess file on apache servers to turn it back on for a specific directory.
Squashman's Avatar
Distinguished Member with 12,589 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
06-Jul-2005, 03:30 PM #7
Quote:
Originally Posted by rolfman22
I have done some research on Directory Browsing, and I am going to try some php scripts I found. I will let you know how it goes. Thanks for all the suggestions!
THis would be the simpler approach if the server is running Apache. Just create an .htaccess file and put Options +Indexes in it.

http://www.javascriptkit.com/howto/htaccess11.shtml
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,102 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
06-Jul-2005, 04:11 PM #8
Quote:
Originally Posted by Squashman
Most Web Hosting companies will turn off file indexing on their servers for security reasons. You can use an .htaccess file on apache servers to turn it back on for a specific directory.
Which ones?
Every host I ever delt with have it turned on by default.
Most of the time, I have to turn it off myself
Usually instead of turning it off, I just do the lazy thing and add a blank index file to each directory I'm only using for files, like images etc.
__________________
-----------------------------
| 404: Name Not Found |
-----------------------------
PLEASE NOTE: If I happen to help you in a post, or just simply reply to it, doesn't mean I want to be bombarded with PMs. I answer all questions in posts, not in PMs. Thank you, and have a good day.

<?php $h = 'Hello '; $w = 'World'; echo $h.$w; ?>

My Favorite Editors:
Windows: Crimson Editor
Mac: Taco HTML Edit
Linux: gPHPEdit
Squashman's Avatar
Distinguished Member with 12,589 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
06-Jul-2005, 04:20 PM #9
Probably the same sites that get hacked because they are laxed on their security.
namenotfound's Avatar
Computer Specs
Distinguished Member with 2,102 posts.
 
Join Date: Apr 2005
Location: New York
Experience: I know what I know, I am
06-Jul-2005, 05:48 PM #10
Well none of my sites were ever hacked
And the host I'm currently using has never been hacked.
rolfman22's Avatar
Junior Member with 3 posts.
 
Join Date: Jul 2005
06-Jul-2005, 10:07 PM #11
B-I-N-G-O

.htaccess Worked!

Thanks!
AKA Arizona's Avatar
Computer Specs
Distinguished Member with 2,911 posts.
 
Join Date: Jul 2003
Location: Mississippi South of Mason Dixion
Experience: Computer & Web Design Engineer
07-Jul-2005, 08:10 AM #12
Take a moment to mark this solved in the thread tools.
Squashman's Avatar
Distinguished Member with 12,589 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
08-Jul-2005, 08:32 PM #13
Quote:
Originally Posted by namenotfound
Well none of my sites were ever hacked
And the host I'm currently using has never been hacked.
Do you think they would tell you if they were hacked. Most places deny ever being hacked unless it has been leaked by someone internally.

Glas I could help solve the problem.
notsure's Avatar
Junior Member with 3 posts.
 
Join Date: Jul 2005
Experience: Beginner
08-Jul-2005, 10:13 PM #14
I have a site that has no links at all on the home page. I let people access other pages and directories by having them enter the names in the url. This question makes it sound like anyone could get a listing of the directory on my site if they follow the technique mentioned here. Is that correct?

For example, my home page is site.com. I tell people to enter site.com/secret to access the "secret" directory. Now I'm afraid anyone can now use this technique to see that I have a directory called "secret". Is that so??
brendandonhu's Avatar
Distinguished Member with 15,988 posts.
 
Join Date: Jul 2002
Location: Ann Arbor, MI
Experience: Advanced
08-Jul-2005, 10:23 PM #15
Do you have directory listing enabled?
And what's going to stop someone from sharing the "Secret" URL?
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:52 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.