centerwork Posted March 22, 2009 Share Posted March 22, 2009 I've been searching for sometime now to find the best way to secure folder and files while allowing for an php login page? The best way I have found is with a htaccess. But that uses basic authentication with the pop-up window. Other methods require Code spinets on each page. Any suggestion would be appreciated. Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/150583-what-is-the-best-way-to-securelimit-access-to-directories-and-files/ Share on other sites More sharing options...
centerwork Posted March 24, 2009 Author Share Posted March 24, 2009 Can anyone recommend a good tutorial for using a custom login page with htaccess? Quote Link to comment https://forums.phpfreaks.com/topic/150583-what-is-the-best-way-to-securelimit-access-to-directories-and-files/#findComment-792747 Share on other sites More sharing options...
chmpdog Posted April 1, 2009 Share Posted April 1, 2009 I found this site, It explains a lot on htaccess and touches password protection http://corz.org/serv/tricks/htaccess.php Quote Link to comment https://forums.phpfreaks.com/topic/150583-what-is-the-best-way-to-securelimit-access-to-directories-and-files/#findComment-798351 Share on other sites More sharing options...
T-Bird Posted April 4, 2009 Share Posted April 4, 2009 I dont think there is any other method. You either .htaccess which uses the generic popup window, you build a php login system, or you have your php page interface with the .htaccess file. The later two both require code snippets. If you dont want to copy/paste the code into ever page then put it into a separate page and use the include() function to tack it onto the top of every page. Quote Link to comment https://forums.phpfreaks.com/topic/150583-what-is-the-best-way-to-securelimit-access-to-directories-and-files/#findComment-801026 Share on other sites More sharing options...
chmpdog Posted April 18, 2009 Share Posted April 18, 2009 I would recommend php, but thats just me. I think the .htaccess is unprofessional. Good luck Quote Link to comment https://forums.phpfreaks.com/topic/150583-what-is-the-best-way-to-securelimit-access-to-directories-and-files/#findComment-812815 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.