mac007 Posted October 6, 2008 Share Posted October 6, 2008 Hello, all: how would be best to password-protect a php-site I may be doing for a client? so only he could view or have access to the pages. I know there may be several ways, but which would be easiest/safest? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/127184-solved-how-to-best-password-protect-whole-site-if-i-only-want-my-client-to-have-access/ Share on other sites More sharing options...
CroNiX Posted October 6, 2008 Share Posted October 6, 2008 .htaccess in the root dir of the site. http://www.cs.dal.ca/studentservices/faq/tutorials/web_sites/htaccess.shtml Quote Link to comment https://forums.phpfreaks.com/topic/127184-solved-how-to-best-password-protect-whole-site-if-i-only-want-my-client-to-have-access/#findComment-657896 Share on other sites More sharing options...
corbin Posted October 6, 2008 Share Posted October 6, 2008 .htaccess would be the easiest probably. Other wise, you could write something using sessions and a basic form. Quote Link to comment https://forums.phpfreaks.com/topic/127184-solved-how-to-best-password-protect-whole-site-if-i-only-want-my-client-to-have-access/#findComment-657897 Share on other sites More sharing options...
mac007 Posted October 6, 2008 Author Share Posted October 6, 2008 thanks guys.. htaccess certainly seems like easiest/safest, ha? I guess I could also "password'-protect" directory too, but many times I am just afraid messing with folders and files like that, cause if you happend to "click" wrong thing, one ends up doing damage by accident.. I think htaccess is the way to go... thanks again! Quote Link to comment https://forums.phpfreaks.com/topic/127184-solved-how-to-best-password-protect-whole-site-if-i-only-want-my-client-to-have-access/#findComment-657901 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.