Jump to content

restricting a directory to certain users dynamically


Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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.