Discuss Accessing website root directory in the HTML Programming forum on Dev Shed. Accessing website root directory HTML Programming forum covering discussions of HTML and XHTML, as well as HTML-related issues such as writing W3C Compliant code. Use HyperText Markup Language for building websites.
Posts: 9
Time spent in forums: 2 h 56 m 13 sec
Reputation Power: 0
Accessing website root directory
Hi guys, just a quick question.
I am developing a website at the moment and just wondered whether or not it was possible to access a folders root directory/files from the browser directly.
And if there is, no i dont want it, thats not what im after.
I have a password protected area that is monitored by using session variables, however the files have no protection.
The only method i can think of at the moment is just including an index.php file in each of the folders that displays a forbidden message.
Should i be password protecting these folders and is that even possible?
Posts: 9
Time spent in forums: 2 h 56 m 13 sec
Reputation Power: 0
ok so i just seen that i cant access the root directory when it is hosted due to restrictions, its only on my localhost I can.
But if someone finds out the direct url of the file they could still access it, how can i stop this?
Posts: 7,947
Time spent in forums: 2 Months 10 h 37 m 24 sec
Reputation Power: 7053
I meant actually that I should write one, didn't mean to imply that you should have found one. Hopefully I'll get around to it by the time it's still useful to you.