How do I set up the application folder and it's sub-folders to be inaccessible to casual browsing, and only allow the application to access them?
Depending on your goal, there are different approaches available. Do you want user to see images only after logging into the application (so a general control on resources) or do you want individual access (only some users can see a specified image)?
If it's a first one, go to the web application configuration page and set Serve Files to Use InterSystems Security. In that case if the user has permissions to view a csp/cls page in this application then allow them to view a static file, if they do not have permissions to view a csp/cls page then return a 404 page not found page.
For a second case, use REST Broker to serve files and implement arbitrary checks in the broker.
- Log in to post comments