This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Webmaster forum > May 2007 > disable upstream file directory browsing





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author disable upstream file directory browsing
ddirks@lanscapes.com

2007-05-22, 6:26 pm

We have several clients that access a specific folder that is based on
their login. The problem is that all of these folders are inside of
one large 'customer' folder. We want to make it so that once they
select the link to take them to their specific folder, they cannot go
back upstream to the main 'customer' folder. I was told that
mod_rewrite can accomplish this, but I cannot find any examples that
show what I'm looking for. Are there other options out there for me?

Dan

2007-05-24, 6:26 pm

On May 22, 2:36 pm, ddi...@lanscapes.com wrote:
> We have several clients that access a specific folder that is based on
> their login. The problem is that all of these folders are inside of
> one large 'customer' folder. We want to make it so that once they
> select the link to take them to their specific folder, they cannot go
> back upstream to the main 'customer' folder. I was told that
> mod_rewrite can accomplish this, but I cannot find any examples that
> show what I'm looking for. Are there other options out there for me?


That's not possible. Anything you might contrive using referrers,
cookies, or the like, can easily be disabled by the user if they're
using a sensibly configurable browser. Anyway, why should there be a
difference in ability to access a certain URL depending on whether or
not they've been to a subdirectory of it before? You're out to
protect certain content from your active users, but not random
outsiders?

--
Dan

christopher@dailycrossword.com

2007-05-26, 6:16 am

mod_rewrite can accomplish this by hiding the name of the main
folder.
the url can be http://mysite.com/~jonsfolder
and mod_rewrite can server the files from apacheroot/stuff/customer/
jonsfolder *without* changing what's in the browser address bar.

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews