• Welcome to WebsiteBaker Community Forum. Please log in or sign up.
Welcome, Guest
News
Support WebsiteBaker
Your donations will help to:
PayPal
  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!
You can donate by clicking on the button below.

Admin directory unavailable for anyone but user #1

Started by CodeALot, November 22, 2023, 05:29:35 PM  ( Read 21,541 times )

CodeALot

I'd like to shield the complete /admin from anyone but the actual superadmin. It's OK if they can see the login page, but as soon as they log in with user credentials other than superadmin, I want to kick them to the frontend.

Any suggestions?

    crnogorac081

    Google how to protect folder using .htaccess and password.

    When you type .../admin you will be prompted for password
      Web developer

      Gast


      CodeALot

      Quote from: crnogorac081 on November 22, 2023, 08:34:59 PM
      Google how to protect folder using .htaccess and password.

      When you type .../admin you will be prompted for password

      Hi, thanks, I thought of that but hoped there would be a more 'elegant' way possible without double logins :)

        Gast

        do you have registered users or the possibility for a frontend login / registration?

          CodeALot

          Yes they are all registered and able to login. This is only used to grant access to certain parts of the website, not for admin stuff.

            \n\n