![]() |
![]() |
#1 (permalink) |
Upright
|
PHP/HTML indexing?
Is there a way with PHP to generate HTML of an index?
Lets say there are 50 files in root/goat_cheese/ and I dont like having indexing turned on. How do I get PHP to output an HTML file that lists these 50 files without letting someone know the dir name. It would be a nice security feature. ~k_day64 |
![]() |
![]() |
#2 (permalink) |
Junkie
Location: RI
|
Crap, this is in one of my books on how to do it.
Here's a recursive one: http://www.phpbuilder.com/snippet/do...snippet&id=747 Here's another: http://www.phpbuilder.com/snippet/do...snippet&id=726 I'm sure with a little tweaking, you could get either to work. |
![]() |
![]() |
#3 (permalink) | |
paranoid
Location: The Netherlands
|
Quote:
What security concerns do you have?
__________________
"Do not kill. Do not rape. Do not steal. These are principles which every man of every faith can embrace. " - Murphy MacManus (Boondock Saints) |
|
![]() |
![]() |
#4 (permalink) | |
Upright
|
Quote:
~k_day64 |
|
![]() |
![]() |
#5 (permalink) | |
Banned
|
Quote:
Hopefully I understood your concerns and this advice is helpful. |
|
![]() |
![]() |
#7 (permalink) | |||
Once upon a time...
|
Quote:
Quote:
So, it's a question of resources, if you have a larger budger than the CIA and more computing power than 20 earth simulators, then you're likely safe to stick to closed source ![]() Quote:
anyway, my solution would be to remember to use dud index.html in all sub directories as well, because image urls and things reveal part of the directory structure. It all depends what level you're aiming for. If you really want to go for it, you could use a keyed method for generating urls (the key in php, with the links opened in js).
__________________
-- Man Alone ======= Abstainer: a weak person who yields to the temptation of denying himself a pleasure. Ambrose Bierce, The Devil's Dictionary. |
|||
![]() |
Tags |
indexing, php or html |
|
|