Protecting admin directory with .htaccess

Discussion in 'Setting-up protection' started by hablitwe, Nov 8, 2008.

  1. hablitwe

    hablitwe New Member

    Joined:
    Sep 23, 2008
    Messages:
    1
    I would like to protect my admin directory with .htaccess.

    What code needs to be placed in the .htaccess file to accomplish this?

    Thanks for the help!
  2. davidm1

    davidm1 aMember User & Partner

    Joined:
    May 16, 2006
    Messages:
    4,437
    Its really not recommended to do this- it could cause some problems.
    If you insist, you could protect it with "protect folder" after creating an admin product that would give you access to the folder..

    David
  3. netserv3

    netserv3 aMember Pro Customer

    Joined:
    Aug 29, 2006
    Messages:
    21
    I am protecting admin directory with htaccess since years and it worked fine with every version of amember. It poses no problem with the latest version of amember as well.

    Just use your hosting control panel to protect amember/admin folder.
    I usually keep the .htpasswd file in a non-public folder.

Share This Page