PHP Developers Network

A community of PHP developers offering assistance, advice, discussion, and friendship.
 
Loading
It is currently Thu Jul 09, 2020 9:45 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Jan 26, 2005 10:06 am 
Offline
Forum Contributor

Joined: Tue Dec 30, 2003 4:28 pm
Posts: 127
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 10:55 am 
Offline
DevNet Resident
User avatar

Joined: Tue Mar 16, 2004 11:03 am
Posts: 1425
Location: Aachen, Germany
This should be set up as part of your Apache configuration...

one link you could use (only a starting point).


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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 11:45 am 
Offline
Neighborhood Spidermoddy
User avatar

Joined: Mon Mar 29, 2004 4:24 pm
Posts: 31559
Location: Bothell, Washington, USA


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 26, 2005 1:53 pm 
Offline
Forum Contributor

Joined: Tue Dec 30, 2003 4:28 pm
Posts: 127
thank you both.
i'll see some examples about it.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 07, 2005 12:59 am 
Offline
Forum Newbie

Joined: Sat Mar 05, 2005 3:31 pm
Posts: 3
I configured my site so that the nobody can browse directories, but is there anyway to prevent people seeing pages if they do happen to know the full path name to the file?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 07, 2005 4:42 pm 
Offline
Forum Contributor

Joined: Sun Jul 11, 2004 1:27 pm
Posts: 102


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group