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?

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.

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.