• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 272
  • Last Modified:

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
0
newbieweb
Asked:
newbieweb
  • 4
  • 3
1 Solution
 
gamebitsCommented:
There is different way to protect a folder an easy one is to have a file named index.html in the folder, if somebody is trying to access the folder the server will deliver the index.html by default.
0
 
newbiewebAuthor Commented:
so if I have index.html in every folder, its contents will be invisible?

Can that file be empty?
0
 
gamebitsCommented:
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.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
newbiewebAuthor Commented:
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?
0
 
gamebitsCommented:
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).
0
 
newbiewebAuthor Commented:
thanks.  great idea!
0
 
gamebitsCommented:
Thanks for the points and the grade.

Gamebits
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now