Hi
i want to access one directory and all subdirs only if user goes there from one file enter.php outside that directory. And file have this:
<?
$asdd=base64_encode("bojan:parola");
header("Authorization: Basic ".$asdd);
Header("Location: http://".$SERVER['HTTP_HOST'].dirname($SERVER['PHP_SELF'])."proba");
?>
directory proba needs user and password with Basic autenticate from Apache.
<Directory proba>
AuthName "Members Only"
AuthType Basic
AuthUserFile .test
require user bojan
</Directory>
.test file have user: bojan with password.
But it always want to autenticate me.
How to make it to work?
I don't need very high security. It's only for information that one user goes in dir proba only form file enter.php.