View Single Post
  #8 (permalink)  
Old 14-01-2009, 13:41
Rsync's Avatar
Rsync Rsync is offline
System Administrator(eUKhost.com)
 
Join Date: Mar 2007
Posts: 179
Default

Quote:
Originally Posted by texterted View Post
One more issue I have (for now!).

How do I prevent a directories contents being displayed in a users browser?

I'd rather it showed a 403 instead.

I'm greatful for all this handholding in this scary environment of newbie VPS management!
You can prevent a directories contents being displayed in a users browser and have an error (403) returned instead, use the below line in your .htaccess.
Quote:
Options -Indexes
__________________
Regards,
RsyNc
VPS Support Team,
http://www.eukhost.com

VPS Hosting || Windows Hyper-V VM || Managed Hosting
Reply With Quote