etrader Posted June 23, 2011 Share Posted June 23, 2011 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? Quote Link to comment https://forums.phpfreaks.com/topic/240180-restricted-admin-panel/ Share on other sites More sharing options...
priti Posted June 23, 2011 Share Posted June 23, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/240180-restricted-admin-panel/#findComment-1233736 Share on other sites More sharing options...
etrader Posted June 23, 2011 Author Share Posted June 23, 2011 ACL is a advanced system for creating users and user permissions stored in mysql, right? I am talking about only one admin whose login can be stored in a file too. Do you still think that php-based ACL is the best solution? Quote Link to comment https://forums.phpfreaks.com/topic/240180-restricted-admin-panel/#findComment-1233794 Share on other sites More sharing options...
priti Posted June 24, 2011 Share Posted June 24, 2011 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 . Quote Link to comment https://forums.phpfreaks.com/topic/240180-restricted-admin-panel/#findComment-1234170 Share on other sites More sharing options...
etrader Posted June 25, 2011 Author Share Posted June 25, 2011 Thanks for sharing your idea Quote Link to comment https://forums.phpfreaks.com/topic/240180-restricted-admin-panel/#findComment-1234668 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.