Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

turn of indexes -contd from php forum

Status
Not open for further replies.

dessie1981

Programmer
May 9, 2006
116
GB
Hi Everyone,

Does anyone know how to turn off the index of files listing.
When a user goes to my url and puts in the directory name where my php/html files are they are all listed.

Is there a way of turning this off??

Regards
Dessie


Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!

Find A Job or Post a Job Opening Click Here.
jpadie (TechnicalUser)
10 Nov 06 6:26
that's a web server thing, not php. assuming apache upload a file called ".htaccess" with the following
CODE
Options -Indexes

in IIS the option is in the management snap-in under the Home Directory tab

Thank jpadie
for this valuable post!


Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!

dessie1981 (Programmer)
13 Nov 06 5:19
Hi Jpadie,

I have created the .htaccess file and added that one line and restarted httpd and the indexes are still showing up in the dir.

I'm using apache btw.

Does this file need to be owned by apache or have certin privleges??

Regards
Dessie


Inappropriate post?
If so, Red Flag it!


Check out the FAQ
area for this forum!

sleipnir214 (Programmer)
13 Nov 06 8:15
I think that since this thread is not discussing PHP, this thread needs to take place in another forum. Like the Apache forum: forum65



Want the best answers? Ask the best questions! TANSTAAFL!

Regards
Dessie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top