ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Password protecting directory with cPanel/outside of EE and File Manager

September 09, 2011 2:36pm

Subscribe [3]
  • #1 / Sep 09, 2011 2:36pm

    liberty79

    135 posts

    This question may be related to a resolved thread.

    I do a lot of this and am now trying to tackle it having recently installed and running EE2. I’m wondering if anyone has a simpler way of doing this than outlined in the thread above (using member groups). Setting up a member is fine, but I really need to be able to use an FTP client to upload to a directory and link to those files easily and outside of EE’s File Manager.

    For example, if i want to password protect http://www.mysite.com/files, I can set up a member with access to that template group. Easy.

    But if I want the index file of my site.com/files to contain an index of all the files in the mysite.com/files (mysite.com/files/image1.jpg, for example), there’s no way to do that without using the File Manager and using EE specific code to retrieve and link to the URL’s?

    Thanks for any help on this

  • #2 / Sep 09, 2011 5:33pm

    LMO

    203 posts

    If running apache:

    You can protect a directory using and .htaccess file with creating a password file with users/passwords

    http://httpd.apache.org/docs/1.3/howto/auth.html

  • #3 / Sep 10, 2011 9:23am

    Sue Crocker

    26054 posts

    Thanks for the assist, VIM Interactive.

    Does that info get you started?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases