PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > How to Remove Parent Directoy from Directory Listing using .htaccess
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

How to Remove Parent Directoy from Directory Listing using .htaccess

Réponse
 
LinkBack Outils de la discussion
Vieux 04/12/2006, 04h26   #1
LuvLatins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
  Réponse avec citation
Vieux 04/12/2006, 05h47   #2
LuvLatins
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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


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 .?*

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 21h22.


Édité par : vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08513 seconds with 10 queries