Securing admin panel

Discussion in 'aMember Pro v.4' started by igpman, Dec 2, 2011.

  1. igpman

    igpman Member

    Joined:
    Mar 17, 2010
    Messages:
    72
    I'd like to secure my admin panel from potential attackers. As I understand it .htpasswd files are a good way to do this, but I have had no success getting it to work yet.

    Does anyone have a working htaccess/htpasswd setup that I could implement on my site? Thanks.

    FYI I got to the stage where I could protect /admin but it was by adding a folder, and it didn't protect /admin-user etc. I need a solution that will protect all admin urls.
  2. alexander

    alexander Administrator Staff Member

    Joined:
    Jan 8, 2003
    Messages:
    6,279
    If you have access to server config you can use something like this:
    <Location ~ "/amember/admin.*">
    AuthName "protected"
    AuthType Basic
    AuthuserFile /path/to/file
    require valid-user
    </Location>

Share This Page