Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-01-30, 09:24 PM   #1
soggy
If something goes wrong at the plant, blame the guy who can't speak English
 
soggy's Avatar
 
Join Date: Apr 2003
Location: Florida Panhandle
Posts: 304
Ms Cleo

I used your .htaccess code on your help page and it works great!

My question is how can i keep people from viewing my directories in say http:www.any-domain.com/any-site/pics

thanx in advance,

soggy
soggy is offline   Reply With Quote
Old 2004-01-30, 09:49 PM   #2
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
It depends on how your host has set things up, but this should work.

Put this in your htaccess file.

Options -Indexes

Also you can add this line so that php pages and stuff become valid index pages.

DirectoryIndex index.shtml index.php index.html index.htm
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:19 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc