I have seen a post like this here before, but have a slightly different question for Jodohost.
My site has a folder of datafiles that I stream to the browser using ASP.NET server-side code when required. The users should not be able to access these files directly. The only method of access should be clicking a button which fires off the streaming to the browser.
Having browsed the web and read numerous discussions on this topic, it seems the best way to do this is to place the files in a folder inaccessible to the user. For example, if my site was located in c:\wwwroot\mysite I could place the files in d:\datafiles where they could never be accessed directly from the web. The server would still have access to that folder though so I could still stream them from ASP.NET code.
So is there a way I can set this sort of thing up on Jodohost? Is there a way to make a folder that cannot be accessed from the web?
Obviously if I make the folder a sub-folder in my main site area, it can be accessed from the web (as long as the user knew the filename).
What about if I created a folder my main account root area (the one that contains the mysite.com folder). Would that work?
My site has a folder of datafiles that I stream to the browser using ASP.NET server-side code when required. The users should not be able to access these files directly. The only method of access should be clicking a button which fires off the streaming to the browser.
Having browsed the web and read numerous discussions on this topic, it seems the best way to do this is to place the files in a folder inaccessible to the user. For example, if my site was located in c:\wwwroot\mysite I could place the files in d:\datafiles where they could never be accessed directly from the web. The server would still have access to that folder though so I could still stream them from ASP.NET code.
So is there a way I can set this sort of thing up on Jodohost? Is there a way to make a folder that cannot be accessed from the web?
Obviously if I make the folder a sub-folder in my main site area, it can be accessed from the web (as long as the user knew the filename).
What about if I created a folder my main account root area (the one that contains the mysite.com folder). Would that work?