Link to home
Start Free TrialLog in
Avatar of curiouswebster
curiouswebsterFlag for United States of America

asked on

Can I hide a folder on a website?

If I plan on reading from or writining to a textfile on my website, does that automatically imply that anyone can read the contents of those textfiles?

Is there a way to hide a folder?  How about a file?

thanks,
nbw
ASKER CERTIFIED SOLUTION
Avatar of gamebits
gamebits
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of curiouswebster

ASKER

so if I have index.html in every folder, its contents will be invisible?

Can that file be empty?
Yes but I usually put a message (using html) saying something like Forbidden access or error 500 or something like that.

If the folder is to contain sensitive data a safer way is to create a folder above the web root.
I tested it and it worked!  Great trick.

This data won't be that sensitive, but how easy would it be for someone to crack it?
I'm not sure but I think somebody would actually have to break on the server to access the files in a folder, not beeing a hacker myself I don't know how they can do it neither how easy it is (or not).
thanks.  great idea!
Thanks for the points and the grade.

Gamebits