Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
Stephen said:Hans,
Webshell is the way to go.
Storing the files outside of the web should work but it seems a bit inelegant. I like the way FrontPage creates a _private folder that's not accessible from the outside.jonyah said:the safest way is to put the file outside of the web accessible root (ie the root of your ftp, not the directory of your site). Then you can use code to pass that file on to your users after checking security.
or you can also store the file as a blob in SQL and stream it from there.
Stephen said:Didn't you choose which files/folders you wanted to protect?![]()
antic said:It may be wiser to just protect one folder and then put all private files in there.![]()
Yeah I've had that problem too.I have tried that but when my ASP.NET wanted to access the files in that folder a login box popped up. How do I give ASP.NET access to that folder?
antic said:Yeah I've had that problem too.
Personally I tend to take the approach of putting secure files in a folder outside the web root. That is, on the same level as your domain folder. I usually call it something like <yourdomain>.com.data (ie. same name but with ".data" on the end). This is usually where I put Access databases as well.
It just means you have to use code to write the file from the secure folder to the output stream of the browser, which takes a good knowledge of ASP.