943,975 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 8248
  • PHP RSS
Sep 21st, 2008
0

htaccess to hide directory listing!

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ike185 is offline Offline
10 posts
since Aug 2006
Sep 21st, 2008
0

Re: htaccess to hide directory listing!

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
Reputation Points: 96
Solved Threads: 124
Master Poster
Will Gresham is offline Offline
728 posts
since May 2008
Sep 21st, 2008
0

Re: htaccess to hide directory listing!

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.
Reputation Points: 232
Solved Threads: 137
Practically a Master Poster
buddylee17 is offline Offline
665 posts
since Nov 2007
Sep 29th, 2008
0

Re: htaccess to hide directory listing!

thanks a lot xan and buddylee17.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ike185 is offline Offline
10 posts
since Aug 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: dropdown list need help
Next Thread in PHP Forum Timeline: submit and isset





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC