beveiliging/afscherming dir-inhoud

Pagina: 1
Acties:
  • 35 views sinds 30-01-2008

  • inhico
  • Registratie: November 2002
  • Laatst online: 08:39
Hopelijk zit ik op het juiste forum, zoniet excuus!

Vraag: hoe kan ik voorkomen dat iemand een directory-listing kan krijgen als hij (m/v) op mijn site komt? De bestanden moeten gewoon door iedereen opgevraagd kunnen worden althans in de browser, maar alleen via de links.

BVD

...


  • crisp
  • Registratie: Februari 2000
  • Nu online

crisp

Devver

Pixelated

1) directory browsing uitzetten
2) in elke map een index.html plaatsen

Intentionally left blank


  • GA!S
  • Registratie: Maart 2000
  • Niet online

GA!S

295 g/km

http://httpd.apache.org/docs/misc/FAQ.html#indexes
# How do I turn automatic directory listings on or off?

If a client requests a URL that designates a directory and the directory does not contain a filename that matches the DirectoryIndex directive, then mod_autoindex can be configured to present a listing of the directory contents.

To turn on automatic directory indexing, find the Options directive that applies to the directory and add the Indexes keyword. For example:

<Directory /path/to/directory>
Options +Indexes
</Directory>

To turn off automatic directory indexing, remove the Indexes keyword from the appropriate Options line. To turn off directory listing for a particular subdirectory, you can use Options -Indexes. For example:

<Directory /path/to/directory>
Options -Indexes
</Directory>
Op de server dus.

de betaler vervuilt


  • Pelle
  • Registratie: Januari 2001
  • Laatst online: 29-08 10:04

Pelle

🚴‍♂️

Inderdaad.

Dit topic is gesloten.