as the title says...how can i prevent directory browsing with php+apache?
i could use a index.html or php on every forbiden directory and redirect to somewhere else, but i'm looking for other solutions.
prevent directory browsing
Moderator: General Moderators
-
mcog_esteban
- Forum Contributor
- Posts: 127
- Joined: Tue Dec 30, 2003 3:28 pm
- CoderGoblin
- DevNet Resident
- Posts: 1425
- Joined: Tue Mar 16, 2004 10:03 am
- Location: Aachen, Germany
This should be set up as part of your Apache configuration...
one link you could use (only a starting point).
http://httpd.apache.org/docs/mod/mod_access.html
The idea is that if access is denied you get a 404 error. Unless someone knows the path they have to guess all the information.
one link you could use (only a starting point).
http://httpd.apache.org/docs/mod/mod_access.html
The idea is that if access is denied you get a 404 error. Unless someone knows the path they have to guess all the information.
-
mcog_esteban
- Forum Contributor
- Posts: 127
- Joined: Tue Dec 30, 2003 3:28 pm
-
majesticreality
- Forum Newbie
- Posts: 3
- Joined: Sat Mar 05, 2005 2:31 pm
-
thegreatone2176
- Forum Contributor
- Posts: 102
- Joined: Sun Jul 11, 2004 1:27 pm