Jump to content

Restricted admin panel


etrader

Recommended Posts

I have a simple php, and now I created an admin folder for it. How I can make this folder password protected?

 

Should I introduce a restricted folder in webserver (Nginx or Apache)

 

or

 

I should introduce an authentication system by php as the password is stored in mysql databse?

 

or any other practical idea?

Link to comment
Share on other sites

You can define ACL mechanism where in you specify which url  are private. Private pages do not need to be viewed by site users hence when ever site user come across such page you can always re-direct to index page or some error page.

Link to comment
Share on other sites

well I have seen system implementing the same concept in PHP by writing the generalized class . If it is ONLY for one directory then you can think of  making the folder password protected by using Apache .The suggested solution is little graceful in comparison [As per my thoughts].

 

Or else let wait for some other people to jump with more thoughts :).

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.