htaccess to hide directory listing!

Reply

Join Date: Aug 2006
Posts: 10
Reputation: ike185 is an unknown quantity at this point 
Solved Threads: 0
ike185 ike185 is offline Offline
Newbie Poster

htaccess to hide directory listing!

 
0
  #1
Sep 21st, 2008
Hello guys,

I and my project team at varsity finished up a website with a database back end. We developed it on a Windows system but now deploying to a Unix server. We used the Yellow duck framework. We've managed to work out compatibility issues as Unix is very sensitive (which is good in my view :-)).

There's one problem we don't know how to solve yet. Students can view our directory listings on the web and can also see the code for our template files but not the php ones, and we've spoken to the web admin and he said we should use .htaccess and this will be solved. I have done research but can't come around how to do this. Unfortunately am not Unix savvy yet but will get there.

Please any help will be appreciated.

Many thanks in advance.

Ike185.
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 525
Reputation: Will Gresham is on a distinguished road 
Solved Threads: 85
Sponsor
Will Gresham's Avatar
Will Gresham Will Gresham is offline Offline
Posting Pro

Re: htaccess to hide directory listing!

 
0
  #2
Sep 21st, 2008
A quick web search will bring up the answer you are looking for, the option is called Indexes in the Options within the htaccess file add Options -Indexes (if you already have some Options listed, add the -Indexes to the end.

Further reading:
http://www.clockwatchers.com/htaccess_dir.html
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: htaccess to hide directory listing!

 
0
  #3
Sep 21st, 2008
If you'll add an index file to the folder, the directory files wont be listed. Obviously this is a short term solution to the problem. The better, long term solution, was already made by Xan.
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 10
Reputation: ike185 is an unknown quantity at this point 
Solved Threads: 0
ike185 ike185 is offline Offline
Newbie Poster

Re: htaccess to hide directory listing!

 
0
  #4
Sep 29th, 2008
thanks a lot xan and buddylee17.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC