![]() |
|
#1
|
|||
|
|||
Restricting Directory ChangesI wanted to setup a download directory using apache2. The user would click on a link and be taken to that directory where he would see an index listing of files that he could download. I was able to do this by adding the following to my apache config file:
<Directory "/var/www/localhost/htdocs/downfile"> Options Indexes AllowOverride None Order allow,deny Allow from all </Directory> This works fine except for one problem, the user sees in the download index listing a link to the parent directory which he can click on. I don't want a user who enters this download directory to be able to browse into the parent directory. How can I change my configuration to prohibit the user from moving into the parent directory? Thanks. |
|
#2
|
||||
|
||||
|
If I get this correct..
you have something like http://example.com/downfile/ that shows the directory listing. if you make sure that there is an index.html file in the parent directory visitors won't be able to browse that directory. the option Indexes only works when there is no index file in the directory. but if you do it like http://example.com/downfile people would be able to strip the /downfile and just look at http://example.com/ |
Recent GIDBlog
Developing GUIs with wxPython (Part 1) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| UK Shopping Directory - please review | zoink | Websites Reviewed Forum | 7 | 25-Nov-2003 01:36 |
| Uk Shopping Directory | zoink | New Member Introductions | 1 | 22-Nov-2003 10:47 |
| Search Engine Positioning 101 and 201 "How To" Tips... | 000 | Search Engine Optimization Forum | 0 | 29-May-2003 10:34 |
| New directory to be in? | JdS | Advertising & Affiliates Forum | 8 | 28-Jun-2002 15:58 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The