How to Remove Parent Directoy from Directory Listing using .htaccess

This is a discussion on How to Remove Parent Directoy from Directory Listing using .htaccess within the Apache Web Server forums, part of the Web Server and Related Forums category; This has to be possible. I have a root directory where I have a web site. Below the website I ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-04-2006
LuvLatins
 
Posts: n/a
Default How to Remove Parent Directoy from Directory Listing using .htaccess


This has to be possible. I have a root directory where I have a web
site. Below the website I have a PUBLIC directory. So it looks like
this

/WebRoot/Public

I have an .htaccess file that looks like this

Options +Indexes +Includes
XBitHack on
IndexOptions +IgnoreCase +SuppressDescription NameWidth=*
+SuppressHTMLPreamble
HeaderName .header.html
ReadmeName .footer.html

Now the problem. I place files in the public directory that have
nothing to do with the website so I done want the users to see or be
able to click on the option for PARENT DIRECTORY.

Isnt there a way to add something to the htaccess file that will
remove the PARENT DIRECTORY so the user can see the files in the
PUBLIC direcrory and access them without a password but not be able to
go anywhere else only the PUBLIC folder

Seems so easy but cant find the solution PLEASE HELP
  #2 (permalink)  
Old 12-04-2006
LuvLatins
 
Posts: n/a
Default Re: How to Remove Parent Directoy from Directory Listing using .htaccess

On Sun, 03 Dec 2006 22:26:10 -0500, LuvLatins <LuvLatins@mexico.com>
wrote:

>
>This has to be possible. I have a root directory where I have a web
>site. Below the website I have a PUBLIC directory. So it looks like
>this
>
>/WebRoot/Public
>
>I have an .htaccess file that looks like this
>
>Options +Indexes +Includes
>XBitHack on
>IndexOptions +IgnoreCase +SuppressDescription NameWidth=*
>+SuppressHTMLPreamble
>HeaderName .header.html
>ReadmeName .footer.html
>
>Now the problem. I place files in the public directory that have
>nothing to do with the website so I done want the users to see or be
>able to click on the option for PARENT DIRECTORY.
>
>Isnt there a way to add something to the htaccess file that will
>remove the PARENT DIRECTORY so the user can see the files in the
>PUBLIC direcrory and access them without a password but not be able to
>go anywhere else only the PUBLIC folder
>
>Seems so easy but cant find the solution PLEASE HELP


Kewl I found it further in this site. Acutally they wanted to turn it
on but in case someone else is looking the command is

IndexIgnore .?*

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:04 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0