WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.8 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Admin directory unavailable for anyone but user #1
  • Print
Pages: [1]   Go Down

Author Topic: Admin directory unavailable for anyone but user #1  (Read 16099 times)

Offline CodeALot

  • Posts: 579
  • Gender: Male
Admin directory unavailable for anyone but user #1
« on: November 22, 2023, 05:29:35 PM »
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?
Logged

Offline crnogorac081

  • Posts: 2163
  • Gender: Male
Re: Admin directory unavailable for anyone but user #1
« Reply #1 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
Logged
Web developer

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 609
Re: Admin directory unavailable for anyone but user #1
« Reply #2 on: November 23, 2023, 02:01:42 AM »
also my favorite solution and the savest
Logged

Offline CodeALot

  • Posts: 579
  • Gender: Male
Re: Admin directory unavailable for anyone but user #1
« Reply #3 on: November 23, 2023, 01:42:48 PM »
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 :)
Logged

Offline sternchen8875

  • Global Moderator
  • *****
  • Posts: 609
Re: Admin directory unavailable for anyone but user #1
« Reply #4 on: November 23, 2023, 02:35:28 PM »
do you have registered users or the possibility for a frontend login / registration?
Logged

Offline CodeALot

  • Posts: 579
  • Gender: Male
Re: Admin directory unavailable for anyone but user #1
« Reply #5 on: November 27, 2023, 03:29:04 PM »
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.
Logged

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.13.x) »
  • General Help & Support »
  • Admin directory unavailable for anyone but user #1
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2