GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 19-Nov-2003, 23:58
toadatrix toadatrix is offline
New Member
 
Join Date: Nov 2003
Posts: 4
toadatrix is an unknown quantity at this point

Restricting Directory Changes


I 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  
Old 20-Nov-2003, 09:42
Allowee's Avatar
Allowee Allowee is offline
Regular Member
 
Join Date: May 2003
Location: The Netherlands
Posts: 339
Allowee has a spectacular aura about
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/
__________________
Pastebin
PHP Documentation Site
Allowee's Blog http://allowee.net
 
 

Recent GIDBlogDeveloping GUIs with wxPython (Part 1) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 12:16.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.