Re: Per-file auth
Nicolas BOUTHORS schreef:
> Luuk a écrit :
>> may be use mod_rewrite to rewrite the URL based on username?
>
> That was one of my ideas, but I couldn't find how to implement. Care to
> give an example of how you see it ?
>
>> but this depends a bit on your statement
>> "Each user shall only have access to the file named after him."
>
> Bob can access the file named bob, and not the file jack.
> Jack can access the file named jack and not the file bob.
>
> N
>
maybe i was nog clear ;-)
let met try to explain what i meant.
if you redirect all users for that directory to index.php
and your index.php looks like this:
<?php
include(getenv("REMOTE_USER").".html");
?>
Then, if jack logs on, he will see jack.html, and not bob.html
and bob will see bob.html, and not jack.html
a new user (i.e. susan) will work instantly, (after susan.html is created)
--
Luuk
|