Forum Moderators: phranque
I want to have a few IP's that should always have access to the files, and then I would like to have a basic authorization box for all other users.. Is this possible? I know how to show the basic authorization, and I also know how to allow specific IP's, but the only problem I have is to combine them..
I know I could just say "remember user and pass" but I think the login box still shows up then, and I'm reformatting my pc, reinstalling my browser and clearing browser setting quite oftenly..
Thanks in advance,
StealthEye
Jim
Another question: Is it possible to disallow directory listings per user? I know you can do it for all by useing "Options -indexes" but I want do that for one user only.. Is it possible? Something like useing <limit> or something? :)
Thanks again,
StealthEye
There could be some side-effects, though. If you require that a specific user be logged-in before redirecting his directory requests, then that redirection won't work if the user is not logged in. If you redirect for that specifc user, plus any blank {REMOTE_USER} value, then all non-logged-in users will be redirected, as well as your special user. So you must be careful about the "overlap" of authorization status and this redirection.
Jim
But the directory flag is just working partially: it will also block dirs with a index.php/.htm file in it. Which is not what I want..
Someone suggested that I might just change the default directory listing page, if possible, and then check for $REMOTE_USER with php (That shouldn't be hard for me to do) But is it possible to change the default directory listing, or, if not, create my own directory listing with PHP when there is no index file in the direcotry? I'm useing Apache 1.3, but I may want to update if I really can't do it with this version.
Thanks,
StealthEye
Everything is working now, I should just create the directory listing script, but it's PHP, so that will not make any problem probably.. Just one little question, which will make it that 1% nicer:
Is it possible to make the directory listing script outside of the document root? I've tested placing the absolute path there (On windows, so I also tried \\ instead of \ in the path) but it doesn't seem to work..
It isn't all that important, but it would be nice ;)
I will do some other things with my server config, but I think I can do it myself :) At least I will try to do it, and otherwise give those parts up.. Isn't really important either, but just "the 1% nicer" again ;)
Again, thanks for all the help I've got here, I hope you will continue to help like this :)
Greets, StealthEye