473,386 Members | 1,699 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Directory Listing

Hi

I've just joined tesco broadband.

I've come from NTL.

If I don't put an index.htm on my NTL home page it justs lists the
files in there when any browser visites my page.

If I don't put an index.htm on my Tesco home page, I get a:

"Error 403"
"You don't have permission to view the requested page."

Is there some code I can put into an index.htm file which will return
the directory of the site? At present, I'm going to have to upload a
new index.htm each time I change the directory structure - users just
want to go to the files I have uploade there.

Thanks

David Callaghan

Jul 23 '05 #1
3 3080
David Callaghan wrote:

(snip description of what happens when you have Options +Indexes in Apache)
Is there some code I can put into an index.htm file which will return
the directory of the site?


No. HTML is just data, although it can contain client side code - but client
side code can't find out anything about the server that the server doesn't
export.

If you had mod_perl, CGI, PHP or similar then you could do this with that.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 23 '05 #2
David Callaghan wrote:
I've just joined tesco broadband.

I've come from NTL.
I don't know what tesco or NTL are, but I'm going to assume they're both
ISPs that you have used to host your website. You should really be more
clear about these things in the future.
If I don't put an index.htm on my NTL home page it justs lists the
files in there when any browser visites my page.

If I don't put an index.htm on my Tesco home page, I get a:

"Error 403"
"You don't have permission to view the requested page."


That is controlled by the server configuration files, not by the markup
in any HTML file. If you are using Apache, adding a .htaccess file with
this Options directive will allow a directory listing.

Options Indexes

http://httpd.apache.org/docs-2.0/mod/core.html#options

However, this is really off topic for an HTML newsgroup, try an Apache
group or another group for whatever type of server your host is using.

--
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/ Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Jul 23 '05 #3
"David Callaghan" <in***********@btinternet.com> wrote in
news:11**********************@c13g2000cwb.googlegr oups.com:
Hi

I've just joined tesco broadband.

I've come from NTL.

most users round here are not UK ;)
If I don't put an index.htm on my NTL home page it justs lists the
files in there when any browser visites my page.
means NTL allows directory browsing/listing - bad start.
If I don't put an index.htm on my Tesco home page, I get a:

"Error 403"
"You don't have permission to view the requested page." means Tesco does not allow the above. Good for them.

Is there some code I can put into an index.htm file which will return
the directory of the site? At present, I'm going to have to upload a
new index.htm each time I change the directory structure - users just
want to go to the files I have uploade there. no - .htm files are client side only. Unless Tesco allows some cgi, which
you'd have to ask about. So, yes you'll need an update to your manual
listing page. Perhaps you need to evaluate what service you're actually
wanting from them - you might actually run into issues with bandwidth on
this kinfd of thing anyway?
Thanks

David Callaghan


Jul 23 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dean | last post by:
Hi I've got a question relating to using Javascript on an Intranet. I have a directory with a list of files in the format week36.xls, week37.xls and I want to write a script that will scan...
19
by: SU News Server | last post by:
I've struggled with this for quite a while and I'm am just not sure what is going on. I have the following code import os def buildList( directory='/Users/mkonrad' ) dirs = listing =...
2
by: Tom | last post by:
I need to get a directory listing through http. If I put the directory path in the browser address bar such as http://somewebpage.com/subdir I get the listing of the directory. Of course this is...
8
by: gil | last post by:
Is it possible to prevent a browser from listing the entire contents of a folder? The site, is hosted on my ISP with the following layout- site/ "user name from ISP" pagefile (dir)...
2
by: ngr | last post by:
I used to use the DirListox control in VB6 but this is no longer supported in VB.NET. What I want to do: I want to take a directory listing and show any subdirectories in a list. When you click...
8
by: dougawells | last post by:
Hi - I'm hoping for help with the auto-generation of a hyperlinked listing of all files in a directory. The server I use does not auto-generate this. So, when someone comes to this directory and...
7
by: epikto | last post by:
I have a mapped share that I am trying to get a listing of all the files that it contains. I use the following code to access the contents String files = Directory.GetFiles(path); I can then...
4
by: techusky | last post by:
I have a *very* simple script written that displays the directory listing of the current working directory, but I am having some difficulty when I try to change folders. Basically, I have my $dir...
2
by: marcusadeleon | last post by:
Hi, I was wondering how to open up a web directory to get a file listing. The directory I want to open allows directory listings, but has a directory password. Meaning it gives me a prompt to...
1
by: Steve | last post by:
My site is hosted on a Godaddy reseller site. Godaddy only allows the use of Curl to access remote sites. What is the method for listing a directory after connecting to the site with Curl? ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.