Forum Articles
  Welcome back Join CF
You are here You are here: Home | Forum | How do I stop people browsing in my webspace directories?

You are currently viewing our boards as a guest which gives you limited access to view most of the discussions, articles and other free features. By joining our Virgin Media community you will have full access to all discussions, be able to view and post threads, communicate privately with other members (PM), respond to polls, upload your own images/photos, and access many other special features. Registration is fast, simple and absolutely free so please join our community today.


Welcome to Cable Forum
Go Back   Cable Forum > Virgin Media Services > Virgin Media Internet Service > Webspace, E-Mail & Browsing Issues
Register FAQ Community Calendar

How do I stop people browsing in my webspace directories?
Reply
 
Thread Tools
Old 03-05-2004, 02:34   #1
Peter_Stanley
Inactive
 
Join Date: Jul 2003
Location: Reading
Services: NTL 1Mb, NTL 250 modem & Linksys router, Sky & BT
Posts: 45
Peter_Stanley is an unknown quantity at this point
Question How do I stop people browsing in my webspace directories?

Any web desinger gurus out there this morning?

I've just updated my website and set Index.html as a holding page so that only people I give the correct link to can access my web pages.

However, it appears that its still possible to browse the directories, i.e. by guessing that I have a top level directory called "Images", someone can circumvent the Index page and access all my files.

Is there any way to stop this (commercial websites seem to be able to do it) or to password protect access?

I'm currently using the webspace provided by NTL, with domain forwarding for my domain.

Also, is there a simple way to stop the ntl link showing up in the status bar?

TIA.
Peter_Stanley is offline   Reply With Quote
Advertisement
Old 03-05-2004, 03:02   #2
TimmyB
Inactive
 
Join Date: Jun 2003
Posts: 19
TimmyB is an unknown quantity at this point
Re: How do I stop people browsing in my webspace directories?

The simple answer to the directory browsing issue is to put an index.html file in each directory.

If you had access to the web server configuration the directory browsing could be turned off - but you don't.
TimmyB is offline   Reply With Quote
Old 03-05-2004, 10:39   #3
Matuka
Inactive
 
Matuka's Avatar
 
Join Date: Mar 2004
Location: Burnley, Lancashire
Age: 56
Posts: 155
Matuka is on a distinguished roadMatuka is on a distinguished road
Re: How do I stop people browsing in my webspace directories?

Quote:
Originally Posted by TimmyB
The simple answer to the directory browsing issue is to put an index.html file in each directory.

If you had access to the web server configuration the directory browsing could be turned off - but you don't.
And what should it say?
Can you expand your suggestion please?

I am under the impression that you cannot prevent any browsing on NTL webspace.
Matuka is offline   Reply With Quote
Old 03-05-2004, 11:50   #4
Tricky
Inactive
 
Tricky's Avatar
 
Join Date: Jun 2003
Location: I am house...
Services: $KY+HD - BT Infinity
Posts: 2,284
Tricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful oneTricky is the helpful one
Re: How do I stop people browsing in my webspace directories?

If you have an Index.html page in each directory the server would present the contents of this instead of showing you the directory content therefore browsing would be of no ben. unless you actually know the name of the file such as addy\images\myimage.jpg
Tricky is offline   Reply With Quote
Old 03-05-2004, 11:51   #5
Peter_Stanley
Inactive
 
Join Date: Jul 2003
Location: Reading
Services: NTL 1Mb, NTL 250 modem & Linksys router, Sky & BT
Posts: 45
Peter_Stanley is an unknown quantity at this point
Re: How do I stop people browsing in my webspace directories?

Quote:
Originally Posted by TimmyB
The simple answer to the directory browsing issue is to put an index.html file in each directory.
Thanks, that works a treat.

Matuka - with a Index.html file in each directory, configured to provide a holding page (in my case a blank page with an "under construction" logo), any attempt to look at the directory results in the holding page being displayed.

I suppose, alternatively, you could put a page that uses "onload" to kick the browser back to the home page.
Peter_Stanley is offline   Reply With Quote
Old 03-05-2004, 13:37   #6
TimmyB
Inactive
 
Join Date: Jun 2003
Posts: 19
TimmyB is an unknown quantity at this point
Re: How do I stop people browsing in my webspace directories?

Quote:
Originally Posted by Matuka
And what should it say?
Can you expand your suggestion please?

I am under the impression that you cannot prevent any browsing on NTL webspace.
You are correct - you cannot prevent people browsing your website. The default bahaviour if you try to access a directory that doesn't have an index page - is that you are presented with a list of all files in that directory. Putting up an index page - which can contain anything - can even be blank, prevents anyone accessing the directory seeing a list of the contents - it doesn't prevent them accessing the files - but would have to know the names.

Hope that clarifies.
TimmyB is offline   Reply With Quote
Old 03-05-2004, 20:30   #7
Matth
Inactive
 
Join Date: Mar 2004
Services: BB:M, TV:XL, Phone:M, Loyalty
Posts: 2,516
Matth has reached the bronze age
Matth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze ageMatth has reached the bronze age
Re: How do I stop people browsing in my webspace directories?

Yes, the index page in every directory is about the only solution - it can be either:
A blank page, a "no browsing my files" page, an "under construction" page, a mock-up of a 404 page ... I Like the idea of a fake "Index of" page.

More usefully, it could also be a refresh to your real index...
http://webdesign.about.com/cs/metatags/a/aa080300a.htm
For kicking someone from somewhere you don't want them, a delay of 0 is probably appropriate
Matth is offline   Reply With Quote
Old 04-05-2004, 11:19   #8
Stuart
-
 
Stuart's Avatar
 
Join Date: Jun 2003
Location: Somewhere
Services: Virgin for TV and Internet, BT for phone
Posts: 26,546
Stuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver bling
Stuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver blingStuart has a lot of silver bling
Re: How do I stop people browsing in my webspace directories?

You may find that page needs to be called "index.html". Unix (or Linux) based web servers are usually case sensitive.
Stuart is offline   Reply With Quote
Old 04-05-2004, 14:13   #9
andygrif
Inactive
 
Join Date: Jul 2003
Posts: 2,820
andygrif has a bronze arrayandygrif has a bronze arrayandygrif has a bronze array
andygrif has a bronze arrayandygrif has a bronze arrayandygrif has a bronze arrayandygrif has a bronze arrayandygrif has a bronze arrayandygrif has a bronze arrayandygrif has a bronze array
Re: How do I stop people browsing in my webspace directories?

Just a thought on what to do with the extra index.html files:

Why not make them duplicates of the original index file? That way no matter what directory your viewer looks at, they will only see the opening page, complete with the links and all.

Alternative is to use a direct script to point them back at the first index page.
andygrif is offline   Reply With Quote
Old 04-05-2004, 14:38   #10
SMHarman
Inactive
 
Join Date: Jun 2003
Services: Cablevision
Posts: 8,305
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
SMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronzeSMHarman is cast in bronze
Re: How do I stop people browsing in my webspace directories?

Quote:
Originally Posted by andygrif
Just a thought on what to do with the extra index.html files:

Why not make them duplicates of the original index file? That way no matter what directory your viewer looks at, they will only see the opening page, complete with the links and all.

Alternative is to use a direct script to point them back at the first index page.
You need to change the links to ensure that the graphics etc render properly and that the hyperlinks refer back down a level.
SMHarman is offline   Reply With Quote
Old 04-05-2004, 15:41   #11
slimshady
Inactive
 
Join Date: Nov 2003
Location: South Wales
Posts: 97
slimshady is an unknown quantity at this point
Re: How do I stop people browsing in my webspace directories?

alternatively use a page with a meta refresh tag to point back to your main website - save on all the extra re-coding to get graphics and links to work and means you only have to do this once - so if your pages changes you dont have to update this page

<HTML>
<META HTTP-EQUIV="REFRESH" CONTENT="0;url=http://www.mywebsite.com">
</HTML>
slimshady is offline   Reply With Quote
Old 17-05-2004, 13:51   #12
Simcut
Inactive
 
Join Date: Feb 2004
Location: Hertford, Hertfordshire
Age: 43
Services: 120mbit Virgin Media Cable Sky Digital Package (Sky+)
Posts: 691
Simcut has a spectacular aura about themSimcut has a spectacular aura about themSimcut has a spectacular aura about themSimcut has a spectacular aura about them
Re: How do I stop people browsing in my webspace directories?

hmm, do you mean when someone goes to www.blabla.co.uk/bla1/ you dont want them to view the contents of /bla1/ where it lists all different types of files "directory listing" with a white background?

I've found out a way around it, if you want to know plz tell me and I'll get it sorted for ya
Simcut is offline   Reply With Quote
Reply


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

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

Forum Jump


All times are GMT +1. The time now is 20:37.


Server: osmium.zmnt.uk
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum