thewooleymammoth Posted March 19, 2009 Share Posted March 19, 2009 What i need to do is restrict a directory to users who have logged in, but there are some hoops that need jumpin all the files in the directory to be unmodified, meaning the php files cant simply not echo to unlogged users. is it possible to have apache restrict access based on a mysql database? if not does anyone have any ideas for accomplishing this task? Quote Link to comment https://forums.phpfreaks.com/topic/150172-restricting-a-directory-to-certain-users-dynamically/ Share on other sites More sharing options...
corbin Posted March 19, 2009 Share Posted March 19, 2009 Why not just use session based authentication with PHP? Or is there something I'm not getting? As for the Apache with MySQL DB thing, technically possible if I remember correctly. Probably not easy, and probably straight up ghetto though. Quote Link to comment https://forums.phpfreaks.com/topic/150172-restricting-a-directory-to-certain-users-dynamically/#findComment-788855 Share on other sites More sharing options...
thewooleymammoth Posted March 20, 2009 Author Share Posted March 20, 2009 well i dont want to use web based authentication because we need the code in the pages to remain untampered with, because its going to be for testing purposes, so we may have pages with their own login system in there. but at the same time we need it to deny access to people not logged in. because we dont want broken or weak undeveloped pages to be exploited. Quote Link to comment https://forums.phpfreaks.com/topic/150172-restricting-a-directory-to-certain-users-dynamically/#findComment-789171 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.