473,698 Members | 2,086 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 3097
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.goo glegroups.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
17637
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 all the files in the directory and select the one with the highest week number then display in the browser window. A brief search hasn't revealed any code to do this so I just want to know if it is possible and what the function names are that...
19
3304
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 = os.listdir(directory)
2
3373
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 returned to my client in html. To get the directory listing from this I would need to do some intersting parsing. ftp is not enabled and so I can't do an "ls" through some ftp client. Is there some way in C# to get a directory listing using...
8
11061
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) index.html site/pagefile/
2
1701
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 on a directory in the list another list appears with the directory listing of files and directories within it. Can anyone please advise how to take a list of directories within a directory and then independantly of that another routine to take...
8
6950
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 thus opens index.htm, I want that file to show a listing of all files in the directory with hyperlinks to them. Thanks for the help, Doug
7
5493
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 enumerate through that array to get my listing. However I am trying to set my application up as a service. And now (after calling methods in a thread using the OnStart() method) it says the directory does not exist (I verified this with a...
4
3248
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 variable set to this: --- $dir = getcwd() . "\\" . $nav; --- but for some reason the script does not actually display the contents of the directory if you change from the directory the script is located in. Here is my code if someone is willing...
2
2527
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 put in a username and password when I go to the web address in internet explorer. Once I put in the correct username and password, it shows the directory listing.
1
5666
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? I've already tested my code for connecting but how do I list whats in the directory. The purpose is to compare the list to the filenames in my database.
0
8604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9157
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8895
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
6518
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4619
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3046
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2330
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.