I have a page that is restricted to a specific web user group, then upload files from the resource browser to that page. People could easily get to that page without access if they type in the direct URL to the files. How can I restrict access ?
Glad to help but don't totally follow. Are you saying you have a protected page that allows users to upload files from that page? When you say people could easily get to "that page" what page are you referring to?
jpdevries
Which version of MODX are you using?
-
☆ A M B ☆
- 24,524 Posts
In the first place, that is a very old and insecure version of MODx. You should upgrade to the latest version of MODx Evolution (1.0.10 at this time).
As far as the files go, there's nothing you can do about that if you're using ordinary links to access them. The only way you can secure them is to use a file downloading snippet that will stream the file on demand, and keeping the files themselves outside of the web root, or using a web server rewrite rule to deny access via URL. Since the PHP script is using file system access rather than web access, the web server's deny rules don't have any effect on it.
-
☆ A M B ☆
- 24,524 Posts
I'm pretty sure there are several add-ons to take care of that. Here is one
http://modx.com/extras/package/filedownloadplugin