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.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


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


  • 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 12698 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: 2161
  • 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: 601
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: 601
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