![]() |
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. |
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. |
Re: How do I stop people browsing in my webspace directories?
Quote:
Can you expand your suggestion please? I am under the impression that you cannot prevent any browsing on NTL webspace. |
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
|
Re: How do I stop people browsing in my webspace directories?
Quote:
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. |
Re: How do I stop people browsing in my webspace directories?
Quote:
Hope that clarifies. |
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 |
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.
|
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. |
Re: How do I stop people browsing in my webspace directories?
Quote:
|
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> |
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 :) |
All times are GMT +1. The time now is 16:58. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum