We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 42053
    • 2 Posts
    Hi,

    I'm new to Modx my background is C#/ASP.Net and IIS not really php and Apache so I'm learning!

    Basically I have a requirement to restrict access to a directory which will contain a list of files which can then be downloaded to the authenticated users PC. Now I think that I can do this by modifying the .htaccesss and creating a bunch of users, however I would much prefer it if I could drive this via the Modx manager. I've searched the forums and there a few theads relating to this but they are from 3+ years ago and stuff has changed in modx since then!

    So any suggestions would be really appreciated or pointed to possibly a 3rd party package?

    Phil

    MODX Revolution 2.2.6-pl (traditional)

    This question has been answered by frogabog. See the first response.

    • discuss.answer
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      This was actually discussed here on the forum about 4 days ago. Unfortunately the search here does pull a lot of very old posts by default at the top of the list, so you'll want to make sure to select a more recent start date in the advanced search to weed out those old posts.

      https://forums.modx.com/thread/81581/limit-access-to-downloadable-file

      You will want to digest completely all the information about MODX Security and permissions as well.
      These should give you a good start:

      http://rtfm.modx.com/display/revolution20/Security
      http://bobsguides.com (click on MODX, go to security section)
      http://modxpo.eu/schedule/sessions/modx-revolution-security-permissions-system - video of Bob's session in Utrecht regarding MODX Security
      http://bmv-interactive.com/home/modx-acl-tutorial.html

      I would also recommend getting Bob Ray's MODX: The Official Guide, and don't forget to make your allDocs resource group which will contain every resource, make sure to add yourself to it. I recommend installing the DefaultResourceGroup plugin and setting it up for the allDocs resource group so you won't need to manually add resources to that group when they are created. It's the first thing I install and setup now that I know better :~}
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 42053
        • 2 Posts
        Thanks, managed to get it working by looking at those links and the previous thread.

        Phil