Locking user in directory

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
derangedtaco
-


Joined: 13 Feb 2006
Posts: 19

PostPosted: Sat Feb 25, 2006 5:50 pm    Post subject: Locking user in directory Reply with quote

How can I lock a user in a directory? Because I want one folder to have a directory listing, but then there's a link at the top that says "Go to a higher directory". How can I get rid of that? I think I've seen it somewhere before, just don't know where...
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Feb 26, 2006 2:53 pm    Post subject: Re: Locking user in directory Reply with quote

derangedtaco wrote:
How can I lock a user in a directory? Because I want one folder to have a directory listing, but then there's a link at the top that says "Go to a higher directory". How can I get rid of that? I think I've seen it somewhere before, just don't know where...

You can remove the Go to a higher directory link by writing a custom directory listing script (a variation on the directory listing script in the software user's manual) which displays everything but the .. directory.
But this won't prevent a user from typing the URL of the parent directory directly in his/her browser. So to have an effective protection, you'll have to add a better system (probably using password protection or IP access controls).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
derangedtaco
-


Joined: 13 Feb 2006
Posts: 19

PostPosted: Sun Feb 26, 2006 4:50 pm    Post subject: Re: Locking user in directory Reply with quote

aprelium wrote:
derangedtaco wrote:
How can I lock a user in a directory? Because I want one folder to have a directory listing, but then there's a link at the top that says "Go to a higher directory". How can I get rid of that? I think I've seen it somewhere before, just don't know where...

You can remove the Go to a higher directory link by writing a custom directory listing script (a variation on the directory listing script in the software user's manual) which displays everything but the .. directory.
But this won't prevent a user from typing the URL of the parent directory directly in his/her browser. So to have an effective protection, you'll have to add a better system (probably using password protection or IP access controls).

Yeah, but he can't type in the URL and see the directory listing if there's an index file.

I think I'm secure. http://24.23.192.5
I want users to be able to view the downloads/ directory, and that's it. Only people with the password should be able to login to login/. Can you check and make sure it's all right? Thanks.
Back to top View user's profile Send private message
Tim1681
-


Joined: 17 Jan 2005
Posts: 160
Location: Bristol, CT, USA

PostPosted: Sun Feb 26, 2006 6:14 pm    Post subject: Reply with quote

It doesn't matter if you have the '../' link in the Directory Listing if you are keeping the file structure as it is now. As long as there is an Index file in the parent directory, when they click the '../' it will just bring them back to the Index file that's in the parent directory.

So if you have a your website in 'root' and your downloads in '/downloads/', it will display your website when they click '../' in the '/downloads/' directory listing :)
_________________
mysql> SELECT * FROM users WHERE clue > 0;
0 rows returned.

Back to top View user's profile Send private message AIM Address
derangedtaco
-


Joined: 13 Feb 2006
Posts: 19

PostPosted: Sun Feb 26, 2006 6:21 pm    Post subject: Reply with quote

k, thanks, i was just making sure
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group