rejetto forum

Security-Thing

Guest · 5 · 1955

0 Members and 1 Guest are viewing this topic.

Scrapie

  • Guest
Hi

I'm using HFS for hosting a little website.
No CGI, no DB - just simple html - nice and secure - that's why I like HFS :)

Coz of this I don't want the users to browse the root-folder. With the "Default File Mask" no problems BUT

- If HFS starts up and
- the vfs gets loaded and
- if a user during loading requests a site

then he will get the complet dir-list of the root-folder + can dl files from here even if he normaly wouldn't see them.
This happens only during the short time while HFS is loading the vfs-file.
Obviously it would be better that HFS would show the 404-Page in stead of the complet root in such a case ...

HFS v2.1d Build #088


Cheers,
Scrapie


Offline maverick

  • Tireless poster
  • ****
    • Posts: 1052
  • Computer Solutions
    • View Profile

I personally can't see that happening.  However, if that is a concern of your's how about turning the server OFF before exiting?  When you reload the server, it will be loaded with the OFF setting active.  You can then turn it ON after it is completely loaded or when you are ready.
maverick


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
right click on the root
disable "browsable"


Scrapie

  • Guest
right click on the root
disable "browsable"

Hi

Yes, this is working :)
The only thing is to allow browsing for the upload-folder - all the rest disabled.
Otherwise the user will get the errorpage instead of the ul-page.

Thx,
Scrapie


rejetto unlogged

  • Guest
then, move all the content of your site in a folder.
disallow browsing for that folder.
put a redirection script in the root, in an index.html file